Skip to content

armgit / kokon

Public Imported from GitHub
0

Edit photos by describing the change, on your own GPU. A free, open-source alternative to Nano Banana and ChatGPT image editing: photos stay on your computer, no daily limit. One installer for Windows, Mac and Linux sets up the best open model (Qwen-Image 2.1). MCP server for AI agents.

fix

Gabriele Lozuponed66f66939feb
diff --git a/.DS_Store b/.DS_Store
new file mode 100644
index 0000000..ee037ae
Binary files /dev/null and b/.DS_Store differ
diff --git a/Cargo.lock b/Cargo.lock
index 93e7cfc..4812ca1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2326,6 +2326,7 @@ dependencies = [
"dirs",
"image",
"reqwest",
+ "rustls",
"serde",
"serde_json",
"tauri",
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index 0451c5d..794f1f4 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -15,6 +15,8 @@ tauri-build = { version = "2", features = [] }
dirs = "7.0.0"
image = { version = "0.25.10", default-features = false, features = ["png", "jpeg", "webp", "bmp", "gif", "tiff"] }
reqwest = { version = "0.13.5", default-features = false, features = ["json", "blocking"] }
+# The updater builds reqwest with rustls but no crypto provider; run() installs ring.
+rustls = { version = "0.23.45", default-features = false, features = ["ring", "std"] }
serde = { version = "1.0.229", features = ["derive"] }
serde_json = "1.0.151"
tauri = { version = "2", features = [] }
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index fd0d523..a8ff191 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -267,6 +267,9 @@ fn release(shared: &Shared) {
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
+ // Feature unification gives every reqwest client here rustls without a provider (from
+ // tauri-plugin-updater); building one before a provider is installed panics.
+ let _ = rustls::crypto::ring::default_provider().install_default();
let shared = Arc::new(Shared::default());
let app = tauri::Builder::default()
.plugin(tauri_plugin_single_instance::init(|app, _args, _cwd| {