Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
fix(tls): use OS-native TLS trust store on desktop (#8186)
Tim Ellis1592c06bdb6a
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.tomlindex d7b7fb406..e111f56d4 100644--- a/src-tauri/Cargo.toml+++ b/src-tauri/Cargo.toml@@ -98,7 +98,19 @@ tauri-plugin-llamacpp = { path = "./plugins/tauri-plugin-llamacpp" }tauri-plugin-mlx = { path = "./plugins/tauri-plugin-mlx", optional = true }tauri-plugin-vector-db = { path = "./plugins/tauri-plugin-vector-db" }tauri-plugin-rag = { path = "./plugins/tauri-plugin-rag" }-tauri-plugin-http = { version = "2", features = ["unsafe-headers"] }+# `default-features = false` drops the plugin's default `rustls-tls` (bundled+# Mozilla roots) so `native-tls` reads the OS trust store instead. Other+# features re-list the plugin's defaults so behaviour is otherwise unchanged.+# `macos-system-configuration` is reqwest's legacy alias for `system-proxy` —+# cross-platform-safe; native deps are target-gated by Cargo.+tauri-plugin-http = { version = "2", default-features = false, features = [+ "native-tls",+ "http2",+ "charset",+ "macos-system-configuration",+ "cookies",+ "unsafe-headers",+] }tauri-plugin-log = "2.0.0-rc"tauri-plugin-opener = "2.2.7"tauri-plugin-os = "2.2.1"@@ -147,7 +159,7 @@ 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"] }+reqwest = { version = "0.11", features = ["json", "blocking", "stream", "native-tls"] }tauri-plugin-updater = "2"once_cell = "1.18"tauri-plugin-single-instance = { version = "2", features = ["deep-link"] }