Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
fix: Fix openssl issue on mobile after merging
Vanalitefa61163350a5
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lockindex fc36377c8..ae5dadfca 100644--- a/src-tauri/Cargo.lock+++ b/src-tauri/Cargo.lock@@ -2265,6 +2265,20 @@ dependencies = ["want",]+[[package]]+name = "hyper-rustls"+version = "0.24.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ec3efd23720e2049821a693cbc7e65ea87c72f1c58ff2f9522ff332b1491e590"+dependencies = [+ "futures-util",+ "http 0.2.12",+ "hyper 0.14.32",+ "rustls 0.21.12",+ "tokio",+ "tokio-rustls 0.24.1",+]+[[package]]name = "hyper-rustls"version = "0.27.7"@@ -2274,12 +2288,12 @@ dependencies = ["http 1.3.1","hyper 1.6.0","hyper-util",- "rustls",+ "rustls 0.23.31","rustls-pki-types","tokio",- "tokio-rustls",+ "tokio-rustls 0.26.2","tower-service",- "webpki-roots",+ "webpki-roots 1.0.2",][[package]]@@ -4036,7 +4050,7 @@ dependencies = ["quinn-proto","quinn-udp","rustc-hash",- "rustls",+ "rustls 0.23.31","socket2 0.5.10","thiserror 2.0.12","tokio",@@ -4056,7 +4070,7 @@ dependencies = ["rand 0.9.2","ring","rustc-hash",- "rustls",+ "rustls 0.23.31","rustls-pki-types","slab","thiserror 2.0.12",@@ -4315,6 +4329,7 @@ dependencies = ["http 0.2.12","http-body 0.4.6","hyper 0.14.32",+ "hyper-rustls 0.24.2","hyper-tls","ipnet","js-sys",@@ -4324,6 +4339,7 @@ dependencies = ["once_cell","percent-encoding","pin-project-lite",+ "rustls 0.21.12","rustls-pemfile","serde","serde_json",@@ -4332,6 +4348,7 @@ dependencies = ["system-configuration 0.5.1","tokio","tokio-native-tls",+ "tokio-rustls 0.24.1","tokio-util","tower-service","url",@@ -4339,6 +4356,7 @@ dependencies = ["wasm-bindgen-futures","wasm-streams","web-sys",+ "webpki-roots 0.25.4","winreg 0.50.0",]@@ -4360,7 +4378,7 @@ dependencies = ["http-body 1.0.1","http-body-util","hyper 1.6.0",- "hyper-rustls",+ "hyper-rustls 0.27.7","hyper-util","js-sys","log",@@ -4368,14 +4386,14 @@ dependencies = ["percent-encoding","pin-project-lite","quinn",- "rustls",+ "rustls 0.23.31","rustls-pki-types","serde","serde_json","serde_urlencoded","sync_wrapper 1.0.2","tokio",- "tokio-rustls",+ "tokio-rustls 0.26.2","tokio-util","tower","tower-http",@@ -4385,7 +4403,7 @@ dependencies = ["wasm-bindgen-futures","wasm-streams","web-sys",- "webpki-roots",+ "webpki-roots 1.0.2",][[package]]@@ -4576,6 +4594,18 @@ dependencies = ["windows-sys 0.60.2",]+[[package]]+name = "rustls"+version = "0.21.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3f56a14d1f48b391359b22f731fd4bd7e43c97f3c50eee276f3aa09c94784d3e"+dependencies = [+ "log",+ "ring",+ "rustls-webpki 0.101.7",+ "sct",+]+[[package]]name = "rustls"version = "0.23.31"@@ -4585,7 +4615,7 @@ dependencies = ["once_cell","ring","rustls-pki-types",- "rustls-webpki",+ "rustls-webpki 0.103.4","subtle","zeroize",]@@ -4609,6 +4639,16 @@ dependencies = ["zeroize",]+[[package]]+name = "rustls-webpki"+version = "0.101.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765"+dependencies = [+ "ring",+ "untrusted",+]+[[package]]name = "rustls-webpki"version = "0.103.4"@@ -4727,6 +4767,16 @@ version = "1.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"+[[package]]+name = "sct"+version = "0.7.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414"+dependencies = [+ "ring",+ "untrusted",+]+[[package]]name = "seahash"version = "4.1.0"@@ -6325,13 +6375,23 @@ dependencies = ["tokio",]+[[package]]+name = "tokio-rustls"+version = "0.24.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081"+dependencies = [+ "rustls 0.21.12",+ "tokio",+]+[[package]]name = "tokio-rustls"version = "0.26.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "8e727b36a1a0e8b74c376ac2211e40c2c8af09fb4013c60d910495810f008e9b"dependencies = [- "rustls",+ "rustls 0.23.31","tokio",]@@ -7087,6 +7147,12 @@ dependencies = ["system-deps",]+[[package]]+name = "webpki-roots"+version = "0.25.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5f20c57d8d7db6d3b86154206ae5d8fba62dd39573114de97c2cb0578251f8e1"+[[package]]name = "webpki-roots"version = "1.0.2"diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.tomlindex 6d1eeefd4..79d6d1a4c 100644--- a/src-tauri/Cargo.toml+++ b/src-tauri/Cargo.toml@@ -60,7 +60,6 @@ hyper = { version = "0.14", features = ["server"] }jan-utils = { path = "./utils" }libloading = "0.8.7"log = "0.4"-reqwest = { version = "0.11", features = ["json", "blocking", "stream", "native-tls-vendored"] }rmcp = { version = "0.6.0", features = ["client","transport-sse-client",@@ -107,11 +106,13 @@ libc = "0.2.172"windows-sys = { version = "0.60.2", features = ["Win32_Storage_FileSystem"] }[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]+reqwest = { version = "0.11", features = ["json", "blocking", "stream", "native-tls-vendored"] }tauri-plugin-updater = "2"once_cell = "1.18"tauri-plugin-single-instance = { version = "2", features = ["deep-link"] }[target.'cfg(any(target_os = "android", target_os = "ios"))'.dependencies]+reqwest = { version = "0.11", features = ["json", "blocking", "stream", "rustls-tls"], default-features = false }tauri-plugin-dialog = { version = "2.2.1", default-features = false }tauri-plugin-http = { version = "2", default-features = false }tauri-plugin-log = { version = "2.0.0-rc", default-features = false }diff --git a/src-tauri/plugins/tauri-plugin-llamacpp/Cargo.toml b/src-tauri/plugins/tauri-plugin-llamacpp/Cargo.tomlindex e1a57b962..38f7de3bd 100644--- a/src-tauri/plugins/tauri-plugin-llamacpp/Cargo.toml+++ b/src-tauri/plugins/tauri-plugin-llamacpp/Cargo.toml@@ -23,9 +23,14 @@ sysinfo = "0.34.2"tauri = { version = "2.5.0", default-features = false, features = [] }thiserror = "2.0.12"tokio = { version = "1", features = ["full"] }-reqwest = { version = "0.11", features = ["json", "blocking", "stream"] }tauri-plugin-hardware = { path = "../tauri-plugin-hardware" }+[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]+reqwest = { version = "0.11", features = ["json", "blocking", "stream", "native-tls"] }++[target.'cfg(any(target_os = "android", target_os = "ios"))'.dependencies]+reqwest = { version = "0.11", features = ["json", "blocking", "stream", "rustls-tls"], default-features = false }+# Unix-specific dependencies[target.'cfg(unix)'.dependencies]nix = { version = "=0.30.1", features = ["signal", "process"] }diff --git a/src-tauri/utils/Cargo.toml b/src-tauri/utils/Cargo.tomlindex 7d313a42b..691f90a92 100644--- a/src-tauri/utils/Cargo.toml+++ b/src-tauri/utils/Cargo.toml@@ -8,7 +8,6 @@ base64 = "0.22"hmac = "0.12"log = { version = "0.4", optional = true }rand = "0.8"-reqwest = { version = "0.11", features = ["json"] }serde = { version = "1.0", features = ["derive"] }serde_json = "1.0"sha2 = "0.10"@@ -16,6 +15,12 @@ tokio = { version = "1", features = ["process", "fs", "macros", "rt"] }tokio-util = "0.7.14"url = "2.5"+[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]+reqwest = { version = "0.11", features = ["json", "native-tls"] }++[target.'cfg(any(target_os = "android", target_os = "ios"))'.dependencies]+reqwest = { version = "0.11", features = ["json", "rustls-tls"], default-features = false }+[target.'cfg(windows)'.dependencies]windows-sys = { version = "0.60.2", features = ["Win32_Storage_FileSystem"] }