Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
feat(desktop): system trust store (#6662)
Shreyas5680866fd296
diff --git a/packages/hoppscotch-agent/src-tauri/Cargo.lock b/packages/hoppscotch-agent/src-tauri/Cargo.lockindex cb3117751..5caeb33f2 100644--- a/packages/hoppscotch-agent/src-tauri/Cargo.lock+++ b/packages/hoppscotch-agent/src-tauri/Cargo.lock@@ -463,9 +463,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"[[package]]name = "bitflags"-version = "2.10.0"+version = "2.13.2"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3"+checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"dependencies = ["serde_core",]@@ -576,7 +576,7 @@ version = "0.18.5"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "8ca26ef0159422fb77631dc9d17b102f253b876fe1586b03b803e63a309b4ee2"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","cairo-sys-rs","glib","libc",@@ -862,7 +862,7 @@ version = "0.24.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "fa95a34622365fa5bbf40b20b75dba8dfa8c94c734aea8ac9a5ca38af14316f1"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","core-foundation 0.10.1","core-graphics-types 0.2.0","foreign-types 0.5.0",@@ -886,7 +886,7 @@ version = "0.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","core-foundation 0.10.1","libc",]@@ -984,7 +984,7 @@ dependencies = [[[package]]name = "curl"version = "0.4.47"-source = "git+https://github.com/CuriousCorrelation/curl-rust.git#1ec8079cf527b9cf47cc7a48c68b458affdae273"+source = "git+https://github.com/CuriousCorrelation/curl-rust.git?rev=025ff84f77e1fee37b4dca3cf39b724f4efcc87d#025ff84f77e1fee37b4dca3cf39b724f4efcc87d"dependencies = ["curl-sys","libc",@@ -996,7 +996,7 @@ dependencies = [[[package]]name = "curl-sys"version = "0.4.77+curl-8.10.1"-source = "git+https://github.com/CuriousCorrelation/curl-rust.git#1ec8079cf527b9cf47cc7a48c68b458affdae273"+source = "git+https://github.com/CuriousCorrelation/curl-rust.git?rev=025ff84f77e1fee37b4dca3cf39b724f4efcc87d#025ff84f77e1fee37b4dca3cf39b724f4efcc87d"dependencies = ["cc","libc",@@ -1206,7 +1206,7 @@ version = "0.3.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "89a09f22a6c6069a18470eb92d2298acf25463f14256d24778e1230d789a2aec"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","block2 0.6.2","libc","objc2 0.6.3",@@ -1864,7 +1864,7 @@ version = "0.18.5"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "233daaf6e83ae6a12a52055f568f9d7cf4671dabb78ff9560ab6da230ce00ee5"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","futures-channel","futures-core","futures-executor",@@ -2082,6 +2082,7 @@ dependencies = ["file-rotate","lazy_static","native-dialog",+ "openssl","rand 0.8.5","relay","serde",@@ -2611,7 +2612,7 @@ version = "0.7.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "b750dcadc39a09dbadd74e118f6dd6598df77fa01df0cfcdc52c28dece74528a"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","serde","unicode-segmentation",]@@ -2690,7 +2691,7 @@ version = "0.1.10"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "416f7e718bdb06000964960ffa43b4335ad4012ae8b99060261aa4a8088d5ccb"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","libc","redox_syscall",]@@ -2944,7 +2945,7 @@ version = "0.9.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","jni-sys","log","ndk-sys",@@ -2980,7 +2981,7 @@ version = "0.30.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "74523f3a35e05aba87a1d978330aef40f67b0304ac79c1c00b294c9830543db6"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","cfg-if","cfg_aliases","libc",@@ -3101,7 +3102,7 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","block2 0.6.2","libc","objc2 0.6.3",@@ -3122,7 +3123,7 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","objc2 0.6.3","objc2-foundation 0.3.2",]@@ -3133,7 +3134,7 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","objc2 0.6.3","objc2-foundation 0.3.2",]@@ -3144,7 +3145,7 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","dispatch2","objc2 0.6.3",]@@ -3155,7 +3156,7 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","dispatch2","objc2 0.6.3","objc2-core-foundation",@@ -3178,7 +3179,7 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","objc2 0.6.3","objc2-core-foundation","objc2-core-graphics",@@ -3190,7 +3191,7 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d425caf1df73233f29fd8a5c3e5edbc30d2d4307870f802d18f00d83dc5141a6"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","objc2 0.6.3","objc2-core-foundation","objc2-core-graphics",@@ -3218,7 +3219,7 @@ version = "0.2.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","block2 0.5.1","libc","objc2 0.5.2",@@ -3230,7 +3231,7 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","block2 0.6.2","libc","objc2 0.6.3",@@ -3243,7 +3244,7 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","objc2 0.6.3","objc2-core-foundation",]@@ -3264,7 +3265,7 @@ version = "0.2.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","block2 0.5.1","objc2 0.5.2","objc2-foundation 0.2.2",@@ -3276,7 +3277,7 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f112d1746737b0da274ef79a23aac283376f335f4095a083a267a082f21db0c0"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","objc2 0.6.3","objc2-app-kit","objc2-foundation 0.3.2",@@ -3288,7 +3289,7 @@ version = "0.2.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","block2 0.5.1","objc2 0.5.2","objc2-foundation 0.2.2",@@ -3301,7 +3302,7 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","objc2 0.6.3","objc2-foundation 0.3.2",]@@ -3312,7 +3313,7 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "709fe137109bd1e8b5a99390f77a7d8b2961dafc1a1c5db8f2e60329ad6d895a"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","objc2 0.6.3","objc2-core-foundation",]@@ -3323,7 +3324,7 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","objc2 0.6.3","objc2-core-foundation","objc2-foundation 0.3.2",@@ -3335,7 +3336,7 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "b2e5aaab980c433cf470df9d7af96a7b46a9d892d521a2cbbb2f8a4c16751e7f"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","block2 0.6.2","objc2 0.6.3","objc2-app-kit",@@ -3390,7 +3391,7 @@ version = "0.10.74"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "24ad14dd45412269e1a30f52ad8f0664f0f4f4a89ee8fe28c3b3527021ebb654"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","cfg-if","foreign-types 0.3.2","libc",@@ -3461,7 +3462,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "7d8fae84b431384b68627d0f9b3b1245fcf9f46f6c0e3dc902e9dce64edd1967"dependencies = ["libc",- "windows-sys 0.61.2",+ "windows-sys 0.45.0",][[package]]@@ -3739,7 +3740,7 @@ version = "0.18.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "97baced388464909d42d89643fe4361939af9b7ce7a31ee32a168f832a70f2a0"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","crc32fast","fdeflate","flate2",@@ -4126,7 +4127,7 @@ version = "0.5.18"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2",][[package]]@@ -4203,13 +4204,15 @@ checksum = "7a2d987857b319362043e95f5353c0535c1f58eec5336fdfcf626430af7def58"[[package]]name = "relay"version = "0.1.1"-source = "git+https://github.com/CuriousCorrelation/relay.git?rev=1c4f1e16106ed48983926ea6ddb114c1dbb2f688#1c4f1e16106ed48983926ea6ddb114c1dbb2f688"+source = "git+https://github.com/CuriousCorrelation/relay.git?rev=b99a75e30b5649954e1828ef93c982082e3243c3#b99a75e30b5649954e1828ef93c982082e3243c3"dependencies = ["bytes","cookie","curl",+ "curl-sys","dashmap","env_logger",+ "foreign-types 0.3.2","http","http-serde","infer 0.16.0",@@ -4217,7 +4220,9 @@ dependencies = ["log","mime","openssl",+ "openssl-probe","openssl-sys",+ "security-framework","serde","serde_json","strum",@@ -4228,6 +4233,7 @@ dependencies = ["url","url-escape","urlencoding",+ "windows-sys 0.59.0",][[package]]@@ -4337,7 +4343,7 @@ version = "0.38.44"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","errno","libc","linux-raw-sys 0.4.15",@@ -4350,7 +4356,7 @@ version = "1.1.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "cd15f8a2c5551a84d56efdc1cd049089e409ac19a3072d5037a17fd70719ff3e"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","errno","libc","linux-raw-sys 0.11.0",@@ -4476,6 +4482,29 @@ version = "1.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"+[[package]]+name = "security-framework"+version = "3.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"+dependencies = [+ "bitflags 2.13.2",+ "core-foundation 0.10.1",+ "core-foundation-sys",+ "libc",+ "security-framework-sys",+]++[[package]]+name = "security-framework-sys"+version = "2.17.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3"+dependencies = [+ "core-foundation-sys",+ "libc",+]+[[package]]name = "selectors"version = "0.24.0"@@ -4997,7 +5026,7 @@ version = "0.6.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","core-foundation 0.9.4","system-configuration-sys",]@@ -5031,7 +5060,7 @@ version = "0.34.5"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f3a753bdc39c07b192151523a3f77cd0394aa75413802c883a0f6f6a0e5ee2e7"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","block2 0.6.2","core-foundation 0.10.1","core-graphics 0.24.0",@@ -5786,7 +5815,7 @@ version = "0.6.6"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "adc82fd73de2a9722ac5da747f12383d2bfdb93591ee6c58486e0097890f05f2"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","bytes","futures-util","http",@@ -6273,7 +6302,7 @@ version = "0.31.11"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c66a47e840dc20793f2264eb4b3e4ecb4b75d91c0dd4af04b456128e0bdd449d"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","rustix 1.1.2","wayland-backend","wayland-scanner",@@ -6285,7 +6314,7 @@ version = "0.32.9"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "efa790ed75fbfd71283bd2521a1cfdc022aabcc28bdcff00851f9e4ae88d9901"dependencies = [- "bitflags 2.10.0",+ "bitflags 2.13.2","wayland-backend","wayland-client","wayland-scanner",@@ -6466,7 +6495,7 @@ version = "0.1.11"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"dependencies = [- "windows-sys 0.61.2",+ "windows-sys 0.48.0",][[package]]diff --git a/packages/hoppscotch-agent/src-tauri/Cargo.toml b/packages/hoppscotch-agent/src-tauri/Cargo.tomlindex cf1e2cc03..02c0654ce 100644--- a/packages/hoppscotch-agent/src-tauri/Cargo.toml+++ b/packages/hoppscotch-agent/src-tauri/Cargo.toml@@ -32,7 +32,7 @@ rand = "0.8.5"tracing = "0.1.41"tracing-subscriber = { version = "0.3.20", features = ["env-filter", "json", "fmt", "std", "time"] }tracing-appender = "0.2.3"-relay = { git = "https://github.com/CuriousCorrelation/relay.git", rev = "1c4f1e16106ed48983926ea6ddb114c1dbb2f688" }+relay = { git = "https://github.com/CuriousCorrelation/relay.git", rev = "b99a75e30b5649954e1828ef93c982082e3243c3" }thiserror = "1.0.69"tauri-plugin-store = "2.4.1"x25519-dalek = { version = "2.0.1", features = ["getrandom"] }@@ -48,6 +48,12 @@ sha2 = "0.10.9"file-rotate = "0.8.0"dirs = "6.0.0"+[dev-dependencies]+# Vendored, ∵ the trust store tests are the only thing that links OpenSSL here+# and a macOS or Windows machine without Homebrew OpenSSL or vcpkg has nothing+# for `openssl-sys` to find, so `cargo test` would fail to build before it ran.+openssl = { version = "0.10", features = ["vendored"] }+[target.'cfg(windows)'.dependencies]tempfile = { version = "3.23.0" }winreg = { version = "0.52.0" }diff --git a/packages/hoppscotch-agent/src-tauri/tests/trust_store.rs b/packages/hoppscotch-agent/src-tauri/tests/trust_store.rsnew file mode 100644index 000000000..abfd801d5--- /dev/null+++ b/packages/hoppscotch-agent/src-tauri/tests/trust_store.rs@@ -0,0 +1,288 @@+//! Requests through `relay::execute` against a TLS server whose certificate+//! chains to a CA generated for the test, which no host trust store has, so+//! the request validates only when it lists that CA, matching what the app+//! sends from its certificate settings.++use std::io::{Read, Write};+use std::net::TcpListener;+use std::sync::atomic::{AtomicI64, Ordering};+use std::thread;++use openssl::asn1::Asn1Time;+use openssl::bn::{BigNum, MsbOption};+use openssl::hash::MessageDigest;+use openssl::pkey::{PKey, Private};+use openssl::rsa::Rsa;+use openssl::ssl::{SslAcceptor, SslMethod};+use openssl::x509::extension::{+ BasicConstraints, ExtendedKeyUsage, KeyUsage, SubjectAlternativeName,+};+use openssl::x509::{X509Name, X509};+use serde_json::json;++const PUBLIC_ENDPOINT: &str = "https://valid-isrgrootx2.letsencrypt.org/";++// `relay` tracks in-flight requests by id, so every request in this binary+// takes its own.+static NEXT_ID: AtomicI64 = AtomicI64::new(1);++struct Pki {+ ca_pem: Vec<u8>,+ leaf: X509,+ leaf_key: PKey<Private>,+}++fn key() -> PKey<Private> {+ PKey::from_rsa(Rsa::generate(2048).expect("rsa")).expect("pkey")+}++fn serial() -> openssl::asn1::Asn1Integer {+ let mut bn = BigNum::new().expect("bignum");+ bn.rand(64, MsbOption::MAYBE_ZERO, false)+ .expect("random serial");+ bn.to_asn1_integer().expect("serial")+}++fn name(cn: &str) -> X509Name {+ let mut name = X509Name::builder().expect("name builder");+ name.append_entry_by_text("CN", cn).expect("cn");+ name.build()+}++fn pki() -> Pki {+ let ca_key = key();+ let ca_name = name("hoppscotch-agent test CA");+ let mut ca = X509::builder().expect("ca builder");+ ca.set_version(2).expect("version");+ ca.set_serial_number(&serial()).expect("serial");+ ca.set_subject_name(&ca_name).expect("subject");+ ca.set_issuer_name(&ca_name).expect("issuer");+ ca.set_pubkey(&ca_key).expect("pubkey");+ ca.set_not_before(&Asn1Time::days_from_now(0).expect("now"))+ .expect("not before");+ ca.set_not_after(&Asn1Time::days_from_now(30).expect("later"))+ .expect("not after");+ ca.append_extension(BasicConstraints::new().critical().ca().build().expect("bc"))+ .expect("append bc");+ ca.append_extension(+ KeyUsage::new()+ .critical()+ .key_cert_sign()+ .crl_sign()+ .build()+ .expect("ku"),+ )+ .expect("append ku");+ ca.sign(&ca_key, MessageDigest::sha256()).expect("sign ca");+ let ca = ca.build();++ let leaf_key = key();+ let mut leaf = X509::builder().expect("leaf builder");+ leaf.set_version(2).expect("version");+ leaf.set_serial_number(&serial()).expect("serial");+ leaf.set_subject_name(&name("127.0.0.1")).expect("subject");+ leaf.set_issuer_name(ca.subject_name()).expect("issuer");+ leaf.set_pubkey(&leaf_key).expect("pubkey");+ leaf.set_not_before(&Asn1Time::days_from_now(0).expect("now"))+ .expect("not before");+ leaf.set_not_after(&Asn1Time::days_from_now(30).expect("later"))+ .expect("not after");+ leaf.append_extension(BasicConstraints::new().build().expect("bc"))+ .expect("append bc");+ leaf.append_extension(+ KeyUsage::new()+ .critical()+ .digital_signature()+ .key_encipherment()+ .build()+ .expect("ku"),+ )+ .expect("append ku");+ leaf.append_extension(ExtendedKeyUsage::new().server_auth().build().expect("eku"))+ .expect("append eku");+ let san = SubjectAlternativeName::new()+ .ip("127.0.0.1")+ .build(&leaf.x509v3_context(Some(&ca), None))+ .expect("san");+ leaf.append_extension(san).expect("append san");+ leaf.sign(&ca_key, MessageDigest::sha256())+ .expect("sign leaf");++ Pki {+ ca_pem: ca.to_pem().expect("ca pem"),+ leaf: leaf.build(),+ leaf_key,+ }+}++/// Serves `200 ok` on every accepted connection until the test binary exits,+/// and returns the port it listens on.+fn serve(pki: &Pki) -> u16 {+ let mut acceptor = SslAcceptor::mozilla_intermediate(SslMethod::tls()).expect("acceptor");+ acceptor+ .set_private_key(&pki.leaf_key)+ .expect("private key");+ acceptor.set_certificate(&pki.leaf).expect("certificate");+ let acceptor = acceptor.build();++ let listener = TcpListener::bind("127.0.0.1:0").expect("bind");+ let port = listener.local_addr().expect("addr").port();+ thread::spawn(move || {+ for stream in listener.incoming().flatten() {+ // The client aborts the handshake when it rejects the CA, which+ // ends that connection and leaves the listener accepting.+ let Ok(mut tls) = acceptor.accept(stream) else {+ continue;+ };+ let mut buf = [0u8; 4096];+ let mut seen = Vec::new();+ while !seen.windows(4).any(|w| w == b"\r\n\r\n") {+ match tls.read(&mut buf) {+ Ok(0) | Err(_) => break,+ Ok(n) => seen.extend_from_slice(&buf[..n]),+ }+ }+ let _ = tls.write_all(+ b"HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 2\r\nConnection: close\r\n\r\nok",+ );+ let _ = tls.shutdown();+ }+ });+ port+}++/// Builds a request with no security block. The app's interceptors always+/// attach one, so this is what another client of the agent's HTTP API sends,+/// and it configured no trust at all until `relay` applied the host anchors+/// on that arm too.+fn plain_request(url: &str) -> relay::Request {+ serde_json::from_value(json!({+ "id": NEXT_ID.fetch_add(1, Ordering::SeqCst),+ "url": url,+ "method": "GET",+ "version": "HTTP/1.1",+ }))+ .expect("request json")+}++/// Builds the request the way the app serializes it, with `ca` as the+/// certificate settings' CA list.+fn request(url: &str, ca: Option<Vec<Vec<u8>>>) -> relay::Request {+ serde_json::from_value(json!({+ "id": NEXT_ID.fetch_add(1, Ordering::SeqCst),+ "url": url,+ "method": "GET",+ "version": "HTTP/1.1",+ "security": {+ "certificates": { "client": null, "ca": ca },+ "verifyHost": true,+ "verifyPeer": true,+ },+ }))+ .expect("request json")+}++#[tokio::test]+async fn a_server_signed_by_an_unknown_ca_is_rejected() {+ let pki = pki();+ let port = serve(&pki);++ let result = relay::execute(request(&format!("https://127.0.0.1:{port}/"), None)).await;++ let error = result.expect_err("a CA outside every trust store");+ let text = format!("{error:?}");+ assert!(+ text.contains("certificate") || text.contains("SSL"),+ "the error names the verification failure, got {text}"+ );+}++#[tokio::test]+async fn a_request_without_security_settings_is_rejected_by_the_same_ca() {+ let pki = pki();+ let port = serve(&pki);++ let error = relay::execute(plain_request(&format!("https://127.0.0.1:{port}/")))+ .await+ .expect_err("a CA outside every trust store");++ let text = format!("{error:?}");+ assert!(+ text.contains("certificate") || text.contains("SSL"),+ "the error names the verification failure, got {text}"+ );+}++#[tokio::test]+async fn a_ca_from_the_certificate_settings_validates_the_server() {+ let pki = pki();+ let port = serve(&pki);++ let response = relay::execute(request(+ &format!("https://127.0.0.1:{port}/"),+ Some(vec![pki.ca_pem.clone()]),+ ))+ .await+ .expect("request with the CA configured");++ assert_eq!(response.status.as_u16(), 200);+ assert_eq!(&response.body.body[..], b"ok");+}++#[tokio::test]+async fn a_ca_entry_that_is_not_pem_is_refused_by_its_index() {+ let pki = pki();+ let port = serve(&pki);++ let error = relay::execute(request(+ &format!("https://127.0.0.1:{port}/"),+ Some(vec![pki.ca_pem.clone(), b"not a certificate".to_vec()]),+ ))+ .await+ .expect_err("an unparseable CA entry");++ assert!(+ format!("{error:?}").contains("index 1"),+ "the error names the entry that failed to parse, got {error:?}"+ );+}++// The endpoint chains to ISRG Root X2, which the macOS keychain has and the+// LibreSSL `/etc/ssl/cert.pem` snapshot is missing, so on macOS this passes+// only when `relay` read the keychain.+#[tokio::test]+#[ignore = "network"]+async fn a_public_endpoint_validates_against_the_host_trust_store() {+ let response = relay::execute(request(PUBLIC_ENDPOINT, None))+ .await+ .expect("request with no CA configured");++ assert_eq!(response.status.as_u16(), 200);+}++// A client of the agent's HTTP API that sends no security block reached curl+// with whatever CA path the probe resolved, which on macOS is the file that+// omits ISRG Root X2, so this is the assertion for that arm.+#[tokio::test]+#[ignore = "network"]+async fn a_request_without_security_settings_uses_the_host_trust_store() {+ let response = relay::execute(plain_request(PUBLIC_ENDPOINT))+ .await+ .expect("request with no security settings");++ assert_eq!(response.status.as_u16(), 200);+}++// Adding a CA extends the host trust store, so a public endpoint unrelated to+// the private CA validates as well.+#[tokio::test]+#[ignore = "network"]+async fn a_configured_ca_keeps_the_host_trust_store() {+ let pki = pki();++ let response = relay::execute(request(PUBLIC_ENDPOINT, Some(vec![pki.ca_pem])))+ .await+ .expect("request with an unrelated CA configured");++ assert_eq!(response.status.as_u16(), 200);+}diff --git a/packages/hoppscotch-desktop/plugin-workspace/relay/Cargo.lock b/packages/hoppscotch-desktop/plugin-workspace/relay/Cargo.lockindex 20a9e337c..ed3651f0f 100644--- a/packages/hoppscotch-desktop/plugin-workspace/relay/Cargo.lock+++ b/packages/hoppscotch-desktop/plugin-workspace/relay/Cargo.lock@@ -98,9 +98,9 @@ dependencies = [[[package]]name = "bitflags"-version = "2.6.0"+version = "2.13.2"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"+checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"[[package]]name = "byteorder"@@ -159,6 +159,22 @@ dependencies = ["version_check",]+[[package]]+name = "core-foundation"+version = "0.10.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6"+dependencies = [+ "core-foundation-sys",+ "libc",+]++[[package]]+name = "core-foundation-sys"+version = "0.8.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"+[[package]]name = "crossbeam-utils"version = "0.8.20"@@ -168,7 +184,7 @@ checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80"[[package]]name = "curl"version = "0.4.47"-source = "git+https://github.com/CuriousCorrelation/curl-rust.git?rev=1ec8079cf527b9cf47cc7a48c68b458affdae273#1ec8079cf527b9cf47cc7a48c68b458affdae273"+source = "git+https://github.com/CuriousCorrelation/curl-rust.git?rev=025ff84f77e1fee37b4dca3cf39b724f4efcc87d#025ff84f77e1fee37b4dca3cf39b724f4efcc87d"dependencies = ["curl-sys","libc",@@ -180,7 +196,7 @@ dependencies = [[[package]]name = "curl-sys"version = "0.4.77+curl-8.10.1"-source = "git+https://github.com/CuriousCorrelation/curl-rust.git?rev=1ec8079cf527b9cf47cc7a48c68b458affdae273#1ec8079cf527b9cf47cc7a48c68b458affdae273"+source = "git+https://github.com/CuriousCorrelation/curl-rust.git?rev=025ff84f77e1fee37b4dca3cf39b724f4efcc87d#025ff84f77e1fee37b4dca3cf39b724f4efcc87d"dependencies = ["cc","libc",@@ -737,8 +753,10 @@ dependencies = ["bytes","cookie","curl",+ "curl-sys","dashmap","env_logger",+ "foreign-types","http","http-serde","infer",@@ -746,7 +764,9 @@ dependencies = ["log","mime","openssl",+ "openssl-probe","openssl-sys",+ "security-framework","serde","serde_json","strum",@@ -757,6 +777,7 @@ dependencies = ["url","url-escape","urlencoding",+ "windows-sys 0.59.0",][[package]]@@ -783,6 +804,29 @@ version = "1.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"+[[package]]+name = "security-framework"+version = "3.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"+dependencies = [+ "bitflags",+ "core-foundation",+ "core-foundation-sys",+ "libc",+ "security-framework-sys",+]++[[package]]+name = "security-framework-sys"+version = "2.17.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3"+dependencies = [+ "core-foundation-sys",+ "libc",+]+[[package]]name = "serde"version = "1.0.215"diff --git a/packages/hoppscotch-desktop/plugin-workspace/relay/Cargo.toml b/packages/hoppscotch-desktop/plugin-workspace/relay/Cargo.tomlindex a781adfa3..651b32a45 100644--- a/packages/hoppscotch-desktop/plugin-workspace/relay/Cargo.toml+++ b/packages/hoppscotch-desktop/plugin-workspace/relay/Cargo.toml@@ -6,15 +6,25 @@ authors = ["CuriousCorrelation"]edition = "2021"[dependencies]-curl = { git = "https://github.com/CuriousCorrelation/curl-rust.git", rev = "1ec8079cf527b9cf47cc7a48c68b458affdae273", features = ["ntlm"] }+curl = { git = "https://github.com/CuriousCorrelation/curl-rust.git", rev = "025ff84f77e1fee37b4dca3cf39b724f4efcc87d", features = ["ntlm"] }+# NOTE: Pinned to the same rev as `curl`, so+# `curl_sys::certs::get_cert_content()` returns the+# Mozilla-derived bundle compiled into that build, which+# `trust.rs` uses when a platform's host store has no anchors.+curl-sys = { git = "https://github.com/CuriousCorrelation/curl-rust.git", rev = "025ff84f77e1fee37b4dca3cf39b724f4efcc87d" }cookie = "0.18"tokio-util = "0.7.12"lazy_static = "1.5.0"-time = { version = "0.3.37", features = ["serde"] }+time = { version = "0.3.37", features = ["serde", "serde-well-known"] }openssl = { version = "0.10.66", features = ["vendored"] }# NOTE: This crate follows `openssl-sys` from https://github.com/CuriousCorrelation/curl-rust.git# to avoid issues from version mismatch when compiling from source.openssl-sys = { version = "0.9.64", features = ["vendored"] }+openssl-probe = "0.1.5"+# NOTE: `trust.rs` needs `X509Ref::as_ptr` to call the extended key+# usage accessors in `openssl-sys`, which `openssl` does not+# wrap.+foreign-types = "0.3.2"log = "0.4.22"env_logger = "0.11.5"thiserror = "1.0.64"@@ -31,3 +41,14 @@ strum = { version = "0.26.3", features = ["derive"] }bytes = { version = "1.9.0", features = ["serde"] }mime = "0.3.17"url = "2.5.4"++# macOS stores trust anchors in the keychain and Windows in the `ROOT`+# and `CA` system stores, and `openssl-probe` reads neither.+[target.'cfg(target_os = "macos")'.dependencies]+security-framework = "3"++[target.'cfg(target_os = "windows")'.dependencies]+windows-sys = { version = "0.59", features = [+ "Win32_Security_Cryptography",+ "Win32_Foundation",+] }diff --git a/packages/hoppscotch-desktop/plugin-workspace/relay/README.md b/packages/hoppscotch-desktop/plugin-workspace/relay/README.mdindex 5035fae2e..012ba61a3 100644--- a/packages/hoppscotch-desktop/plugin-workspace/relay/README.md+++ b/packages/hoppscotch-desktop/plugin-workspace/relay/README.md@@ -8,7 +8,7 @@ A HTTP request-response relay used by Hoppscotch Desktop and Hoppscotch Agent fo<div align="center">-[](https://www.rust-lang.org)+[](https://www.rust-lang.org)</div>@@ -85,9 +85,35 @@ pub enum RelayError {}```+## Checking the Windows Trust Reader From Another Host++`src/trust.rs` reads the Windows certificate stores through `crypt32`, and a+macOS or Linux host compiles none of it, so a name that does not exist in+`windows-sys` is invisible until a Windows build runs. `cargo check --target+x86_64-pc-windows-msvc` does not answer it either, since the vendored OpenSSL+build script cannot configure for that target from a host whose `perl` writes+POSIX paths.++The module is checked by copying the `#[cfg(target_os = "windows")]`+`read_platform` into a crate that depends on `windows-sys`, with the same+features this crate takes, and on `tracing` for the warnings the module+writes. The copy stubs `TrustBundle`, `TrustSource`, `valid_for_tls`,+`parse_lenient`, `dedup_exact`, `pem_encode` and+`curl_sys::certs::get_cert_content`, since none of them is what the check is+for, then runs++```+cargo check --target x86_64-pc-windows-msvc -Zbuild-std=std,panic_abort+```++which needs a nightly toolchain with `rust-src` and no Windows SDK, since a+check never links. That is how the reader's four wrong `windows-sys` names were+found on 2026-09-28, `CERT_ENHKEY_USAGE`, which the crate spells `CTL_USAGE`,+and the three location constants that exist only as unshifted identifiers.+## Requirements-- Rust 1.77.2 or later+- Rust 1.85 or later- OpenSSL development libraries- libcurl with SSL and HTTP/2.0 supportdiff --git a/packages/hoppscotch-desktop/plugin-workspace/relay/devenv.lock b/packages/hoppscotch-desktop/plugin-workspace/relay/devenv.lockindex b51b26074..ef93a84af 100644--- a/packages/hoppscotch-desktop/plugin-workspace/relay/devenv.lock+++ b/packages/hoppscotch-desktop/plugin-workspace/relay/devenv.lock@@ -3,11 +3,11 @@"devenv": {"locked": {"dir": "src/modules",- "lastModified": 1776802132,- "narHash": "sha256-2yO2SGA7zVFYKe0qyJjdg7WHuMOKNwTQmigL7ydD8hI=",+ "lastModified": 1784696310,+ "narHash": "sha256-EeZH7UbjqoJHHrN1DkV32DxZ8OMGh/2kla94lpO17eE=","owner": "cachix","repo": "devenv",- "rev": "91affc7a7b6646852a0079678eadf12ac5029d9d",+ "rev": "ef185b5a38445777194bc8469fc1cdebd99e7dbc","type": "github"},"original": {@@ -25,11 +25,11 @@"rust-analyzer-src": "rust-analyzer-src"},"locked": {- "lastModified": 1776845169,- "narHash": "sha256-Ya6Ba5oC0+PK1TSU4Rkjpoca73mUp6FoHQV5QGnqbx0=",+ "lastModified": 1784709340,+ "narHash": "sha256-qsmQMPL+qInjXfdjX0RquObSKcs5h/4D63IWH9j4+Ro=","owner": "nix-community","repo": "fenix",- "rev": "f0b5be1fa2891221ba8b48784f8fded5ef15301f",+ "rev": "fa09e6473a0dfd673e6cb9a37741aec513b4bb2a","type": "github"},"original": {@@ -40,11 +40,11 @@},"nixpkgs": {"locked": {- "lastModified": 1776329215,- "narHash": "sha256-a8BYi3mzoJ/AcJP8UldOx8emoPRLeWqALZWu4ZvjPXw=",+ "lastModified": 1784555310,+ "narHash": "sha256-/FCliTPgiuV1owejZFNx3Ch9irdvkOfOFl+HHZ+DrtM=","owner": "NixOS","repo": "nixpkgs",- "rev": "b86751bc4085f48661017fa226dee99fab6c651b",+ "rev": "421eebfd0ec7bccd4abe826ce62d7e6e83129493","type": "github"},"original": {@@ -58,17 +58,18 @@"inputs": {"devenv": "devenv","fenix": "fenix",- "nixpkgs": "nixpkgs"+ "nixpkgs": "nixpkgs",+ "rust-overlay": "rust-overlay"}},"rust-analyzer-src": {"flake": false,"locked": {- "lastModified": 1776800521,- "narHash": "sha256-f8YJfwAOsLFpIoqZuX3yF69UvMLrkx7iVzMH1pJU7cM=",+ "lastModified": 1784667699,+ "narHash": "sha256-853teJQOgTTKRfNxcIJ53ziJOGNeg3c74PvQl5l61Jc=","owner": "rust-lang","repo": "rust-analyzer",- "rev": "8954b66d43225e62c92e8bbcc8500191b5cceb1e",+ "rev": "1174734d9c6453d13d2b5e3d578512c579ca37f1","type": "github"},"original": {@@ -77,6 +78,26 @@"repo": "rust-analyzer","type": "github"}+ },+ "rust-overlay": {+ "inputs": {+ "nixpkgs": [+ "nixpkgs"+ ]+ },+ "locked": {+ "lastModified": 1784697913,+ "narHash": "sha256-DK+AmC9SQ9hmOFNIMu1l05gJtsmKyYsfJnuFtt1TnAU=",+ "owner": "oxalica",+ "repo": "rust-overlay",+ "rev": "47759faaddf38fadaf172151ca9df8adae9c0b2e",+ "type": "github"+ },+ "original": {+ "owner": "oxalica",+ "repo": "rust-overlay",+ "type": "github"+ }}},"root": "root",diff --git a/packages/hoppscotch-desktop/plugin-workspace/relay/devenv.nix b/packages/hoppscotch-desktop/plugin-workspace/relay/devenv.nixindex 391767203..3586171ae 100644--- a/packages/hoppscotch-desktop/plugin-workspace/relay/devenv.nix+++ b/packages/hoppscotch-desktop/plugin-workspace/relay/devenv.nix@@ -7,10 +7,12 @@ letelse pkgs;darwinPackages = with pkgs; [- darwin.apple_sdk.frameworks.Security- darwin.apple_sdk.frameworks.CoreServices- darwin.apple_sdk.frameworks.CoreFoundation- darwin.apple_sdk.frameworks.Foundation+ # `apple-sdk` replaces the per-framework+ # `darwin.apple_sdk.frameworks.*` attributes, which nixpkgs+ # removed in its Darwin SDK migration. The default unversioned SDK+ # includes Security, CoreServices, CoreFoundation and Foundation,+ # the frameworks this shell used before.+ apple-sdk];linuxPackages = with pkgs; [diff --git a/packages/hoppscotch-desktop/plugin-workspace/relay/devenv.yaml b/packages/hoppscotch-desktop/plugin-workspace/relay/devenv.yamlindex 9ee9ba349..708552d8d 100644--- a/packages/hoppscotch-desktop/plugin-workspace/relay/devenv.yaml+++ b/packages/hoppscotch-desktop/plugin-workspace/relay/devenv.yaml@@ -10,6 +10,11 @@ inputs:inputs:nixpkgs:follows: nixpkgs+ rust-overlay:+ url: github:oxalica/rust-overlay+ inputs:+ nixpkgs:+ follows: nixpkgs# If you're using non-OSS software, you can set allowUnfree to true.allowUnfree: truediff --git a/packages/hoppscotch-desktop/plugin-workspace/relay/src/lib.rs b/packages/hoppscotch-desktop/plugin-workspace/relay/src/lib.rsindex 91270057c..2acc61871 100644--- a/packages/hoppscotch-desktop/plugin-workspace/relay/src/lib.rs+++ b/packages/hoppscotch-desktop/plugin-workspace/relay/src/lib.rs@@ -8,6 +8,7 @@ mod request;mod response;mod security;mod transfer;+mod trust;mod util;pub use interop::{Request, Response};diff --git a/packages/hoppscotch-desktop/plugin-workspace/relay/src/request.rs b/packages/hoppscotch-desktop/plugin-workspace/relay/src/request.rsindex e9b557035..39ad7fdbc 100644--- a/packages/hoppscotch-desktop/plugin-workspace/relay/src/request.rs+++ b/packages/hoppscotch-desktop/plugin-workspace/relay/src/request.rs@@ -216,13 +216,19 @@ impl<'a> CurlRequest<'a> {AuthHandler::new(self.handle, &mut headers).set_auth(auth)?;}- if let Some(ref security) = self.request.security {- tracing::trace!(- verify_peer = ?security.verify_peer,- verify_host = ?security.verify_host,- "Configuring security settings"- );- SecurityHandler::new(self.handle).configure(security)?;+ match self.request.security {+ Some(ref security) => {+ tracing::trace!(+ verify_peer = ?security.verify_peer,+ verify_host = ?security.verify_host,+ "Configuring security settings"+ );+ SecurityHandler::new(self.handle).configure(security)?;+ }+ // A request without a security block is the ordinary case, and it+ // validates against the host store like any other, so the trust+ // bundle is configured whether or not the caller sent settings.+ None => SecurityHandler::new(self.handle).configure_host_trust()?,}if let Some(ref proxy) = self.request.proxy {diff --git a/packages/hoppscotch-desktop/plugin-workspace/relay/src/security.rs b/packages/hoppscotch-desktop/plugin-workspace/relay/src/security.rsindex 6a2e4dec1..8e05bd379 100644--- a/packages/hoppscotch-desktop/plugin-workspace/relay/src/security.rs+++ b/packages/hoppscotch-desktop/plugin-workspace/relay/src/security.rs@@ -1,3 +1,5 @@+use std::sync::OnceLock;+use bytes::Bytes;use curl::easy::Easy;@@ -6,8 +8,63 @@ use openssl::pkcs12::Pkcs12;use crate::{error::{RelayError, Result},interop::{CertificateConfig, CertificateType, SecurityConfig},+ trust::{self, TrustBundle},};+// Read once per process, since reading the keychain or enumerating the Windows+// stores is too slow to repeat on every request. The info record below is the+// only log line naming which trust source supplied the anchors, so it is+// written once at init with the source and the anchor counts.+static TRUST: OnceLock<TrustBundle> = OnceLock::new();++fn trust_bundle() -> &'static TrustBundle {+ TRUST.get_or_init(|| {+ let bundle = trust::load();+ if matches!(bundle.source, trust::TrustSource::Bundled) {+ tracing::warn!(+ anchors = bundle.retained,+ "Host trust store unread, using the bundled roots"+ );+ } else {+ tracing::info!(+ source = bundle.source.as_str(),+ anchors_read = bundle.read,+ anchors = bundle.retained,+ "Resolved TLS trust store"+ );+ }+ bundle+ })+}++fn system_ca_bundle() -> &'static [u8] {+ trust_bundle().pem.as_slice()+}++// `CURLOPT_CAINFO_BLOB` replaces its previous value on every call and overrides+// `CURLOPT_CAINFO`, so setting one blob per cert would keep only the last cert+// and drop the system trust store as well. Concatenating the system anchors+// first and the user CAs after them into one blob, set once, extends the host+// store with every user CA.+fn combine_ca_bundle(system: &[u8], user: &[Bytes]) -> Vec<u8> {+ let mut combined: Vec<u8> = Vec::with_capacity(system.len() + 4096);+ combined.extend_from_slice(system);+ if !system.is_empty() && !combined.ends_with(b"\n") {+ combined.push(b'\n');+ }+ // Each user entry is re-encoded from the blocks that parsed, ∵ OpenSSL+ // reads the blob as a whole and a malformed block anywhere in it discards+ // the certificates already read, which would take the host anchors down+ // with the entry the bad block came in.+ for cert in user {+ combined.extend_from_slice(&trust::normalize_pem(cert));+ if !combined.ends_with(b"\n") {+ combined.push(b'\n');+ }+ }+ combined+}+pub(crate) struct SecurityHandler<'a> {handle: &'a mut Easy,}@@ -18,6 +75,12 @@ impl<'a> SecurityHandler<'a> {}#[tracing::instrument(skip(self), level = "debug")]+ /// Sets the host anchors with no user CA, for a request that sends no+ /// security settings of its own.+ pub(crate) fn configure_host_trust(&mut self) -> Result<()> {+ self.configure_ca_certificates(&[])+ }+pub(crate) fn configure(&mut self, security: &SecurityConfig) -> Result<()> {tracing::info!("Configuring security settings");@@ -47,6 +110,16 @@ impl<'a> SecurityHandler<'a> {self.configure_certificates(certs)?;}+ // Applied on every request, since every request validates against the+ // host store and curl reads that store only through the probe, which+ // finds a usable file on Linux alone.+ let user_cas = security+ .certificates+ .as_ref()+ .and_then(|certs| certs.ca.as_deref())+ .unwrap_or(&[]);+ self.configure_ca_certificates(user_cas)?;+tracing::debug!("Security configuration complete");Ok(())}@@ -66,10 +139,6 @@ impl<'a> SecurityHandler<'a> {}}- if let Some(ref ca_certs) = certs.ca {- self.configure_ca_certificates(ca_certs)?;- }-Ok(())}@@ -125,7 +194,7 @@ impl<'a> SecurityHandler<'a> {let parsed = pkcs12.parse2(password).map_err(|e| {tracing::error!(error = %e, "Failed to parse PKCS#12 password");RelayError::Certificate {- message: "Failed to parse PKCS#12 password".into(),+ message: "Failed to parse the PKCS#12 bundle".into(),cause: Some(e.to_string()),}})?;@@ -158,16 +227,276 @@ impl<'a> SecurityHandler<'a> {}fn configure_ca_certificates(&mut self, ca_certs: &[Bytes]) -> Result<()> {+ // Checked before the concatenation, since OpenSSL skips an entry that+ // is not PEM without reporting it, and the user who pasted that entry+ // would see only a handshake failure.for (index, cert) in ca_certs.iter().enumerate() {- tracing::debug!(cert_index = index, "Setting CA certificate");- self.handle.ssl_cainfo_blob(cert).map_err(|e| {- tracing::error!(error = %e, cert_index = index, "Failed to set CA certificate");- RelayError::Certificate {- message: format!("Failed to set CA certificate at index {}", index),- cause: Some(e.to_string()),- }- })?;+ if !trust::parses_as_pem(cert) {+ tracing::error!(cert_index = index, "CA certificate is not valid PEM");+ return Err(RelayError::Certificate {+ message: format!("CA certificate at index {index} is not valid PEM"),+ cause: None,+ });+ }+ }++ // The host store is empty only where its policy denies every root,+ // the bundled ones included, and that empty blob is set, ∵ curl's own+ // trust configuration would trust the roots that policy denies.+ // libcurl fails a TLS connection that verifies the peer on a blob with+ // no certificate, and a plain HTTP request or one that turned+ // verification off never reads the blob.+ let combined = combine_ca_bundle(system_ca_bundle(), ca_certs);+ if combined.is_empty() {+ tracing::warn!("Host trust policy denies every root, verified TLS connections fail");}++ if !ca_certs.is_empty() {+ tracing::debug!(+ user_certs = ca_certs.len(),+ "Extending the trust store with user CA certificates"+ );+ }++ self.handle.ssl_cainfo_blob(&combined).map_err(|e| {+ tracing::error!(error = %e, "Failed to set combined CA bundle");+ RelayError::Certificate {+ message: "Failed to set combined CA bundle".into(),+ cause: Some(e.to_string()),+ }+ })?;++ // `CURLOPT_CAINFO_BLOB` covers the origin connection, and libcurl+ // verifies an HTTPS proxy against its own CA setting, so a proxy whose+ // certificate chains to a host anchor would otherwise fail the CONNECT+ // with nothing the user can configure.+ self.handle.proxy_ssl_cainfo_blob(&combined).map_err(|e| {+ tracing::error!(error = %e, "Failed to set combined CA bundle for the proxy");+ RelayError::Certificate {+ message: "Failed to set combined CA bundle for the proxy".into(),+ cause: Some(e.to_string()),+ }+ })?;Ok(())}}++#[cfg(test)]+mod tests {+ use super::{combine_ca_bundle, SecurityHandler};+ use crate::interop::{CertificateConfig, SecurityConfig};+ use bytes::Bytes;+ use curl::easy::Easy;+ use openssl::asn1::Asn1Time;+ use openssl::hash::MessageDigest;+ use openssl::pkey::PKey;+ use openssl::rsa::Rsa;+ use openssl::x509::{X509Name, X509};++ // A real certificate, ∵ `combine_ca_bundle` re-encodes each user entry+ // from the blocks that parse and a placeholder string parses as nothing.+ fn cert(cn: &str) -> Bytes {+ let key = PKey::from_rsa(Rsa::generate(2048).expect("rsa")).expect("pkey");+ let mut name = X509Name::builder().expect("name builder");+ name.append_entry_by_text("CN", cn).expect("cn");+ let name = name.build();++ let mut builder = X509::builder().expect("cert builder");+ builder.set_version(2).expect("version");+ builder.set_subject_name(&name).expect("subject");+ builder.set_issuer_name(&name).expect("issuer");+ builder.set_pubkey(&key).expect("pubkey");+ builder+ .set_not_before(&Asn1Time::days_from_now(0).expect("now"))+ .expect("not before");+ builder+ .set_not_after(&Asn1Time::days_from_now(365).expect("year"))+ .expect("not after");+ builder.sign(&key, MessageDigest::sha256()).expect("sign");+ Bytes::from(builder.build().to_pem().expect("pem"))+ }++ fn anchors(blob: &[u8]) -> usize {+ blob.windows(27)+ .filter(|window| *window == b"-----BEGIN CERTIFICATE-----")+ .count()+ }++ #[test]+ fn an_empty_user_list_returns_the_system_bundle_unchanged() {+ assert_eq!(combine_ca_bundle(b"sys\n", &[]), b"sys\n".to_vec());+ }++ #[test]+ fn a_system_bundle_without_a_trailing_newline_gains_one() {+ assert_eq!(combine_ca_bundle(b"sys", &[]), b"sys\n".to_vec());+ }++ #[test]+ fn an_empty_system_bundle_returns_the_user_certs_alone() {+ let user = cert("alone");+ assert_eq!(combine_ca_bundle(b"", &[user.clone()]), user.to_vec());+ }++ #[test]+ fn both_empty_returns_an_empty_blob() {+ assert!(combine_ca_bundle(b"", &[]).is_empty());+ }++ #[test]+ fn the_system_anchors_precede_the_user_certs() {+ let system = cert("system");+ let user = cert("user");+ let blob = combine_ca_bundle(&system, &[user.clone()]);+ assert!(blob.starts_with(&system));+ assert!(blob.ends_with(&user));+ assert_eq!(anchors(&blob), 2);+ }++ // One `ssl_cainfo_blob` call per cert keeps only the last cert, so this+ // asserts that every user CA is in the combined blob.+ #[test]+ fn every_user_cert_is_in_the_blob() {+ let system = cert("system");+ let user = [cert("one"), cert("two"), cert("three")];+ let blob = combine_ca_bundle(&system, &user);+ for entry in &user {+ assert!(+ blob.windows(entry.len()).any(|window| window == &entry[..]),+ "a user certificate is missing from the combined blob"+ );+ }+ assert_eq!(anchors(&blob), 4);+ }++ // The lenient check accepts an entry whose blocks parse in part, and the+ // blob OpenSSL reads is all-or-nothing, so the entry reaches it as the+ // certificates that parsed and the corrupt block is left behind.+ #[test]+ fn a_user_entry_with_a_corrupt_block_keeps_its_certificate() {+ let good = cert("good");+ let mut mixed = good.to_vec();+ mixed.extend_from_slice(+ b"-----BEGIN CERTIFICATE-----\ntruncated\n-----END CERTIFICATE-----\n",+ );+ let blob = combine_ca_bundle(b"", &[Bytes::from(mixed)]);+ assert_eq!(blob, good.to_vec());+ assert_eq!(anchors(&blob), 1);+ }++ fn perform(url: &str, ca: Option<Vec<Bytes>>) -> u32 {+ let mut handle = Easy::new();+ handle.url(url).expect("url");+ handle.write_function(|data| Ok(data.len())).expect("sink");+ SecurityHandler::new(&mut handle)+ .configure(&SecurityConfig {+ certificates: ca.map(|ca| CertificateConfig {+ client: None,+ ca: Some(ca),+ }),+ verify_host: Some(true),+ verify_peer: Some(true),+ })+ .expect("configure");+ handle.perform().expect("perform");+ handle.response_code().expect("response code")+ }++ // Makes a network request, so it is ignored by default. The endpoint chains+ // to ISRG Root X2, which the keychain has and `/etc/ssl/cert.pem` is+ // missing, so on macOS it passes only when the keychain reader supplied the+ // blob.+ #[test]+ #[ignore = "network"]+ fn a_publicly_signed_endpoint_validates_with_no_user_ca_configured() {+ assert_eq!(perform("https://valid-isrgrootx2.letsencrypt.org/", None), 200);+ }++ // The combined blob has to keep the public roots after a user CA is added.+ // The certificate here is a self-signed root unrelated to the endpoint, so+ // only the system anchors in the blob can validate its chain.+ #[test]+ #[ignore = "network"]+ fn a_user_ca_extends_the_host_store() {+ let unrelated = Bytes::from_static(include_bytes!("../tests/unrelated-root.pem"));+ assert_eq!(+ perform("https://valid-isrgrootx2.letsencrypt.org/", Some(vec![unrelated])),+ 200+ );+ }++ #[test]+ fn a_user_entry_that_is_not_pem_is_named_by_its_index() {+ let mut handle = Easy::new();+ let certs = vec![+ Bytes::from_static(include_bytes!("../tests/unrelated-root.pem")),+ Bytes::from_static(b"not a certificate"),+ ];+ let error = SecurityHandler::new(&mut handle)+ .configure_ca_certificates(&certs)+ .expect_err("an unparseable entry is an error");+ assert!(+ format!("{error:?}").contains("index 1"),+ "the error names the offending entry, got {error:?}"+ );+ }++ // Accepts one connection and answers it with `reply`, or holds it open+ // with no answer, which leaves curl at its TLS setup, where libcurl reads+ // the CA blob.+ fn serve_once(reply: Option<&'static [u8]>) -> u16 {+ use std::io::{Read, Write};++ let listener = std::net::TcpListener::bind("127.0.0.1:0").expect("bind");+ let port = listener.local_addr().expect("local addr").port();+ std::thread::spawn(move || {+ let Ok((mut stream, _)) = listener.accept() else {+ return;+ };+ match reply {+ Some(reply) => {+ let mut request = [0u8; 1024];+ let _ = stream.read(&mut request);+ let _ = stream.write_all(reply);+ }+ None => std::thread::sleep(std::time::Duration::from_secs(5)),+ }+ });+ port+ }++ #[test]+ fn an_empty_blob_fails_a_verified_tls_connection() {+ let port = serve_once(None);+ let mut handle = Easy::new();+ handle+ .url(&format!("https://127.0.0.1:{port}/"))+ .expect("url");+ handle+ .timeout(std::time::Duration::from_secs(5))+ .expect("timeout");+ handle.ssl_cainfo_blob(b"").expect("blob");++ let error = handle.perform().expect_err("no anchor verifies the peer");+ assert!(error.is_ssl_cacert_badfile(), "got {error:?}");+ }++ #[test]+ fn an_empty_blob_leaves_a_plain_http_request_alone() {+ let port = serve_once(Some(+ b"HTTP/1.1 200 OK\r\nContent-Length: 0\r\nConnection: close\r\n\r\n",+ ));+ let mut handle = Easy::new();+ handle+ .url(&format!("http://127.0.0.1:{port}/"))+ .expect("url");+ handle+ .timeout(std::time::Duration::from_secs(5))+ .expect("timeout");+ handle.ssl_cainfo_blob(b"").expect("blob");+ handle.write_function(|data| Ok(data.len())).expect("sink");++ handle.perform().expect("plain HTTP reads no CA blob");+ assert_eq!(handle.response_code().expect("response code"), 200);+ }+}diff --git a/packages/hoppscotch-desktop/plugin-workspace/relay/src/trust.rs b/packages/hoppscotch-desktop/plugin-workspace/relay/src/trust.rsnew file mode 100644index 000000000..23c39f88f--- /dev/null+++ b/packages/hoppscotch-desktop/plugin-workspace/relay/src/trust.rs@@ -0,0 +1,1194 @@+//! Reads the host trust store into a PEM blob.+//!+//! Vendored OpenSSL has no anchors of its own, and `openssl_probe` checks a+//! fixed list of bundle file paths, which matches how Linux stores its anchors.+//! On macOS the probe returns `/etc/ssl/cert.pem`, a LibreSSL-derived snapshot+//! last revised upstream in 2021 that omits anchors the keychain has, ISRG Root+//! X2 among them, and on Windows it returns nothing, since Group Policy+//! installs enterprise CAs into the `ROOT` and `CA` stores. So this module+//! reads the keychain on macOS and the certificate stores on Windows, and uses+//! the probe on Linux, where the bundle file is the host store.+//!+//! The usage filter applies to the platforms that export a store, ∵ macOS and+//! Windows both keep code signing and timestamping roots beside the TLS ones,+//! where a `ca-certificates.crt` on Linux is a TLS anchor set already and its+//! maintainer decided what belongs in it.++use std::collections::HashSet;++use foreign_types::ForeignType;+use openssl::x509::X509;++// `X509_get_extension_flags` sets `EXFLAG_XKUSAGE` when the certificate has an+// extended key usage extension, which tells a root that constrains its usage+// apart from one that declares no constraint, and `X509_get_extended_key_usage`+// returns the `XKU_*` bitmask.+#[cfg_attr(+ not(any(target_os = "macos", target_os = "windows")),+ allow(dead_code)+)]+const XKU_SSL_SERVER: u32 = 0x1;+#[cfg_attr(+ not(any(target_os = "macos", target_os = "windows")),+ allow(dead_code)+)]+const XKU_ANYEKU: u32 = 0x100;+#[cfg_attr(+ not(any(target_os = "macos", target_os = "windows")),+ allow(dead_code)+)]+const XKU_SGC: u32 = 0x10;+#[cfg_attr(+ not(any(target_os = "macos", target_os = "windows")),+ allow(dead_code)+)]+const EXFLAG_XKUSAGE: u32 = 0x4;++const PEM_HEADER: &[u8] = b"-----BEGIN CERTIFICATE-----";+const PEM_FOOTER: &[u8] = b"-----END CERTIFICATE-----";++#[derive(Clone, Copy, Debug, PartialEq, Eq)]+#[allow(dead_code)]+pub(crate) enum TrustSource {+ MacosKeychain,+ WindowsStores,+ OpensslProbe,+ Bundled,+}++impl TrustSource {+ pub(crate) fn as_str(self) -> &'static str {+ match self {+ TrustSource::MacosKeychain => "macos-keychain",+ TrustSource::WindowsStores => "windows-cert-stores",+ TrustSource::OpensslProbe => "openssl-probe",+ TrustSource::Bundled => "bundled-cacert",+ }+ }+}++pub(crate) struct TrustBundle {+ pub(crate) source: TrustSource,+ pub(crate) pem: Vec<u8>,+ pub(crate) read: usize,+ pub(crate) retained: usize,+}++/// Returns the host store, and the `curl-sys` bundle where no host store could+/// be read. A read that resolves no anchors is returned empty, ∵ the macOS and+/// Windows readers already extend a short read with the bundled roots minus+/// every root the host denies, so an empty result is a host whose policy+/// denies every root, and the full bundle would trust the roots it denies.+pub(crate) fn load() -> TrustBundle {+ or_bundled(read_platform())+}++fn or_bundled(read: Option<TrustBundle>) -> TrustBundle {+ read.unwrap_or_else(bundled)+}++/// Certificates OpenSSL can parse out of a PEM blob, block by block, since+/// `X509::stack_from_pem` discards every certificate it had already parsed+/// when it meets a malformed one, and a `ca-certificates.crt` with a single+/// bad entry among a hundred good ones is more likely than a file with+/// nothing parseable in it at all.+fn parse_lenient(pem: &[u8]) -> Vec<Vec<u8>> {+ let mut out = Vec::new();+ let mut rest = pem;+ while let Some(start) = find(rest, PEM_HEADER) {+ let block = &rest[start + PEM_HEADER.len()..];+ // A block with no footer of its own ends where the next one begins,+ // ∵ a footer found past that header belongs to the later block, and+ // parsing the pair as one takes the later certificate down with the+ // truncated one this scan is here to survive.+ let next = find(block, PEM_HEADER);+ let end = match find(block, PEM_FOOTER) {+ Some(e) if next.is_none_or(|n| n > e) => e + PEM_FOOTER.len(),+ _ => {+ rest = match next {+ Some(n) => &block[n..],+ None => break,+ };+ continue;+ }+ };+ let whole = &rest[start..start + PEM_HEADER.len() + end];+ if let Ok(cert) = X509::from_pem(whole) {+ if let Ok(der) = cert.to_der() {+ out.push(der);+ }+ }+ rest = &block[end..];+ }+ out+}++fn find(haystack: &[u8], needle: &[u8]) -> Option<usize> {+ haystack+ .windows(needle.len())+ .position(|window| window == needle)+}++fn bundled() -> TrustBundle {+ let pem = curl_sys::certs::get_cert_content().as_bytes().to_vec();+ let count = count_anchors(&pem);+ TrustBundle {+ source: TrustSource::Bundled,+ pem,+ read: count,+ retained: count,+ }+}++fn count_anchors(pem: &[u8]) -> usize {+ pem.windows(PEM_HEADER.len())+ .filter(|window| *window == PEM_HEADER)+ .count()+}++/// True where the anchor may sign a server certificate, meaning it asserts+/// `id-kp-serverAuth` or `anyExtendedKeyUsage`, or asserts no extended key+/// usage and is unconstrained by design. macOS applies this check in the policy+/// layer of `SecTrustEvaluate`, which a PEM export cannot encode, so a+/// code-signing or timestamping root in the blob would validate under the relay+/// and fail in Safari on the same machine.+#[cfg_attr(+ not(any(target_os = "macos", target_os = "windows")),+ allow(dead_code)+)]+fn valid_for_tls(der: &[u8]) -> bool {+ let Ok(cert) = X509::from_der(der) else {+ return false;+ };+ unsafe {+ let ptr = cert.as_ptr();+ if openssl_sys::X509_get_extension_flags(ptr) & EXFLAG_XKUSAGE == 0 {+ return true;+ }+ openssl_sys::X509_get_extended_key_usage(ptr) & (XKU_SSL_SERVER | XKU_ANYEKU | XKU_SGC) != 0+ }+}++/// Keyed on the encoded certificate, since two roots can share a public key+/// and differ in subject or validity. `CN=Apple Root CA` and the expired+/// `CN=Apple Root Certificate Authority` share one key in the macOS System+/// domain, and an ADCS root renewal reuses its key by default, so keying on+/// the key would let enumeration order decide which of a live root and a dead+/// one reaches the blob. OpenSSL matches an anchor by issuer name, so both+/// have to be present.+fn dedup_exact(ders: Vec<Vec<u8>>) -> Vec<Vec<u8>> {+ let mut seen: HashSet<Vec<u8>> = HashSet::new();+ let mut out = Vec::with_capacity(ders.len());+ for der in ders {+ if seen.insert(der.clone()) {+ out.push(der);+ }+ }+ out+}++#[cfg_attr(+ not(any(target_os = "macos", target_os = "windows")),+ allow(dead_code)+)]+/// The PEM blob and the count of anchors in it, which is what the trust source line+/// reports, since an anchor that fails re-encoding is absent from the blob and+/// counting before this point would overstate what curl received.+fn pem_encode(ders: &[Vec<u8>]) -> (Vec<u8>, usize) {+ let mut out = Vec::new();+ let mut encoded = 0usize;+ for der in ders {+ if let Ok(pem) = X509::from_der(der).and_then(|cert| cert.to_pem()) {+ out.extend_from_slice(&pem);+ if !out.ends_with(b"\n") {+ out.push(b'\n');+ }+ encoded += 1;+ } else {+ tracing::debug!("Anchor dropped, it does not re-encode as PEM");+ }+ }+ (out, encoded)+}++/// True where the bytes parse as at least one PEM certificate, which is+/// how a user entry is checked before it is added to the combined blob. The+/// check is the lenient one the host store reads with, ∵ a bundle whose last+/// block is corrupt still supplies the CAs before it, and rejecting the entry+/// would drop them all.+pub(crate) fn parses_as_pem(pem: &[u8]) -> bool {+ !parse_lenient(pem).is_empty()+}++/// The certificates of a user entry, re-encoded, since `CURLOPT_CAINFO_BLOB`+/// is parsed all at once and one malformed block in the middle of the blob+/// discards every certificate OpenSSL had read from it, the user's and the+/// host's alike.+pub(crate) fn normalize_pem(pem: &[u8]) -> Vec<u8> {+ pem_encode(&parse_lenient(pem)).0+}++/// What a domain says about one certificate. `Defer` passes the question to+/// the next domain down, which is what an empty trust settings array means+/// outside the System domain and what `Unspecified` means anywhere.+#[derive(Clone, Copy, Debug, PartialEq, Eq)]+#[cfg_attr(not(target_os = "macos"), allow(dead_code))]+pub(crate) enum Decision {+ Trust,+ Deny,+ Defer,+}++/// Anchors from entries ordered by descending domain precedence, User first+/// and System last. The first domain that decides a certificate settles it, so+/// a root the System domain ships and an administrator denies is excluded+/// rather than exported, and a certificate every domain defers on is absent.+#[cfg_attr(not(target_os = "macos"), allow(dead_code))]+fn resolve_by_precedence(entries: Vec<(Vec<u8>, Vec<u8>, Decision)>) -> Vec<Vec<u8>> {+ let mut settled: HashSet<Vec<u8>> = HashSet::new();+ let mut out = Vec::new();+ for (key, der, decision) in entries {+ if decision == Decision::Defer || settled.contains(&key) {+ continue;+ }+ settled.insert(key);+ if decision == Decision::Trust {+ out.push(der);+ }+ }+ out+}++/// The decision a domain's trust setting makes about one certificate, kept+/// apart from the keychain read so the policy can be exercised offline.+///+/// An explicit SSL trust setting in Admin or User is taken without the+/// extended key usage check, ∵ an administrator or the person at the machine+/// chose that policy against what the certificate itself states. The System+/// domain gets no such exemption, ∵ Apple ships those settings beside roots+/// issued for code signing, timestamping and S/MIME, and an entry stating no+/// server authentication usage is not a TLS anchor whatever the shipped+/// setting says. An empty settings array means trusted in System and defer+/// elsewhere. An Admin or User setting this process could not read denies,+/// ∵ it may be the denial of a root System trusts, and a deferral would let+/// the System entry decide it. A System setting that could not read defers,+/// ∵ the bundled roots stand in for the System roots.+#[cfg(target_os = "macos")]+fn decide(+ is_system: bool,+ setting: Result<Option<security_framework::trust_settings::TrustSettingsForCertificate>, ()>,+ der: &[u8],+) -> Decision {+ use security_framework::trust_settings::TrustSettingsForCertificate;++ match setting {+ Ok(Some(TrustSettingsForCertificate::TrustRoot))+ | Ok(Some(TrustSettingsForCertificate::TrustAsRoot)) => {+ if is_system && !valid_for_tls(der) {+ Decision::Deny+ } else {+ Decision::Trust+ }+ }+ Ok(Some(TrustSettingsForCertificate::Deny)) => Decision::Deny,+ // `None` is what the domain answers for a certificate whose settings+ // say nothing about TLS, and `security-framework` folds+ // `Unspecified` and `Invalid` into it as well rather than returning+ // them, so this arm is where an unspecified System entry arrives. The+ // default it means is the trust Apple ships, so the certificate is an+ // anchor where its usage allows one. FE-1386 covers the empty settings+ // array, which Apple documents as trust and which arrives here too.+ Ok(None) if is_system => {+ if valid_for_tls(der) {+ Decision::Trust+ } else {+ Decision::Deny+ }+ }+ Ok(_) => Decision::Defer,+ Err(()) if is_system => Decision::Defer,+ Err(()) => Decision::Deny,+ }+}++/// How many anchors the System domain decided itself, which is what decides+/// the fallback, ∵ the public roots are System's and a trusted User or Admin+/// anchor beside an empty System domain is not a trust store. `entries` is in+/// precedence order with System's from `system_start` on, and a System root+/// that User or Admin already decided counts for neither side here, ∵ an+/// override of the System entry is the higher domain's anchor, and counting it+/// would skip the fallback where that override is the only anchor left.+#[cfg_attr(not(target_os = "macos"), allow(dead_code))]+fn system_anchor_count(entries: &[(Vec<u8>, Vec<u8>, Decision)], system_start: usize) -> usize {+ let (above, system) = entries.split_at(system_start.min(entries.len()));+ let mut settled: HashSet<&[u8]> = above+ .iter()+ .filter(|(_, _, decision)| *decision != Decision::Defer)+ .map(|(key, _, _)| key.as_slice())+ .collect();+ let mut count = 0;+ for (key, _, decision) in system {+ if *decision == Decision::Defer || !settled.insert(key.as_slice()) {+ continue;+ }+ if *decision == Decision::Trust {+ count += 1;+ }+ }+ count+}++#[cfg(target_os = "macos")]+fn read_platform() -> Option<TrustBundle> {+ use security_framework::trust_settings::{Domain, TrustSettings};++ let mut entries: Vec<(Vec<u8>, Vec<u8>, Decision)> = Vec::new();+ let mut read = 0usize;+ let mut system_read = false;+ let mut denials_known = true;+ let mut system_start: Option<usize> = None;++ // User settings override Admin settings, which override what the System+ // domain ships, so the domains are read in that order and the first+ // decision on a certificate is the effective one.+ for domain in [Domain::User, Domain::Admin, Domain::System] {+ let settings = TrustSettings::new(domain);+ let Ok(certificates) = settings.iter() else {+ tracing::warn!(domain = ?domain, "Trust domain unreadable");+ // The denials of a domain that will not enumerate cannot be read+ // by any other call, so the fallback below is told that the+ // subtraction it performs is incomplete.+ if !matches!(domain, Domain::System) {+ denials_known = false;+ }+ continue;+ };+ if matches!(domain, Domain::System) {+ system_read = true;+ system_start = Some(entries.len());+ }+ for cert in certificates {+ read += 1;+ let der = cert.to_der();+ // A policy that cannot be read grants nothing, and the warning+ // names the domain, so a corporate root absent from the blob has a+ // cause to follow.+ let setting = settings+ .tls_trust_settings_for_certificate(&cert)+ .map_err(|e| {+ tracing::warn!(error = %e, domain = ?domain, "Trust settings read failed");+ });+ let decision = decide(matches!(domain, Domain::System), setting, &der);+ entries.push((der.clone(), der, decision));+ }+ }++ let denied: Vec<Vec<u8>> = entries+ .iter()+ .filter(|(_, _, decision)| *decision == Decision::Deny)+ .map(|(_, der, _)| der.clone())+ .collect();+ let system_anchors = system_anchor_count(&entries, system_start.unwrap_or(entries.len()));+ let mut ders = resolve_by_precedence(entries);+ if read == 0 {+ return None;+ }+ // The public roots come from the System domain, so the fallback keys on+ // what that domain contributed rather than on the resolved set, ∵ one+ // trusted User anchor beside a System domain that went unread, or whose+ // every entry was denied, would otherwise pass as a full trust store and+ // fail every public endpoint. The roots a domain denied are removed from+ // the compiled-in set, ∵ a fallback that restored them would undo the+ // denial that emptied the read.+ if !system_read || system_anchors == 0 {+ tracing::warn!(+ anchors = ders.len(),+ system_anchors,+ denials_known,+ "Host trust store read short, extending with the bundled roots"+ );+ // Where an Admin or User domain would not enumerate, the roots it+ // denies are unknown to every call this process can make, so the+ // subtraction covers the denials that were read and the warning above+ // says which case this is. FE-1382 decides the limit.+ let mut bundled = parse_lenient(curl_sys::certs::get_cert_content().as_bytes());+ bundled.retain(|der| !denied.contains(der));+ ders.extend(bundled);+ }++ let ders = dedup_exact(ders);+ let (pem, retained) = pem_encode(&ders);+ Some(TrustBundle {+ source: TrustSource::MacosKeychain,+ pem,+ read,+ retained,+ })+}++#[cfg(target_os = "windows")]+fn read_platform() -> Option<TrustBundle> {+ use std::ptr;++ use windows_sys::Win32::Foundation::{+ GetLastError, SetLastError, CRYPT_E_NOT_FOUND, ERROR_FILE_NOT_FOUND,+ ERROR_NO_MORE_FILES, ERROR_PATH_NOT_FOUND,+ };+ use windows_sys::Win32::Security::Cryptography::{+ CertCloseStore, CertEnumCertificatesInStore, CertGetEnhancedKeyUsage, CertOpenStore,+ CERT_CONTEXT, CERT_STORE_OPEN_EXISTING_FLAG, CERT_STORE_PROV_SYSTEM_W,+ CERT_STORE_READONLY_FLAG, CERT_SYSTEM_STORE_CURRENT_USER,+ CERT_SYSTEM_STORE_CURRENT_USER_GROUP_POLICY_ID, CERT_SYSTEM_STORE_LOCAL_MACHINE,+ CERT_SYSTEM_STORE_LOCAL_MACHINE_ENTERPRISE_ID,+ CERT_SYSTEM_STORE_LOCAL_MACHINE_GROUP_POLICY_ID, CERT_SYSTEM_STORE_LOCATION_SHIFT,+ CTL_USAGE,+ };++ // `Root` at `LOCAL_MACHINE` is a collection whose physical members are+ // `.Default`, `.AuthRoot`, `.GroupPolicy`, `.Enterprise` and `.SmartCard`,+ // and `Root` at `CURRENT_USER` adds `.LocalMachine`, so the first two+ // locations already cover the group policy and enterprise roots. The+ // policy locations are read as well, ∵ a physical store an administrator+ // unregisters from the collection is still readable at its own location,+ // and `dedup_exact` removes what the collections already returned.+ // `CertOpenStore` takes the location in the high word of `dwFlags`, and+ // `windows-sys` ships the machine and user locations already shifted while+ // the policy and enterprise locations exist only as their identifiers, so+ // those are shifted here by the documented amount.+ const LOCATION_SHIFT: u32 = CERT_SYSTEM_STORE_LOCATION_SHIFT;+ let locations: [(u32, &str); 5] = [+ (CERT_SYSTEM_STORE_LOCAL_MACHINE, "LocalMachine"),+ (CERT_SYSTEM_STORE_CURRENT_USER, "CurrentUser"),+ (+ CERT_SYSTEM_STORE_LOCAL_MACHINE_GROUP_POLICY_ID << LOCATION_SHIFT,+ "LocalMachineGroupPolicy",+ ),+ (+ CERT_SYSTEM_STORE_CURRENT_USER_GROUP_POLICY_ID << LOCATION_SHIFT,+ "CurrentUserGroupPolicy",+ ),+ (+ CERT_SYSTEM_STORE_LOCAL_MACHINE_ENTERPRISE_ID << LOCATION_SHIFT,+ "LocalMachineEnterprise",+ ),+ ];++ // Every certificate in a `CURLOPT_CAINFO_BLOB` is a trust anchor, and the+ // `CA` store keeps intermediates that Windows chains through a root, so+ // anchors come from `ROOT` and `Disallowed` says which of them an+ // administrator has revoked.+ // What the store entry says a root may be used for. Windows keeps the+ // permitted purposes in the entry's enhanced key usage property, which+ // `pbCertEncoded` leaves out, so a root restricted to code signing+ // looks unrestricted to anything that reads the certificate alone.+ enum StoreUsage {+ Restricted(Vec<String>),+ Unrestricted,+ // The property could not be read, or it is present and names no usage+ // at all, which Windows distinguishes from an absent property by the+ // last error and which means the entry is valid for no purpose.+ Denied,+ }++ const SERVER_AUTH_OID: &str = "1.3.6.1.5.5.7.3.1";+ const ANY_USAGE_OID: &str = "2.5.29.37.0";++ // Windows itself computes the usages a certificate is valid for, and its+ // rule is the intersection, "If a certificate has both an EKU extension+ // and EKU extended properties, it is valid only for the uses that are on+ // both lists", so the call takes `dwFlags` of zero and the intersection+ // comes back rather than being assembled here from the property and the+ // extension separately.+ //+ // A zero usage count is ambiguous, and the documented test is the last+ // error, `CRYPT_E_NOT_FOUND` for a certificate valid for every use and+ // zero for one valid for none. The error is cleared+ // before each call, ∵ the enumeration around it ends with+ // `CRYPT_E_NOT_FOUND` of its own, which a certificate valid for no use+ // would otherwise inherit and be exported on.+ fn no_property() -> bool {+ let error = unsafe { GetLastError() };+ error as i32 == CRYPT_E_NOT_FOUND+ }++ fn store_usage(ctx: *const CERT_CONTEXT) -> StoreUsage {+ let mut size = 0u32;+ let ok = unsafe {+ SetLastError(0);+ CertGetEnhancedKeyUsage(ctx, 0, std::ptr::null_mut(), &mut size)+ };+ if ok == 0 {+ return if no_property() {+ StoreUsage::Unrestricted+ } else {+ tracing::warn!("Store entry usage property unreadable, entry denied");+ StoreUsage::Denied+ };+ }+ if size < std::mem::size_of::<CTL_USAGE>() as u32 {+ return StoreUsage::Denied;+ }+ // `CTL_USAGE` declares a pointer member, so the buffer the API writes+ // it into is allocated as words rather than bytes, ∵ a `Vec<u8>` gives+ // the cast no alignment to rely on.+ let words = (size as usize).div_ceil(std::mem::size_of::<usize>());+ let mut buffer = vec![0usize; words];+ let usage = buffer.as_mut_ptr() as *mut CTL_USAGE;+ let ok = unsafe {+ SetLastError(0);+ CertGetEnhancedKeyUsage(ctx, 0, usage, &mut size)+ };+ if ok == 0 {+ tracing::warn!("Store entry usage property unreadable, entry denied");+ return StoreUsage::Denied;+ }+ let usage = unsafe { &*usage };+ if usage.cUsageIdentifier == 0 {+ return if no_property() {+ StoreUsage::Unrestricted+ } else {+ StoreUsage::Denied+ };+ }+ let mut oids = Vec::with_capacity(usage.cUsageIdentifier as usize);+ for index in 0..usage.cUsageIdentifier as usize {+ let oid = unsafe { *usage.rgpszUsageIdentifier.add(index) };+ if oid.is_null() {+ continue;+ }+ let text = unsafe { std::ffi::CStr::from_ptr(oid as *const i8) };+ if let Ok(text) = text.to_str() {+ oids.push(text.to_owned());+ }+ }+ StoreUsage::Restricted(oids)+ }++ // A store that is not there and a store that would not read are different+ // answers, ∵ several locations ship no `Disallowed` store at all while a+ // read that fails partway leaves revocations unseen.+ // `CertOpenStore` documents one error code of its own, `ERROR_FILE_NOT_FOUND`+ // for a provider it cannot find, which the built-in system provider never+ // answers, and propagates registry errors otherwise. With+ // `CERT_STORE_OPEN_EXISTING_FLAG` the system provider opens the store's key+ // through `RegOpenKeyExW`, which answers a key that does not exist with+ // `ERROR_FILE_NOT_FOUND`, or `ERROR_PATH_NOT_FOUND` where a parent key is+ // missing too, so those two codes mean the store is not provisioned and+ // every other code is a store that exists and would not open.+ enum StoreError {+ Absent,+ Open,+ // What the enumeration returned before it failed, ∵ a partial `ROOT`+ // read still names roots this machine trusts and discarding them would+ // drop the enterprise anchors the whole reader exists for.+ Incomplete(Vec<(Vec<u8>, StoreUsage)>),+ }++ type StoreRead = std::result::Result<Vec<(Vec<u8>, StoreUsage)>, StoreError>;++ // The usage decides whether a root may anchor a TLS chain, and a+ // `Disallowed` entry is a revocation whatever its usage says, so the usage+ // is read for `ROOT` alone rather than computed over a store where it+ // changes nothing.+ fn read_store(flag: u32, label: &str, name: &str, with_usage: bool) -> StoreRead {+ let wide: Vec<u16> = name.encode_utf16().chain(std::iter::once(0)).collect();+ let store = unsafe {+ CertOpenStore(+ CERT_STORE_PROV_SYSTEM_W,+ 0,+ 0,+ flag | CERT_STORE_READONLY_FLAG | CERT_STORE_OPEN_EXISTING_FLAG,+ wide.as_ptr() as *const _,+ )+ };+ if store.is_null() {+ let error = unsafe { GetLastError() };+ if error == ERROR_FILE_NOT_FOUND || error == ERROR_PATH_NOT_FOUND {+ tracing::debug!(+ store = %format!("{label}/{name}"),+ "Certificate store not provisioned"+ );+ return Err(StoreError::Absent);+ }+ tracing::warn!(+ store = %format!("{label}/{name}"),+ error,+ "Certificate store did not open"+ );+ return Err(StoreError::Open);+ }+ let mut ders = Vec::new();+ let mut ctx: *const CERT_CONTEXT = ptr::null();+ let complete;+ loop {+ ctx = unsafe { CertEnumCertificatesInStore(store, ctx) };+ if ctx.is_null() {+ // The API returns null both at the end of the store and on a+ // failure, and the documented end-of-store codes are+ // `CRYPT_E_NOT_FOUND` and, for an external store,+ // `ERROR_NO_MORE_FILES`.+ let error = unsafe { GetLastError() };+ complete = error as i32 == CRYPT_E_NOT_FOUND || error == ERROR_NO_MORE_FILES;+ if !complete {+ tracing::warn!(+ store = %format!("{label}/{name}"),+ "Certificate store enumeration failed partway"+ );+ }+ break;+ }+ let der = unsafe {+ std::slice::from_raw_parts((*ctx).pbCertEncoded, (*ctx).cbCertEncoded as usize)+ }+ .to_vec();+ let usage = if with_usage {+ store_usage(ctx)+ } else {+ StoreUsage::Unrestricted+ };+ ders.push((der, usage));+ }+ // Closed on the enumeration's only exit, so every store that opens is+ // released exactly once.+ unsafe { CertCloseStore(store, 0) };+ if complete {+ Ok(ders)+ } else {+ Err(StoreError::Incomplete(ders))+ }+ }++ let mut roots: Vec<(Vec<u8>, StoreUsage)> = Vec::new();+ let mut revoked: Vec<Vec<u8>> = Vec::new();+ let mut read = 0usize;+ // A location whose `Disallowed` store exists and cannot be read leaves the+ // revocations of that location unknown, and a root exported against an+ // unknown revocation set is one+ // Windows may have revoked, so the host roots are dropped and the+ // compiled-in set is used instead, filtered by every revocation that was read.+ let mut revocations_known = true;+ for (flag, label) in &locations {+ // The revocations of a location apply to every anchor in the blob,+ // including the compiled-in ones, so `Disallowed` is read wherever it+ // opens and whatever that location's `ROOT` store did. A policy+ // location that revokes a public CA and holds no root of its own is+ // the case that makes the two reads independent.+ let disallowed = read_store(*flag, label, "Disallowed", false);+ let root = read_store(*flag, label, "ROOT", true);++ match disallowed {+ Ok(entries) => revoked.extend(entries.into_iter().map(|(der, _)| der)),+ Err(StoreError::Incomplete(partial)) => {+ tracing::warn!(+ location = %label,+ read = partial.len(),+ "Disallowed store read failed partway, revocations for this location are unknown"+ );+ revoked.extend(partial.into_iter().map(|(der, _)| der));+ revocations_known = false;+ }+ // A location with no `Disallowed` store at all is ordinary, and a+ // policy location nobody configured reads that way, so it revokes+ // nothing and the enterprise roots every other location returned+ // stay in the blob.+ Err(StoreError::Absent) => {}+ // A policy location can distrust a public CA without adding a root+ // of its own, so a `Disallowed` store that exists and would not open+ // leaves the revocations unknown whatever that location's `ROOT`+ // store returned.+ Err(StoreError::Open) => {+ tracing::warn!(+ location = %label,+ "Disallowed store did not open, revocations for this location are unknown"+ );+ revocations_known = false;+ }+ }++ match root {+ Ok(entries) => {+ read += entries.len();+ roots.extend(entries);+ }+ Err(StoreError::Incomplete(partial)) => {+ tracing::warn!(+ location = %label,+ read = partial.len(),+ "Root store read failed partway, keeping what it returned"+ );+ read += partial.len();+ roots.extend(partial);+ }+ // Nothing opened here, so this location contributes no anchor.+ Err(StoreError::Absent) | Err(StoreError::Open) => {}+ }+ }++ // A root Windows restricts to code signing or timestamping is still a TLS+ // anchor once it is in the blob, and the restriction is recorded in the store+ // entry's enhanced key usage property as often as in the certificate, so+ // both are read.+ let permitted = |usage: &StoreUsage| match usage {+ StoreUsage::Restricted(oids) => oids+ .iter()+ .any(|oid| oid == SERVER_AUTH_OID || oid == ANY_USAGE_OID),+ StoreUsage::Unrestricted => true,+ StoreUsage::Denied => false,+ };+ // A root kept from TLS, by its store entry or by the usage inside the+ // certificate, is also in the compiled-in set often enough that the union+ // below would restore it, so what either denies is subtracted from the+ // bundle as well.+ let restricted: Vec<Vec<u8>> = roots+ .iter()+ .filter(|(der, usage)| !permitted(usage) || !valid_for_tls(der))+ .map(|(der, _)| der.clone())+ .collect();+ roots.retain(|(_, usage)| permitted(usage));+ let mut roots: Vec<Vec<u8>> = roots.into_iter().map(|(der, _)| der).collect();+ roots.retain(|der| valid_for_tls(der));+ roots.retain(|der| !revoked.contains(der));+ // The host roots go where a revocation store would not read, ∵ a root+ // exported against an unknown revocation set is one Windows may have+ // revoked, and the restrictions collected above still filter the+ // compiled-in set used in their place.+ if !revocations_known {+ roots.clear();+ read = 0;+ }++ // Windows fills `ROOT` on demand, so the store has only the roots this+ // machine has already needed, and the Automatic Root Certificates Update+ // component downloads the rest from Windows Update during verification. An+ // export cannot trigger that download, so the bundle supplies the public+ // CAs the store is missing, minus anything `Disallowed` names.+ let mut bundled = parse_lenient(curl_sys::certs::get_cert_content().as_bytes());+ bundled.retain(|der| !revoked.contains(der) && !restricted.contains(der));+ roots.extend(bundled);++ // An empty set is returned as it is, ∵ the bundled roots above are already+ // filtered by every revocation and restriction read, so nothing left means+ // the host denies every root and `load` keeps the full bundle out.+ let ders = dedup_exact(roots);+ let (pem, retained) = pem_encode(&ders);+ Some(TrustBundle {+ // The host roots were dropped where a revocation store would not read,+ // so the blob is the compiled-in set filtered by what was read, and the+ // log says so rather than naming a store it no longer represents.+ source: if revocations_known {+ TrustSource::WindowsStores+ } else {+ TrustSource::Bundled+ },+ pem,+ read,+ retained,+ })+}++#[cfg(not(any(target_os = "macos", target_os = "windows")))]+fn read_platform() -> Option<TrustBundle> {+ let probe = openssl_probe::probe();+ let mut ders = Vec::new();++ if let Some(path) = probe.cert_file.as_ref() {+ ders.extend(parse_lenient(&std::fs::read(path).unwrap_or_default()));+ }+ // `probe` reports a file and a directory independently, and a host that+ // keeps its anchors as one file per CA answers with the directory alone,+ // where the enterprise CA an administrator dropped in is the reason to+ // read it.+ if let Some(dir) = probe.cert_dir.as_ref() {+ if let Ok(entries) = std::fs::read_dir(dir) {+ for entry in entries.flatten() {+ ders.extend(parse_lenient(&std::fs::read(entry.path()).unwrap_or_default()));+ }+ }+ }++ let read = ders.len();+ let ders = dedup_exact(ders);+ if ders.is_empty() {+ return None;+ }++ let (pem, retained) = pem_encode(&ders);+ Some(TrustBundle {+ source: TrustSource::OpensslProbe,+ pem,+ read,+ retained,+ })+}++#[cfg(test)]+mod tests {+ use super::*;++ use openssl::asn1::Asn1Time;+ use openssl::hash::MessageDigest;+ use openssl::pkey::{PKey, Private};+ use openssl::rsa::Rsa;+ use openssl::x509::extension::{BasicConstraints, ExtendedKeyUsage};+ use openssl::x509::X509Name;++ fn key() -> PKey<Private> {+ PKey::from_rsa(Rsa::generate(2048).expect("rsa")).expect("pkey")+ }++ fn root(cn: &str, key: &PKey<Private>, eku: Option<ExtendedKeyUsage>) -> Vec<u8> {+ let mut name = X509Name::builder().expect("name builder");+ name.append_entry_by_text("CN", cn).expect("cn");+ let name = name.build();++ let mut builder = X509::builder().expect("cert builder");+ builder.set_version(2).expect("version");+ builder.set_subject_name(&name).expect("subject");+ builder.set_issuer_name(&name).expect("issuer");+ builder.set_pubkey(key).expect("pubkey");+ builder+ .set_not_before(&Asn1Time::days_from_now(0).expect("now"))+ .expect("not before");+ builder+ .set_not_after(&Asn1Time::days_from_now(365).expect("year"))+ .expect("not after");+ builder+ .append_extension(+ BasicConstraints::new()+ .critical()+ .ca()+ .build()+ .expect("basic constraints"),+ )+ .expect("append basic constraints");+ if let Some(eku) = eku {+ builder+ .append_extension(eku.build().expect("eku"))+ .expect("append eku");+ }+ builder.sign(key, MessageDigest::sha256()).expect("sign");+ builder.build().to_der().expect("der")+ }++ #[cfg(target_os = "macos")]+ mod macos_policy {+ use super::*;+ use security_framework::trust_settings::TrustSettingsForCertificate;++ fn code_signing(cn: &str) -> Vec<u8> {+ let mut eku = ExtendedKeyUsage::new();+ eku.code_signing();+ root(cn, &key(), Some(eku))+ }++ // Apple ships explicit settings beside roots issued for code signing,+ // so the System domain answers to the usage check as it does for an+ // entry with no settings at all.+ #[test]+ fn a_system_entry_restricted_to_code_signing_is_denied_despite_its_setting() {+ let der = code_signing("system-signing");+ assert_eq!(+ decide(true, Ok(Some(TrustSettingsForCertificate::TrustRoot)), &der),+ Decision::Deny+ );+ assert_eq!(decide(true, Ok(None), &der), Decision::Deny);+ }++ // `security-framework` never answers `Unspecified`, it continues its+ // scan and answers `None`, so the System rule is asserted through the+ // value the keychain path actually produces.+ #[test]+ fn an_unspecified_system_entry_arrives_as_none_and_takes_the_usage_check() {+ assert_eq!(+ decide(true, Ok(Some(TrustSettingsForCertificate::Unspecified)), &root("unspecified", &key(), None)),+ Decision::Defer+ );+ assert_eq!(decide(true, Ok(None), &root("plain-system", &key(), None)), Decision::Trust);+ }++ // An administrator naming the policy has decided the question, and the+ // certificate's own usage does not overrule it.+ #[test]+ fn an_admin_entry_restricted_to_code_signing_is_trusted_on_its_setting() {+ let der = code_signing("admin-signing");+ assert_eq!(+ decide(false, Ok(Some(TrustSettingsForCertificate::TrustRoot)), &der),+ Decision::Trust+ );+ assert_eq!(+ decide(false, Ok(Some(TrustSettingsForCertificate::TrustAsRoot)), &der),+ Decision::Trust+ );+ }++ #[test]+ fn a_server_auth_system_entry_is_trusted() {+ let mut eku = ExtendedKeyUsage::new();+ eku.server_auth();+ let der = root("system-tls", &key(), Some(eku));+ assert_eq!(decide(true, Ok(None), &der), Decision::Trust);+ assert_eq!(+ decide(true, Ok(Some(TrustSettingsForCertificate::TrustRoot)), &der),+ Decision::Trust+ );+ }++ // A User anchor beside a System domain whose entries were all denied+ // used to read as a full trust store, so the compiled-in roots stayed+ // out and every public endpoint failed.+ #[test]+ fn a_user_anchor_alone_leaves_the_system_count_at_zero() {+ let user = root("user-trusted", &key(), None);+ let system = root("system-denied", &key(), None);+ let entries = vec![+ (user.clone(), user, Decision::Trust),+ (system.clone(), system, Decision::Deny),+ ];+ assert_eq!(system_anchor_count(&entries, 1), 0);+ }++ #[test]+ fn a_retained_system_anchor_is_counted() {+ let der = root("system-kept", &key(), None);+ let entries = vec![(der.clone(), der, Decision::Trust)];+ assert_eq!(system_anchor_count(&entries, 0), 1);+ }++ // A User trust on a root System also lists used to count as System's+ // contribution, so where every System settings read failed the+ // compiled-in roots stayed out and the blob held that root alone.+ #[test]+ fn a_user_override_of_a_system_root_is_not_counted_as_system() {+ let der = root("overridden", &key(), None);+ let other = root("system-unread", &key(), None);+ let entries = vec![+ (der.clone(), der.clone(), Decision::Trust),+ (der.clone(), der, Decision::Deny),+ (other.clone(), other, Decision::Defer),+ ];+ assert_eq!(system_anchor_count(&entries, 1), 0);+ }++ #[test]+ fn a_denial_and_an_unreadable_setting_grant_nothing() {+ let der = root("plain", &key(), None);+ assert_eq!(+ decide(false, Ok(Some(TrustSettingsForCertificate::Deny)), &der),+ Decision::Deny+ );+ assert_eq!(decide(false, Err(()), &der), Decision::Deny);+ assert_eq!(decide(true, Err(()), &der), Decision::Defer);+ assert_eq!(decide(false, Ok(None), &der), Decision::Defer);+ }++ #[test]+ fn an_unreadable_user_setting_keeps_a_system_root_out() {+ let der = root("system-trusted", &key(), None);+ let user = decide(false, Err(()), &der);+ let system = decide(true, Ok(None), &der);+ let anchors = resolve_by_precedence(vec![+ (der.clone(), der.clone(), user),+ (der.clone(), der, system),+ ]);+ assert!(anchors.is_empty());+ }+ }++ #[test]+ fn an_anchor_with_no_extended_key_usage_is_retained() {+ assert!(valid_for_tls(&root("no-eku", &key(), None)));+ }++ #[test]+ fn a_server_auth_anchor_is_retained() {+ let mut eku = ExtendedKeyUsage::new();+ eku.server_auth();+ assert!(valid_for_tls(&root("server", &key(), Some(eku))));+ }++ #[test]+ fn an_any_extended_key_usage_anchor_is_retained() {+ let mut eku = ExtendedKeyUsage::new();+ eku.other("2.5.29.37.0");+ assert!(valid_for_tls(&root("any", &key(), Some(eku))));+ }++ // Apple Platform Code Signing, Sectigo Public Time Stamping and the+ // S/MIME-only roots are in the System domain without being TLS anchors, so+ // an unfiltered export would let curl trust roots that macOS refuses for+ // TLS.+ #[test]+ fn code_signing_timestamping_and_email_anchors_are_excluded() {+ let signing = {+ let mut eku = ExtendedKeyUsage::new();+ eku.code_signing();+ eku+ };+ let stamping = {+ let mut eku = ExtendedKeyUsage::new();+ eku.time_stamping();+ eku+ };+ let email = {+ let mut eku = ExtendedKeyUsage::new();+ eku.email_protection();+ eku+ };+ for eku in [signing, stamping, email] {+ assert!(!valid_for_tls(&root("constrained", &key(), Some(eku))));+ }+ }++ #[test]+ fn a_certificate_that_does_not_parse_is_not_an_anchor() {+ assert!(!valid_for_tls(b"not a certificate"));+ }++ // `CN=Apple Root CA` and the expired `CN=Apple Root Certificate Authority`+ // share a public key in the macOS System domain, so keying identity on the+ // key would let enumeration order decide which one anchors a chain.+ #[test]+ fn two_roots_sharing_a_public_key_are_both_kept() {+ let shared = key();+ let first = root("first", &shared, None);+ let reissued = root("second", &shared, None);+ assert_ne!(first, reissued);+ assert_eq!(+ dedup_exact(vec![first.clone(), reissued.clone()]),+ vec![first, reissued]+ );+ }++ #[test]+ fn the_same_certificate_from_two_stores_appears_once() {+ let der = root("shared", &key(), None);+ assert_eq!(dedup_exact(vec![der.clone(), der.clone()]), vec![der]);+ }++ #[test]+ fn a_der_anchor_round_trips_through_pem() {+ let der = root("round", &key(), None);+ let (pem, encoded) = pem_encode(&[der.clone()]);+ assert!(pem.starts_with(PEM_HEADER));+ assert!(pem.ends_with(b"\n"));+ assert_eq!(encoded, 1);+ assert_eq!(parse_lenient(&pem), vec![der]);+ }++ #[test]+ fn an_anchor_that_does_not_encode_is_absent_from_the_count() {+ let der = root("encodes", &key(), None);+ let (pem, encoded) = pem_encode(&[der.clone(), b"not a certificate".to_vec()]);+ assert_eq!(encoded, 1);+ assert_eq!(parse_lenient(&pem), vec![der]);+ }++ // A user entry is checked with the same lenient parser the host store is+ // read with, so a bundle whose last block is corrupt keeps the CAs before+ // it instead of being rejected whole.+ #[test]+ fn a_bundle_with_one_corrupt_block_still_parses_as_pem() {+ let (pem, _) = pem_encode(&[root("good", &key(), None)]);+ let mut mixed = pem.clone();+ mixed.extend_from_slice(b"-----BEGIN CERTIFICATE-----\ntruncated\n-----END CERTIFICATE-----\n");+ assert!(parses_as_pem(&mixed));+ assert!(!parses_as_pem(b"not a certificate"));+ }++ // A truncated block ahead of a good one used to swallow it, ∵ the footer+ // search ran past the next header and the pair was parsed as one block.+ #[test]+ fn a_truncated_block_leaves_the_certificate_after_it() {+ let (good, _) = pem_encode(&[root("after", &key(), None)]);+ let mut mixed = b"-----BEGIN CERTIFICATE-----\ntruncated\n".to_vec();+ mixed.extend_from_slice(&good);+ assert_eq!(parse_lenient(&mixed).len(), 1);++ let mut sandwiched = good.clone();+ sandwiched.extend_from_slice(b"-----BEGIN CERTIFICATE-----\ntruncated\n");+ sandwiched.extend_from_slice(&good);+ assert_eq!(parse_lenient(&sandwiched).len(), 2);+ }++ #[test]+ fn a_file_that_parses_to_no_certificate_yields_no_anchor() {+ assert!(parse_lenient(b"# comment only\n").is_empty());+ assert!(parse_lenient(b"-----BEGIN CERTIFICATE-----\ntruncated\n").is_empty());+ }++ // A `ca-certificates.crt` with one malformed entry among many good ones is+ // likelier than a file with nothing parseable in it, and `stack_from_pem`+ // discards everything it had read when it meets the bad one.+ #[test]+ fn one_malformed_block_leaves_the_rest_of_the_file() {+ let good = root("good", &key(), None);+ let other = root("other", &key(), None);+ let (first, _) = pem_encode(&[good.clone()]);+ let (second, _) = pem_encode(&[other.clone()]);+ let mut pem = first;+ pem.extend_from_slice(b"-----BEGIN CERTIFICATE-----\nnot base64\n-----END CERTIFICATE-----\n");+ pem.extend_from_slice(&second);+ assert_eq!(parse_lenient(&pem), vec![good, other]);+ assert!(X509::stack_from_pem(&pem).is_err());+ }++ #[test]+ fn a_deny_in_a_higher_domain_drops_the_system_anchor() {+ let der = root("denied", &key(), None);+ let anchors = resolve_by_precedence(vec![+ (b"k".to_vec(), der.clone(), Decision::Deny),+ (b"k".to_vec(), der, Decision::Trust),+ ]);+ assert!(anchors.is_empty());+ }++ #[test]+ fn a_defer_passes_the_question_to_the_next_domain() {+ let der = root("deferred", &key(), None);+ let anchors = resolve_by_precedence(vec![+ (b"k".to_vec(), der.clone(), Decision::Defer),+ (b"k".to_vec(), der.clone(), Decision::Trust),+ ]);+ assert_eq!(anchors, vec![der]);+ }++ #[test]+ fn the_highest_domain_that_decides_settles_the_certificate() {+ let trusted = root("user-trusted", &key(), None);+ let other = root("other", &key(), None);+ let anchors = resolve_by_precedence(vec![+ (b"k".to_vec(), trusted.clone(), Decision::Trust),+ (b"k".to_vec(), trusted.clone(), Decision::Deny),+ (b"j".to_vec(), other.clone(), Decision::Deny),+ (b"j".to_vec(), other, Decision::Trust),+ ]);+ assert_eq!(anchors, vec![trusted]);+ }++ #[test]+ fn the_bundled_fallback_includes_public_roots() {+ let bundle = bundled();+ assert_eq!(bundle.source, TrustSource::Bundled);+ assert!(bundle.retained > 100, "bundled anchors: {}", bundle.retained);+ assert!(!parse_lenient(&bundle.pem).is_empty());+ }++ #[test]+ fn an_unread_host_store_takes_the_bundled_roots() {+ let bundle = or_bundled(None);+ assert_eq!(bundle.source, TrustSource::Bundled);+ assert!(bundle.retained > 100, "bundled anchors: {}", bundle.retained);+ }++ #[test]+ fn a_host_read_that_denies_every_root_stays_empty() {+ let bundle = or_bundled(Some(TrustBundle {+ source: TrustSource::MacosKeychain,+ pem: Vec::new(),+ read: 3,+ retained: 0,+ }));+ assert_eq!(bundle.source, TrustSource::MacosKeychain);+ assert!(bundle.pem.is_empty());+ }+}diff --git a/packages/hoppscotch-desktop/plugin-workspace/relay/tests/unrelated-root.pem b/packages/hoppscotch-desktop/plugin-workspace/relay/tests/unrelated-root.pemnew file mode 100644index 000000000..b3eb271f4--- /dev/null+++ b/packages/hoppscotch-desktop/plugin-workspace/relay/tests/unrelated-root.pem@@ -0,0 +1,19 @@+-----BEGIN CERTIFICATE-----+MIIDHTCCAgWgAwIBAgIUVrtBWAUzbW/KOZxxHqKyBDud7YAwDQYJKoZIhvcNAQEL+BQAwHjEcMBoGA1UEAwwTVW5yZWxhdGVkIFRlc3QgUm9vdDAeFw0yNjA5MDkwODIx+MTRaFw0zNjA5MDYwODIxMTRaMB4xHDAaBgNVBAMME1VucmVsYXRlZCBUZXN0IFJv+b3QwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDYF+AFz/TBX5yiUWds+V/arY1YJUvJy0sSNn9c6r8ogqkuqV66xYihoNN0I/sDKHi/wV0mUMIq0ITWws6FB+Tt+0LnzLMhR1gD6WFnZ5Cnz3AgnEw2kfoy7ZtsKKS7OVE2dC15XGEbgJkM4cVRyj+IOdZeN3VuR7PBAnfK4BFcCMwdMmqJZ/USiDkBeF2YhzF2h48m6yi4GbgQXUh6HUG+2ytn2/AT4Rxk3Ti7u0X2zQgl2bdedOzlG6A/QhXf2+ps4uwxk7w10DXAJzS0zCgO+SqM9CXSZAp9NIE+CPCxF2UgYYdVBeZ2Z+E31iSo8ERMHzZ+ZRVZQovTuccwIjPZa+4atnAgMBAAGjUzBRMB0GA1UdDgQWBBT7GZ8y4vKBDtwy5s7DFrAIcZXhxTAfBgNV+HSMEGDAWgBT7GZ8y4vKBDtwy5s7DFrAIcZXhxTAPBgNVHRMBAf8EBTADAQH/MA0G+CSqGSIb3DQEBCwUAA4IBAQDNuwenNDpvC9YDNr+xNlFqN6KPn1kSerlgz4qLzkOp+ElqQnCMrXcDfbEnTu1WEhD7EoQ3Bh8/M7SdqrryEiATEkK5h2qQt9tdeI73J9911+iLIY4k2OBAc0hyw3pgEhyGoUgxaWoGR1YoXjSH8snHzZtzVYtk7254OP5bnKr5tW+V/x/+hnApQQQZlcZyEHhtW5N3JjNTOrc/z41mUY/kV10MqYLFYYN+vk5ZO1isrtn+n4pEJYJZL930PZBKTCl0vBc3vk2tQjsYtqBCWT3h+LilZnN0q5P17YD1oD53wOAF+V3Oi1aoAFomqyfUQZoFxQJiRIRovgvUEkYiwVVPYD2gK+-----END CERTIFICATE-----diff --git a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/Cargo.lock b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/Cargo.lockindex f3eac4408..e25a62f05 100644--- a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/Cargo.lock+++ b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/Cargo.lock@@ -213,6 +213,15 @@ dependencies = ["alloc-stdlib",]+[[package]]+name = "bs58"+version = "0.5.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4"+dependencies = [+ "tinyvec",+]+[[package]]name = "bumpalo"version = "3.20.2"@@ -309,9 +318,9 @@ dependencies = [[[package]]name = "cc"-version = "1.2.60"+version = "1.2.62"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "43c5703da9466b66a946814e1adf53ea2c90f10063b86290cc9eb67ce3478a20"+checksum = "a1dce859f0832a7d088c4f1119888ab94ef4b5d6795d1ce05afb7fe159d79f98"dependencies = ["find-msvc-tools","shlex",@@ -378,12 +387,6 @@ dependencies = ["memchr",]-[[package]]-name = "convert_case"-version = "0.4.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e"-[[package]]name = "cookie"version = "0.18.1"@@ -477,23 +480,6 @@ dependencies = ["typenum",]-[[package]]-name = "cssparser"-version = "0.29.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f93d03419cb5950ccfd3daf3ff1c7a36ace64609a1a8746d493df1ca0afde0fa"-dependencies = [- "cssparser-macros",- "dtoa-short",- "itoa",- "matches",- "phf 0.10.1",- "proc-macro2",- "quote",- "smallvec",- "syn 1.0.109",-]-[[package]]name = "cssparser"version = "0.36.0"@@ -503,7 +489,7 @@ dependencies = ["cssparser-macros","dtoa-short","itoa",- "phf 0.13.1",+ "phf","smallvec",]@@ -519,18 +505,24 @@ dependencies = [[[package]]name = "ctor"-version = "0.2.9"+version = "0.8.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "32a2785755761f3ddc1492979ce1e48d2c00d09311c39e4466429188f3dd6501"+checksum = "352d39c2f7bef1d6ad73db6f5160efcaed66d94ef8c6c573a8410c00bf909a98"dependencies = [- "quote",- "syn 2.0.117",+ "ctor-proc-macro",+ "dtor",]+[[package]]+name = "ctor-proc-macro"+version = "0.0.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "52560adf09603e58c9a7ee1fe1dcb95a16927b17c127f0ac02d6e768a0e25bc1"+[[package]]name = "curl"version = "0.4.47"-source = "git+https://github.com/CuriousCorrelation/curl-rust.git#1ec8079cf527b9cf47cc7a48c68b458affdae273"+source = "git+https://github.com/CuriousCorrelation/curl-rust.git?rev=025ff84f77e1fee37b4dca3cf39b724f4efcc87d#025ff84f77e1fee37b4dca3cf39b724f4efcc87d"dependencies = ["curl-sys","libc",@@ -542,7 +534,7 @@ dependencies = [[[package]]name = "curl-sys"version = "0.4.77+curl-8.10.1"-source = "git+https://github.com/CuriousCorrelation/curl-rust.git#1ec8079cf527b9cf47cc7a48c68b458affdae273"+source = "git+https://github.com/CuriousCorrelation/curl-rust.git?rev=025ff84f77e1fee37b4dca3cf39b724f4efcc87d#025ff84f77e1fee37b4dca3cf39b724f4efcc87d"dependencies = ["cc","libc",@@ -588,9 +580,9 @@ dependencies = [[[package]]name = "dashmap"-version = "6.1.0"+version = "6.2.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5041cc499144891f3790297212f32a74fb938e5136a14943f338ef9e0ae276cf"+checksum = "e6361d5c062261c78a176addb82d4c821ae42bed6089de0e12603cd25de2059c"dependencies = ["cfg-if","crossbeam-utils",@@ -601,26 +593,24 @@ dependencies = [][[package]]-name = "deranged"-version = "0.5.8"+name = "dbus"+version = "0.9.11"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c"+checksum = "b942602992bb7acfd1f51c49811c58a610ef9181b6e66f3e519d79b540a3bf73"dependencies = [- "powerfmt",- "serde_core",+ "libc",+ "libdbus-sys",+ "windows-sys 0.61.2",][[package]]-name = "derive_more"-version = "0.99.20"+name = "deranged"+version = "0.5.8"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6edb4b64a43d977b8e99788fe3a04d483834fba1215a7e02caa415b626497f7f"+checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c"dependencies = [- "convert_case",- "proc-macro2",- "quote",- "rustc_version",- "syn 2.0.117",+ "powerfmt",+ "serde_core",][[package]]@@ -728,12 +718,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "521e380c0c8afb8d9a1e83a1822ee03556fc3e3e7dbc1fd30be14e37f9cb3f89"dependencies = ["bit-set",- "cssparser 0.36.0",+ "cssparser","foldhash 0.2.0",- "html5ever 0.38.0",+ "html5ever","precomputed-hash",- "selectors 0.36.1",- "tendril 0.5.0",+ "selectors",+ "tendril",][[package]]@@ -760,6 +750,21 @@ dependencies = ["dtoa",]+[[package]]+name = "dtor"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f1057d6c64987086ff8ed0fd3fbf377a6b7d205cc7715868cd401705f715cbe4"+dependencies = [+ "dtor-proc-macro",+]++[[package]]+name = "dtor-proc-macro"+version = "0.0.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f678cf4a922c215c63e0de95eb1ff08a958a81d47e485cf9da1e27bf6305cfa5"+[[package]]name = "dunce"version = "1.0.5"@@ -774,14 +779,14 @@ checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555"[[package]]name = "embed-resource"-version = "3.0.8"+version = "3.0.9"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "63a1d0de4f2249aa0ff5884d7080814f446bb241a559af6c170a41e878ed2d45"+checksum = "c31a88c8d26de40ed18fe748c547845aa39de1db3afd958f8cb91579f3644bcb"dependencies = ["cc","memchr","rustc_version",- "toml 0.9.12+spec-1.1.0",+ "toml 1.1.2+spec-1.1.0","vswhom","winreg",]@@ -942,16 +947,6 @@ dependencies = ["percent-encoding",]-[[package]]-name = "futf"-version = "0.1.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "df420e2e84819663797d1ec6544b13c5be84629e7bb00dc960d6917db2987843"-dependencies = [- "mac",- "new_debug_unreachable",-]-[[package]]name = "futures-channel"version = "0.3.32"@@ -1023,15 +1018,6 @@ dependencies = ["slab",]-[[package]]-name = "fxhash"-version = "0.2.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c"-dependencies = [- "byteorder",-]-[[package]]name = "gdk"version = "0.18.2"@@ -1141,17 +1127,6 @@ dependencies = ["version_check",]-[[package]]-name = "getrandom"-version = "0.1.16"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce"-dependencies = [- "cfg-if",- "libc",- "wasi 0.9.0+wasi-snapshot-preview1",-]-[[package]]name = "getrandom"version = "0.2.17"@@ -1160,7 +1135,7 @@ checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"dependencies = ["cfg-if","libc",- "wasi 0.11.1+wasi-snapshot-preview1",+ "wasi",][[package]]@@ -1359,9 +1334,9 @@ dependencies = [[[package]]name = "hashbrown"-version = "0.17.0"+version = "0.17.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4f467dd6dccf739c208452f8014c75c18bb8301b050ad1cfb27153803edb0f51"+checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"[[package]]name = "heck"@@ -1381,18 +1356,6 @@ version = "0.4.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"-[[package]]-name = "html5ever"-version = "0.29.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3b7410cae13cbc75623c98ac4cbfd1f0bedddf3227afc24f370cf0f50a44a11c"-dependencies = [- "log",- "mac",- "markup5ever 0.14.1",- "match_token",-]-[[package]]name = "html5ever"version = "0.38.0"@@ -1400,7 +1363,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "1054432bae2f14e0061e33d23402fbaa67a921d319d56adc6bcf887ddad1cbc2"dependencies = ["log",- "markup5ever 0.38.0",+ "markup5ever",][[package]]@@ -1526,7 +1489,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "3e795dff5605e0f04bff85ca41b51a96b83e80b281e96231bcaaf1ac35103371"dependencies = ["byteorder",- "png",+ "png 0.17.16",][[package]]@@ -1636,9 +1599,9 @@ dependencies = [[[package]]name = "idna_adapter"-version = "1.2.1"+version = "1.2.2"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344"+checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714"dependencies = ["icu_normalizer","icu_properties",@@ -1662,7 +1625,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"dependencies = ["equivalent",- "hashbrown 0.17.0",+ "hashbrown 0.17.1","serde","serde_core",]@@ -1691,16 +1654,6 @@ version = "2.12.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2"-[[package]]-name = "iri-string"-version = "0.7.12"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "25e659a4bb38e810ebc252e53b5814ff908a8c58c2a9ce2fae1bbec24cbf4e20"-dependencies = [- "memchr",- "serde",-]-[[package]]name = "is_terminal_polyfill"version = "1.70.2"@@ -1738,9 +1691,9 @@ dependencies = [[[package]]name = "jiff"-version = "0.2.23"+version = "0.2.24"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1a3546dc96b6d42c5f24902af9e2538e82e39ad350b0c766eb3fbf2d8f3d8359"+checksum = "f00b5dbd620d61dfdcb6007c9c1f6054ebd75319f163d886a9055cec1155073d"dependencies = ["jiff-static","log",@@ -1751,9 +1704,9 @@ dependencies = [[[package]]name = "jiff-static"-version = "0.2.23"+version = "0.2.24"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2a8c8b344124222efd714b73bb41f8b5120b27a7cc1c75593a6ff768d9d05aa4"+checksum = "e000de030ff8022ea1da3f466fbb0f3a809f5e51ed31f6dd931c35181ad8e6d7"dependencies = ["proc-macro2","quote",@@ -1806,9 +1759,9 @@ dependencies = [[[package]]name = "js-sys"-version = "0.3.95"+version = "0.3.98"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2964e92d1d9dc3364cae4d718d93f227e3abb088e747d92e0395bfdedf1c12ca"+checksum = "67df7112613f8bfd9150013a0314e196f4800d3201ae742489d999db2f979f08"dependencies = ["cfg-if","futures-util",@@ -1849,18 +1802,6 @@ dependencies = ["unicode-segmentation",]-[[package]]-name = "kuchikiki"-version = "0.8.8-speedreader"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "02cb977175687f33fa4afa0c95c112b987ea1443e5a51c8f8ff27dc618270cc2"-dependencies = [- "cssparser 0.29.6",- "html5ever 0.29.1",- "indexmap 2.14.0",- "selectors 0.24.0",-]-[[package]]name = "lazy_static"version = "1.5.0"@@ -1899,9 +1840,18 @@ dependencies = [[[package]]name = "libc"-version = "0.2.185"+version = "0.2.186"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "52ff2c0fe9bc6cb6b14a0592c2ff4fa9ceb83eea9db979b0487cd054946a2b8f"+checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"++[[package]]+name = "libdbus-sys"+version = "0.2.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "328c4789d42200f1eeec05bd86c9c13c7f091d2ba9a6ea35acdf51f31bc0f043"+dependencies = [+ "pkg-config",+][[package]]name = "libloading"@@ -1955,26 +1905,6 @@ version = "0.4.29"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"-[[package]]-name = "mac"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4"--[[package]]-name = "markup5ever"-version = "0.14.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c7a7213d12e1864c0f002f52c2923d4556935a43dec5e71355c2760e0f6e7a18"-dependencies = [- "log",- "phf 0.11.3",- "phf_codegen 0.11.3",- "string_cache 0.8.9",- "string_cache_codegen 0.5.4",- "tendril 0.4.3",-]-[[package]]name = "markup5ever"version = "0.38.0"@@ -1982,27 +1912,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "8983d30f2915feeaaab2d6babdd6bc7e9ed1a00b66b5e6d74df19aa9c0e91862"dependencies = ["log",- "tendril 0.5.0",+ "tendril","web_atoms",]-[[package]]-name = "match_token"-version = "0.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "88a9689d8d44bf9964484516275f5cd4c9b59457a6940c1d5d0ecbb94510a36b"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.117",-]--[[package]]-name = "matches"-version = "0.1.10"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5"-[[package]]name = "memchr"version = "2.8.0"@@ -2041,15 +1954,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "50b7e5b27aa02a74bac8c3f23f448f8d87ff11f92d3aac1a6ed369ee08cc56c1"dependencies = ["libc",- "wasi 0.11.1+wasi-snapshot-preview1",+ "wasi","windows-sys 0.61.2",][[package]]name = "muda"-version = "0.17.2"+version = "0.19.2"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7c9fec5a4e89860383d778d10563a605838f8f0b2f9303868937e5ff32e86177"+checksum = "47a2e3dff89cd322c66647942668faee0a2b1f88ea6cbb4d374b4a8d7e92528c"dependencies = ["crossbeam-channel","dpi",@@ -2060,10 +1973,10 @@ dependencies = ["objc2-core-foundation","objc2-foundation","once_cell",- "png",+ "png 0.18.1","serde","thiserror 2.0.18",- "windows-sys 0.60.2",+ "windows-sys 0.61.2",][[package]]@@ -2081,12 +1994,6 @@ dependencies = ["thiserror 1.0.69",]-[[package]]-name = "ndk-context"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b"-[[package]]name = "ndk-sys"version = "0.6.0+11769913"@@ -2102,17 +2009,11 @@ version = "1.0.6"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"-[[package]]-name = "nodrop"-version = "0.1.14"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb"-[[package]]name = "num-conv"-version = "0.2.1"+version = "0.2.2"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c6673768db2d862beb9b39a78fdcb1a69439615d5794a1be50caa9bc92c81967"+checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441"[[package]]name = "num-traits"@@ -2168,6 +2069,27 @@ dependencies = ["objc2-foundation",]+[[package]]+name = "objc2-cloud-kit"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c"+dependencies = [+ "bitflags 2.11.1",+ "objc2",+ "objc2-foundation",+]++[[package]]+name = "objc2-core-data"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa"+dependencies = [+ "objc2",+ "objc2-foundation",+]+[[package]]name = "objc2-core-foundation"version = "0.3.2"@@ -2192,6 +2114,38 @@ dependencies = ["objc2-io-surface",]+[[package]]+name = "objc2-core-image"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006"+dependencies = [+ "objc2",+ "objc2-foundation",+]++[[package]]+name = "objc2-core-location"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ca347214e24bc973fc025fd0d36ebb179ff30536ed1f80252706db19ee452009"+dependencies = [+ "objc2",+ "objc2-foundation",+]++[[package]]+name = "objc2-core-text"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d"+dependencies = [+ "bitflags 2.11.1",+ "objc2",+ "objc2-core-foundation",+ "objc2-core-graphics",+]+[[package]]name = "objc2-encode"version = "4.1.0"@@ -2249,8 +2203,27 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22"dependencies = ["bitflags 2.11.1",+ "block2","objc2",+ "objc2-cloud-kit",+ "objc2-core-data","objc2-core-foundation",+ "objc2-core-graphics",+ "objc2-core-image",+ "objc2-core-location",+ "objc2-core-text",+ "objc2-foundation",+ "objc2-quartz-core",+ "objc2-user-notifications",+]++[[package]]+name = "objc2-user-notifications"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9df9128cbbfef73cda168416ccf7f837b62737d748333bfe9ab71c245d76613e"+dependencies = [+ "objc2","objc2-foundation",]@@ -2282,15 +2255,14 @@ checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"[[package]]name = "openssl"-version = "0.10.78"+version = "0.10.80"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f38c4372413cdaaf3cc79dd92d29d7d9f5ab09b51b10dded508fb90bb70b9222"+checksum = "a45fa2aa886c42762255da344f0a0d313e254066c46aad76f300c3d3da62d967"dependencies = ["bitflags 2.11.1","cfg-if","foreign-types 0.3.2","libc",- "once_cell","openssl-macros","openssl-sys",]@@ -2323,9 +2295,9 @@ dependencies = [[[package]]name = "openssl-sys"-version = "0.9.114"+version = "0.9.116"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "13ce1245cd07fcc4cfdb438f7507b0c7e4f3849a69fd84d52374c66d83741bb6"+checksum = "f28a22dc7140cda5f096e5e7724a6962ca81a7f8bfd2979f9b18c11af56318c4"dependencies = ["cc","libc",@@ -2394,182 +2366,48 @@ version = "2.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"-[[package]]-name = "phf"-version = "0.8.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3dfb61232e34fcb633f43d12c58f83c1df82962dcdfa565a4e866ffc17dafe12"-dependencies = [- "phf_shared 0.8.0",-]--[[package]]-name = "phf"-version = "0.10.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fabbf1ead8a5bcbc20f5f8b939ee3f5b0f6f281b6ad3468b84656b658b455259"-dependencies = [- "phf_macros 0.10.0",- "phf_shared 0.10.0",- "proc-macro-hack",-]--[[package]]-name = "phf"-version = "0.11.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1fd6780a80ae0c52cc120a26a1a42c1ae51b247a253e4e06113d23d2c2edd078"-dependencies = [- "phf_macros 0.11.3",- "phf_shared 0.11.3",-]-[[package]]name = "phf"version = "0.13.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf"-dependencies = [- "phf_macros 0.13.1",- "phf_shared 0.13.1",- "serde",-]--[[package]]-name = "phf_codegen"-version = "0.8.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cbffee61585b0411840d3ece935cce9cb6321f01c45477d30066498cd5e1a815"-dependencies = [- "phf_generator 0.8.0",- "phf_shared 0.8.0",-]--[[package]]-name = "phf_codegen"-version = "0.11.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "aef8048c789fa5e851558d709946d6d79a8ff88c0440c587967f8e94bfb1216a"-dependencies = [- "phf_generator 0.11.3",- "phf_shared 0.11.3",-]--[[package]]-name = "phf_codegen"-version = "0.13.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1"-dependencies = [- "phf_generator 0.13.1",- "phf_shared 0.13.1",-]--[[package]]-name = "phf_generator"-version = "0.8.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "17367f0cc86f2d25802b2c26ee58a7b23faeccf78a396094c13dced0d0182526"-dependencies = [- "phf_shared 0.8.0",- "rand 0.7.3",-]--[[package]]-name = "phf_generator"-version = "0.10.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5d5285893bb5eb82e6aaf5d59ee909a06a16737a8970984dd7746ba9283498d6"-dependencies = [- "phf_shared 0.10.0",- "rand 0.8.6",-]--[[package]]-name = "phf_generator"-version = "0.11.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3c80231409c20246a13fddb31776fb942c38553c51e871f8cbd687a4cfb5843d"-dependencies = [- "phf_shared 0.11.3",- "rand 0.8.6",-]--[[package]]-name = "phf_generator"-version = "0.13.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737"-dependencies = [- "fastrand",- "phf_shared 0.13.1",-]--[[package]]-name = "phf_macros"-version = "0.10.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "58fdf3184dd560f160dd73922bea2d5cd6e8f064bf4b13110abd81b03697b4e0"-dependencies = [- "phf_generator 0.10.0",- "phf_shared 0.10.0",- "proc-macro-hack",- "proc-macro2",- "quote",- "syn 1.0.109",-]--[[package]]-name = "phf_macros"-version = "0.11.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f84ac04429c13a7ff43785d75ad27569f2951ce0ffd30a3321230db2fc727216"-dependencies = [- "phf_generator 0.11.3",- "phf_shared 0.11.3",- "proc-macro2",- "quote",- "syn 2.0.117",-]--[[package]]-name = "phf_macros"-version = "0.13.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef"-dependencies = [- "phf_generator 0.13.1",- "phf_shared 0.13.1",- "proc-macro2",- "quote",- "syn 2.0.117",+checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf"+dependencies = [+ "phf_macros",+ "phf_shared",+ "serde",][[package]]-name = "phf_shared"-version = "0.8.0"+name = "phf_codegen"+version = "0.13.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c00cf8b9eafe68dde5e9eaa2cef8ee84a9336a47d566ec55ca16589633b65af7"+checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1"dependencies = [- "siphasher 0.3.11",+ "phf_generator",+ "phf_shared",][[package]]-name = "phf_shared"-version = "0.10.0"+name = "phf_generator"+version = "0.13.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096"+checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737"dependencies = [- "siphasher 0.3.11",+ "fastrand",+ "phf_shared",][[package]]-name = "phf_shared"-version = "0.11.3"+name = "phf_macros"+version = "0.13.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5"+checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef"dependencies = [- "siphasher 1.0.2",+ "phf_generator",+ "phf_shared",+ "proc-macro2",+ "quote",+ "syn 2.0.117",][[package]]@@ -2578,7 +2416,7 @@ version = "0.13.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266"dependencies = [- "siphasher 1.0.2",+ "siphasher",][[package]]@@ -2595,9 +2433,9 @@ checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e"[[package]]name = "plist"-version = "1.8.0"+version = "1.9.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "740ebea15c5d1428f910cd1a5f52cebf8d25006245ed8ade92702f4943d91e07"+checksum = "092791278e026273c1b65bbdcfbba3a300f2994c896bd01ab01da613c29c46f1"dependencies = ["base64 0.22.1","indexmap 2.14.0",@@ -2619,6 +2457,19 @@ dependencies = ["miniz_oxide",]+[[package]]+name = "png"+version = "0.18.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61"+dependencies = [+ "bitflags 2.11.1",+ "crc32fast",+ "fdeflate",+ "flate2",+ "miniz_oxide",+]+[[package]]name = "portable-atomic"version = "1.13.1"@@ -2649,15 +2500,6 @@ version = "0.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"-[[package]]-name = "ppv-lite86"-version = "0.2.21"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"-dependencies = [- "zerocopy",-]-[[package]]name = "precomputed-hash"version = "0.1.1"@@ -2727,12 +2569,6 @@ dependencies = ["version_check",]-[[package]]-name = "proc-macro-hack"-version = "0.5.20+deprecated"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068"-[[package]]name = "proc-macro2"version = "1.0.106"@@ -2744,9 +2580,9 @@ dependencies = [[[package]]name = "quick-xml"-version = "0.38.4"+version = "0.39.4"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b66c2058c55a409d601666cffe35f04333cf1013010882cec174a7467cd4e21c"+checksum = "cdcc8dd4e2f670d309a5f0e83fe36dfdc05af317008fea29144da1a2ac858e5e"dependencies = ["memchr",]@@ -2772,87 +2608,6 @@ version = "6.0.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"-[[package]]-name = "rand"-version = "0.7.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"-dependencies = [- "getrandom 0.1.16",- "libc",- "rand_chacha 0.2.2",- "rand_core 0.5.1",- "rand_hc",- "rand_pcg",-]--[[package]]-name = "rand"-version = "0.8.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5ca0ecfa931c29007047d1bc58e623ab12e5590e8c7cc53200d5202b69266d8a"-dependencies = [- "libc",- "rand_chacha 0.3.1",- "rand_core 0.6.4",-]--[[package]]-name = "rand_chacha"-version = "0.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402"-dependencies = [- "ppv-lite86",- "rand_core 0.5.1",-]--[[package]]-name = "rand_chacha"-version = "0.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"-dependencies = [- "ppv-lite86",- "rand_core 0.6.4",-]--[[package]]-name = "rand_core"-version = "0.5.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"-dependencies = [- "getrandom 0.1.16",-]--[[package]]-name = "rand_core"-version = "0.6.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"-dependencies = [- "getrandom 0.2.17",-]--[[package]]-name = "rand_hc"-version = "0.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c"-dependencies = [- "rand_core 0.5.1",-]--[[package]]-name = "rand_pcg"-version = "0.2.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429"-dependencies = [- "rand_core 0.5.1",-]-[[package]]name = "raw-window-handle"version = "0.6.2"@@ -2931,13 +2686,15 @@ checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a"[[package]]name = "relay"version = "0.1.1"-source = "git+https://github.com/CuriousCorrelation/relay.git?rev=1c4f1e16106ed48983926ea6ddb114c1dbb2f688#1c4f1e16106ed48983926ea6ddb114c1dbb2f688"+source = "git+https://github.com/CuriousCorrelation/relay.git?rev=b99a75e30b5649954e1828ef93c982082e3243c3#b99a75e30b5649954e1828ef93c982082e3243c3"dependencies = ["bytes","cookie","curl",+ "curl-sys","dashmap","env_logger",+ "foreign-types 0.3.2","http","http-serde","infer 0.16.0",@@ -2945,7 +2702,9 @@ dependencies = ["log","mime","openssl",+ "openssl-probe","openssl-sys",+ "security-framework","serde","serde_json","strum",@@ -2956,13 +2715,14 @@ dependencies = ["url","url-escape","urlencoding",+ "windows-sys 0.59.0",][[package]]name = "reqwest"-version = "0.13.2"+version = "0.13.3"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ab3f43e3283ab1488b624b44b0e988d0acea0b3214e694730a055cb6b2efa801"+checksum = "62e0021ea2c22aed41653bc7e1419abb2c97e038ff2c33d0e1309e49a97deec0"dependencies = ["base64 0.22.1","bytes",@@ -3080,21 +2840,26 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"[[package]]-name = "selectors"-version = "0.24.0"+name = "security-framework"+version = "3.7.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0c37578180969d00692904465fb7f6b3d50b9a2b952b87c23d0e2e5cb5013416"+checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"dependencies = [- "bitflags 1.3.2",- "cssparser 0.29.6",- "derive_more 0.99.20",- "fxhash",- "log",- "phf 0.8.0",- "phf_codegen 0.8.0",- "precomputed-hash",- "servo_arc 0.2.0",- "smallvec",+ "bitflags 2.11.1",+ "core-foundation",+ "core-foundation-sys",+ "libc",+ "security-framework-sys",+]++[[package]]+name = "security-framework-sys"+version = "2.17.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3"+dependencies = [+ "core-foundation-sys",+ "libc",][[package]]@@ -3104,15 +2869,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c5d9c0c92a92d33f08817311cf3f2c29a3538a8240e94a6a3c622ce652d7e00c"dependencies = ["bitflags 2.11.1",- "cssparser 0.36.0",- "derive_more 2.1.1",+ "cssparser",+ "derive_more","log","new_debug_unreachable",- "phf 0.13.1",- "phf_codegen 0.13.1",+ "phf",+ "phf_codegen","precomputed-hash","rustc-hash",- "servo_arc 0.4.3",+ "servo_arc","smallvec",]@@ -3223,11 +2988,12 @@ dependencies = [[[package]]name = "serde_with"-version = "3.18.0"+version = "3.20.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "dd5414fad8e6907dbdd5bc441a50ae8d6e26151a03b1de04d89a5576de61d01f"+checksum = "e72c1c2cb7b223fafb600a619537a871c2818583d619401b785e7c0b746ccde2"dependencies = ["base64 0.22.1",+ "bs58","chrono","hex","indexmap 1.9.3",@@ -3242,9 +3008,9 @@ dependencies = [[[package]]name = "serde_with_macros"-version = "3.18.0"+version = "3.20.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d3db8978e608f1fe7357e211969fd9abdcae80bac1ba7a3369bb7eb6b404eb65"+checksum = "b90c488738ecb4fb0262f41f43bc40efc5868d9fb744319ddf5f5317f417bfac"dependencies = ["darling","proc-macro2",@@ -3274,16 +3040,6 @@ dependencies = ["syn 2.0.117",]-[[package]]-name = "servo_arc"-version = "0.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d52aa42f8fdf0fed91e5ce7f23d8138441002fa31dca008acf47e6fd4721f741"-dependencies = [- "nodrop",- "stable_deref_trait",-]-[[package]]name = "servo_arc"version = "0.4.3"@@ -3318,15 +3074,9 @@ checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214"[[package]]name = "siphasher"-version = "0.3.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d"--[[package]]-name = "siphasher"-version = "1.0.2"+version = "1.0.3"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b2aa850e253778c88a04c3d7323b043aeda9d3e30d5971937c1855769763678e"+checksum = "8ee5873ec9cce0195efcb7a4e9507a04cd49aec9c83d0389df45b1ef7ba2e649"[[package]]name = "slab"@@ -3414,19 +3164,6 @@ version = "1.2.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"-[[package]]-name = "string_cache"-version = "0.8.9"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bf776ba3fa74f83bf4b63c3dcbbf82173db2632ed8452cb2d891d33f459de70f"-dependencies = [- "new_debug_unreachable",- "parking_lot",- "phf_shared 0.11.3",- "precomputed-hash",- "serde",-]-[[package]]name = "string_cache"version = "0.9.0"@@ -3435,30 +3172,18 @@ checksum = "a18596f8c785a729f2819c0f6a7eae6ebeebdfffbfe4214ae6b087f690e31901"dependencies = ["new_debug_unreachable","parking_lot",- "phf_shared 0.13.1",+ "phf_shared","precomputed-hash",]-[[package]]-name = "string_cache_codegen"-version = "0.5.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c711928715f1fe0fe509c53b43e993a9a557babc2d0a3567d0a3006f1ac931a0"-dependencies = [- "phf_generator 0.11.3",- "phf_shared 0.11.3",- "proc-macro2",- "quote",-]-[[package]]name = "string_cache_codegen"version = "0.6.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "585635e46db231059f76c5849798146164652513eb9e8ab2685939dd90f29b69"dependencies = [- "phf_generator 0.13.1",- "phf_shared 0.13.1",+ "phf_generator",+ "phf_shared","proc-macro2","quote",]@@ -3509,7 +3234,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"dependencies = ["proc-macro2",- "quote","unicode-ident",]@@ -3559,15 +3283,16 @@ dependencies = [[[package]]name = "tao"-version = "0.34.8"+version = "0.35.2"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9103edf55f2da3c82aea4c7fab7c4241032bfeea0e71fa557d98e00e7ce7cc20"+checksum = "a33f7f9e486ade65fcf1e45c440f9236c904f5c1002cdc7fc6ae582777345ce4"dependencies = ["bitflags 2.11.1","block2","core-foundation","core-graphics","crossbeam-channel",+ "dbus","dispatch2","dlopen2","dpi",@@ -3578,13 +3303,14 @@ dependencies = ["libc","log","ndk",- "ndk-context","ndk-sys","objc2","objc2-app-kit","objc2-foundation",+ "objc2-ui-kit","once_cell","parking_lot",+ "percent-encoding","raw-window-handle","tao-macros","unicode-segmentation",@@ -3614,9 +3340,9 @@ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"[[package]]name = "tauri"-version = "2.10.3"+version = "2.11.3"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "da77cc00fb9028caf5b5d4650f75e31f1ef3693459dfca7f7e506d1ecef0ba2d"+checksum = "c2616f96cb644bf2c5c456d9de4d5d5100e592d7424c74d8b55c5cb96e359e93"dependencies = ["anyhow","bytes",@@ -3665,9 +3391,9 @@ dependencies = [[[package]]name = "tauri-build"-version = "2.5.6"+version = "2.6.3"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4bbc990d1dbf57a8e1c7fa2327f2a614d8b757805603c1b9ba5c81bade09fd4d"+checksum = "bc9ce40b16101cb6ea63d3e221567affd1c3a9205f95d7bc574941a10636b632"dependencies = ["anyhow","cargo_toml",@@ -3681,22 +3407,21 @@ dependencies = ["serde_json","tauri-utils","tauri-winres",- "toml 0.9.12+spec-1.1.0","walkdir",][[package]]name = "tauri-codegen"-version = "2.5.5"+version = "2.6.3"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d4a24476afd977c5d5d169f72425868613d82747916dd29e0a357c84c4bd6d29"+checksum = "08279169ff42f8fc45a1dbc9dcae888893ba95288142e5880c59b93a26d2cfc5"dependencies = ["base64 0.22.1","brotli","ico","json-patch","plist",- "png",+ "png 0.17.16","proc-macro2","quote","semver",@@ -3714,9 +3439,9 @@ dependencies = [[[package]]name = "tauri-macros"-version = "2.5.5"+version = "2.6.3"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d39b349a98dadaffebb73f0a40dcd1f23c999211e5a2e744403db384d0c33de7"+checksum = "e8b394794f399a421811d06966343e7933fcae92d59f5180b9388d1174497a45"dependencies = ["heck 0.5.0","proc-macro2",@@ -3728,9 +3453,9 @@ dependencies = [[[package]]name = "tauri-plugin"-version = "2.5.4"+version = "2.6.3"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ddde7d51c907b940fb573006cdda9a642d6a7c8153657e88f8a5c3c9290cd4aa"+checksum = "74be5dd4bed9afbd145e5716b5fa2ec28cbc29c34ffa61c258c9273d896c8020"dependencies = ["anyhow","glob",@@ -3739,7 +3464,6 @@ dependencies = ["serde","serde_json","tauri-utils",- "toml 0.9.12+spec-1.1.0","walkdir",]@@ -3757,9 +3481,9 @@ dependencies = [[[package]]name = "tauri-runtime"-version = "2.10.1"+version = "2.11.3"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2826d79a3297ed08cd6ea7f412644ef58e32969504bc4fbd8d7dbeabc4445ea2"+checksum = "b0b4bc95aed361b0019067d189a1174a603d460d0f6c72606512d59fc9c12ec8"dependencies = ["cookie","dpi",@@ -3782,9 +3506,9 @@ dependencies = [[[package]]name = "tauri-runtime-wry"-version = "2.10.1"+version = "2.11.3"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e11ea2e6f801d275fdd890d6c9603736012742a1c33b96d0db788c9cdebf7f9e"+checksum = "fe41e015bf8fc4d6477ff4926a0ef769dc64ff34c7b0038b6f7cacae892acb5c"dependencies = ["gtk","http",@@ -3808,24 +3532,24 @@ dependencies = [[[package]]name = "tauri-utils"-version = "2.8.3"+version = "2.9.3"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "219a1f983a2af3653f75b5747f76733b0da7ff03069c7a41901a5eb3ace4557d"+checksum = "3e176a18e67764923c4f1ce66f25ae4abe5f688384d5eb1a0fa6c77f3d90f887"dependencies = ["anyhow","brotli","cargo_metadata","ctor",+ "dom_query","dunce","glob",- "html5ever 0.29.1","http","infer 0.19.0","json-patch",- "kuchikiki","log","memchr",- "phf 0.11.3",+ "phf",+ "plist","proc-macro2","quote","regex",@@ -3837,7 +3561,7 @@ dependencies = ["serde_with","swift-rs","thiserror 2.0.18",- "toml 0.9.12+spec-1.1.0",+ "toml 1.1.2+spec-1.1.0","url","urlpattern","uuid",@@ -3846,24 +3570,13 @@ dependencies = [[[package]]name = "tauri-winres"-version = "0.3.5"+version = "0.3.6"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1087b111fe2b005e42dbdc1990fc18593234238d47453b0c99b7de1c9ab2c1e0"+checksum = "cc65d45c68858bfe420dd29e834b5d15dbecf8a07a8a16cf4d532c7b1f69d4b6"dependencies = ["dunce","embed-resource",- "toml 0.9.12+spec-1.1.0",-]--[[package]]-name = "tendril"-version = "0.4.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d24a120c5fc464a3458240ee02c299ebcb9d67b5249c8848b09d639dca8d7bb0"-dependencies = [- "futf",- "mac",- "utf-8",+ "toml 1.1.2+spec-1.1.0",][[package]]@@ -3957,11 +3670,26 @@ dependencies = ["zerovec",]+[[package]]+name = "tinyvec"+version = "1.11.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3e61e67053d25a4e82c844e8424039d9745781b3fc4f32b8d55ed50f5f667ef3"+dependencies = [+ "tinyvec_macros",+]++[[package]]+name = "tinyvec_macros"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"+[[package]]name = "tokio"-version = "1.52.1"+version = "1.52.3"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b67dee974fe86fd92cc45b7a95fdd2f99a36a6d7b0d431a231178d3d670bbcc6"+checksum = "8fc7f01b389ac15039e4dc9531aa973a135d7a4135281b12d7c1bc79fd57fffe"dependencies = ["bytes","libc",@@ -4011,6 +3739,21 @@ dependencies = ["winnow 0.7.15",]+[[package]]+name = "toml"+version = "1.1.2+spec-1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "81f3d15e84cbcd896376e6730314d59fb5a87f31e4b038454184435cd57defee"+dependencies = [+ "indexmap 2.14.0",+ "serde_core",+ "serde_spanned 1.1.1",+ "toml_datetime 1.1.1+spec-1.1.0",+ "toml_parser",+ "toml_writer",+ "winnow 1.0.3",+]+[[package]]name = "toml_datetime"version = "0.6.3"@@ -4071,7 +3814,7 @@ dependencies = ["indexmap 2.14.0","toml_datetime 1.1.1+spec-1.1.0","toml_parser",- "winnow 1.0.2",+ "winnow 1.0.3",][[package]]@@ -4080,7 +3823,7 @@ version = "1.1.2+spec-1.1.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "a2abe9b86193656635d2411dc43050282ca48aa31c2451210f4202550afb7526"dependencies = [- "winnow 1.0.2",+ "winnow 1.0.3",][[package]]@@ -4106,20 +3849,20 @@ dependencies = [[[package]]name = "tower-http"-version = "0.6.8"+version = "0.6.11"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d4e6559d53cc268e5031cd8429d05415bc4cb4aefc4aa5d6cc35fbf5b924a1f8"+checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840"dependencies = ["bitflags 2.11.1","bytes","futures-util","http","http-body",- "iri-string","pin-project-lite","tower","tower-layer","tower-service",+ "url",][[package]]@@ -4167,9 +3910,9 @@ dependencies = [[[package]]name = "tray-icon"-version = "0.21.3"+version = "0.24.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a5e85aa143ceb072062fc4d6356c1b520a51d636e7bc8e77ec94be3608e5e80c"+checksum = "65ba1e5f6b9ef9fd87e21b9c6f351554dbd717960089168fcfdef854686961dc"dependencies = ["crossbeam-channel","dirs",@@ -4181,10 +3924,10 @@ dependencies = ["objc2-core-graphics","objc2-foundation","once_cell",- "png",+ "png 0.18.1","serde","thiserror 2.0.18",- "windows-sys 0.60.2",+ "windows-sys 0.61.2",][[package]]@@ -4391,12 +4134,6 @@ dependencies = ["try-lock",]-[[package]]-name = "wasi"-version = "0.9.0+wasi-snapshot-preview1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"-[[package]]name = "wasi"version = "0.11.1+wasi-snapshot-preview1"@@ -4423,9 +4160,9 @@ dependencies = [[[package]]name = "wasm-bindgen"-version = "0.2.118"+version = "0.2.121"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0bf938a0bacb0469e83c1e148908bd7d5a6010354cf4fb73279b7447422e3a89"+checksum = "49ace1d07c165b0864824eee619580c4689389afa9dc9ed3a4c75040d82e6790"dependencies = ["cfg-if","once_cell",@@ -4436,9 +4173,9 @@ dependencies = [[[package]]name = "wasm-bindgen-futures"-version = "0.4.68"+version = "0.4.71"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f371d383f2fb139252e0bfac3b81b265689bf45b6874af544ffa4c975ac1ebf8"+checksum = "96492d0d3ffba25305a7dc88720d250b1401d7edca02cc3bcd50633b424673b8"dependencies = ["js-sys","wasm-bindgen",@@ -4446,9 +4183,9 @@ dependencies = [[[package]]name = "wasm-bindgen-macro"-version = "0.2.118"+version = "0.2.121"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "eeff24f84126c0ec2db7a449f0c2ec963c6a49efe0698c4242929da037ca28ed"+checksum = "8e68e6f4afd367a562002c05637acb8578ff2dea1943df76afb9e83d177c8578"dependencies = ["quote","wasm-bindgen-macro-support",@@ -4456,9 +4193,9 @@ dependencies = [[[package]]name = "wasm-bindgen-macro-support"-version = "0.2.118"+version = "0.2.121"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9d08065faf983b2b80a79fd87d8254c409281cf7de75fc4b773019824196c904"+checksum = "d95a9ec35c64b2a7cb35d3fead40c4238d0940c86d107136999567a4703259f2"dependencies = ["bumpalo","proc-macro2",@@ -4469,9 +4206,9 @@ dependencies = [[[package]]name = "wasm-bindgen-shared"-version = "0.2.118"+version = "0.2.121"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5fd04d9e306f1907bd13c6361b5c6bfc7b3b3c095ed3f8a9246390f8dbdee129"+checksum = "c4e0100b01e9f0d03189a92b96772a1fb998639d981193d7dbab487302513441"dependencies = ["unicode-ident",]@@ -4525,9 +4262,9 @@ dependencies = [[[package]]name = "web-sys"-version = "0.3.95"+version = "0.3.98"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4f2dfbb17949fa2088e5d39408c48368947b86f7834484e87b73de55bc14d97d"+checksum = "4b572dff8bcf38bad0fa19729c89bb5748b2b9b1d8be70cf90df697e3a8f32aa"dependencies = ["js-sys","wasm-bindgen",@@ -4539,10 +4276,10 @@ version = "0.2.4"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d7cff6eef815df1834fd250e3a2ff436044d82a9f1bc1980ca1dbdf07effc538"dependencies = [- "phf 0.13.1",- "phf_codegen 0.13.1",- "string_cache 0.9.0",- "string_cache_codegen 0.6.1",+ "phf",+ "phf_codegen",+ "string_cache",+ "string_cache_codegen",][[package]]@@ -4837,15 +4574,6 @@ dependencies = ["windows-targets 0.52.6",]-[[package]]-name = "windows-sys"-version = "0.60.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"-dependencies = [- "windows-targets 0.53.5",-]-[[package]]name = "windows-sys"version = "0.61.2"@@ -4879,30 +4607,13 @@ dependencies = ["windows_aarch64_gnullvm 0.52.6","windows_aarch64_msvc 0.52.6","windows_i686_gnu 0.52.6",- "windows_i686_gnullvm 0.52.6",+ "windows_i686_gnullvm","windows_i686_msvc 0.52.6","windows_x86_64_gnu 0.52.6","windows_x86_64_gnullvm 0.52.6","windows_x86_64_msvc 0.52.6",]-[[package]]-name = "windows-targets"-version = "0.53.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3"-dependencies = [- "windows-link 0.2.1",- "windows_aarch64_gnullvm 0.53.1",- "windows_aarch64_msvc 0.53.1",- "windows_i686_gnu 0.53.1",- "windows_i686_gnullvm 0.53.1",- "windows_i686_msvc 0.53.1",- "windows_x86_64_gnu 0.53.1",- "windows_x86_64_gnullvm 0.53.1",- "windows_x86_64_msvc 0.53.1",-]-[[package]]name = "windows-threading"version = "0.1.0"@@ -4933,12 +4644,6 @@ version = "0.52.6"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"-[[package]]-name = "windows_aarch64_gnullvm"-version = "0.53.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53"-[[package]]name = "windows_aarch64_msvc"version = "0.42.2"@@ -4951,12 +4656,6 @@ version = "0.52.6"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"-[[package]]-name = "windows_aarch64_msvc"-version = "0.53.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006"-[[package]]name = "windows_i686_gnu"version = "0.42.2"@@ -4969,24 +4668,12 @@ version = "0.52.6"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"-[[package]]-name = "windows_i686_gnu"-version = "0.53.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3"-[[package]]name = "windows_i686_gnullvm"version = "0.52.6"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"-[[package]]-name = "windows_i686_gnullvm"-version = "0.53.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c"-[[package]]name = "windows_i686_msvc"version = "0.42.2"@@ -4999,12 +4686,6 @@ version = "0.52.6"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"-[[package]]-name = "windows_i686_msvc"-version = "0.53.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2"-[[package]]name = "windows_x86_64_gnu"version = "0.42.2"@@ -5017,12 +4698,6 @@ version = "0.52.6"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"-[[package]]-name = "windows_x86_64_gnu"-version = "0.53.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499"-[[package]]name = "windows_x86_64_gnullvm"version = "0.42.2"@@ -5035,12 +4710,6 @@ version = "0.52.6"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"-[[package]]-name = "windows_x86_64_gnullvm"-version = "0.53.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1"-[[package]]name = "windows_x86_64_msvc"version = "0.42.2"@@ -5053,12 +4722,6 @@ version = "0.52.6"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"-[[package]]-name = "windows_x86_64_msvc"-version = "0.53.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650"-[[package]]name = "winnow"version = "0.5.40"@@ -5076,9 +4739,9 @@ checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945"[[package]]name = "winnow"-version = "1.0.2"+version = "1.0.3"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2ee1708bef14716a11bae175f579062d4554d95be2c6829f518df847b7b3fdd0"+checksum = "0592e1c9d151f854e6fd382574c3a0855250e1d9b2f99d9281c6e6391af352f1"dependencies = ["memchr",]@@ -5195,9 +4858,9 @@ checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4"[[package]]name = "wry"-version = "0.54.4"+version = "0.55.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e5a8135d8676225e5744de000d4dff5a082501bf7db6a1c1495034f8c314edbc"+checksum = "186f9871daa55fd9c016578b810d149de58367113db7fb72b462d2323ce19514"dependencies = ["base64 0.22.1","block2",@@ -5281,31 +4944,11 @@ dependencies = ["synstructure",]-[[package]]-name = "zerocopy"-version = "0.8.48"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "eed437bf9d6692032087e337407a86f04cd8d6a16a37199ed57949d415bd68e9"-dependencies = [- "zerocopy-derive",-]--[[package]]-name = "zerocopy-derive"-version = "0.8.48"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "70e3cd084b1788766f53af483dd21f93881ff30d7320490ec3ef7526d203bad4"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.117",-]-[[package]]name = "zerofrom"-version = "0.1.7"+version = "0.1.8"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "69faa1f2a1ea75661980b013019ed6687ed0e83d069bc1114e2cc74c6c04c4df"+checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272"dependencies = ["zerofrom-derive",]diff --git a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/Cargo.toml b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/Cargo.tomlindex e18696969..f31dfaf51 100644--- a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/Cargo.toml+++ b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/Cargo.toml@@ -4,16 +4,16 @@ version = "0.1.0"authors = [ "CuriousCorrelation" ]description = ""edition = "2021"-rust-version = "1.77.2"+rust-version = "1.85"exclude = ["/examples", "/webview-dist", "/webview-src", "/node_modules"]links = "tauri-plugin-relay"[dependencies]-tauri = { version = "2.1.0" }+tauri = { version = "2.11.3" }serde = "1.0"thiserror = "2"tracing = "0.1.41"-relay = { git = "https://github.com/CuriousCorrelation/relay.git", rev = "1c4f1e16106ed48983926ea6ddb114c1dbb2f688" }+relay = { git = "https://github.com/CuriousCorrelation/relay.git", rev = "b99a75e30b5649954e1828ef93c982082e3243c3" }[build-dependencies]-tauri-plugin = { version = "2.5.4", features = ["build"] }+tauri-plugin = { version = "2.6.3", features = ["build"] }diff --git a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/README.md b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/README.mdindex b0fba6ac8..f555ddfee 100644--- a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/README.md+++ b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/README.md@@ -6,7 +6,7 @@-[](https://www.rust-lang.org)+[](https://www.rust-lang.org)</div>@@ -107,7 +107,7 @@ The plugin provides extensive security options:## DevelopmentRequirements:-- Rust 1.77.2 or later+- Rust 1.85 or later- Node.js 18 or later- pnpm- libcurl with SSL supportdiff --git a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/package.json b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/package.jsonindex 51432f266..b7134c986 100644--- a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/package.json+++ b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/package.json@@ -22,7 +22,7 @@"pretest": "pnpm build"},"dependencies": {- "@tauri-apps/api": "2.1.1"+ "@tauri-apps/api": "2.11.1"},"devDependencies": {"@rollup/plugin-typescript": "^11.1.6",diff --git a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/pnpm-lock.yaml b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/pnpm-lock.yamlindex fcf764080..6dfda5ee9 100644--- a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/pnpm-lock.yaml+++ b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/pnpm-lock.yaml@@ -12,15 +12,15 @@ importers:.:dependencies:'@tauri-apps/api':- specifier: 2.1.1- version: 2.1.1+ specifier: 2.11.1+ version: 2.11.1devDependencies:'@rollup/plugin-typescript':specifier: ^11.1.6rollup:specifier: ^4.59.0- version: 4.60.2+ version: 4.62.2tslib:specifier: ^2.6.2version: 2.8.1@@ -52,152 +52,152 @@ packages:rollup:optional: true- '@rollup/[email protected]':- resolution: {integrity: sha512-dnlp69efPPg6Uaw2dVqzWRfAWRnYVb1XJ8CyyhIbZeaq4CA5/mLeZ1IEt9QqQxmbdvagjLIm2ZL8BxXv5lH4Yw==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-6o7ZLZK+BeenkZCFNDXqpbjw9bD6nuWonvS/lwQJp7NoVVxm6p3qE7qQ5jGuBjiFsgvqjD8mZAU5oWxTmbOeOg==}cpu: [arm]os: [android]- '@rollup/[email protected]':- resolution: {integrity: sha512-OqZTwDRDchGRHHm/hwLOL7uVPB9aUvI0am/eQuWMNyFHf5PSEQmyEeYYheA0EPPKUO/l0uigCp+iaTjoLjVoHg==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-BaH7BllCACHoH1LguOU56UItGfUWjujlO65kS9LAodViaN4bwIKd7oeW/ZHJ/4ljr/7MIiENnNy3HJ0zXv8Zkw==}cpu: [arm64]os: [android]- '@rollup/[email protected]':- resolution: {integrity: sha512-UwRE7CGpvSVEQS8gUMBe1uADWjNnVgP3Iusyda1nSRwNDCsRjnGc7w6El6WLQsXmZTbLZx9cecegumcitNfpmA==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-v39RCCvj4He82I9sFmk+M1VZ0PLM9sfsLVikjfx2hYBNALhrrOR2D3JjQA6AhlaSOgcR+RzrKY7e1+bT6SUO/A==}cpu: [arm64]os: [darwin]- '@rollup/[email protected]':- resolution: {integrity: sha512-gjEtURKLCC5VXm1I+2i1u9OhxFsKAQJKTVB8WvDAHF+oZlq0GTVFOlTlO1q3AlCTE/DF32c16ESvfgqR7343/g==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-yl0y2vq3S3lHeuXhEdss6TWfKW8vkujImO12tn4ZkG/4oghr09LvdYm2RElVjokTQiUvDUGXLGsYeLqUMCKpGA==}cpu: [x64]os: [darwin]- '@rollup/[email protected]':- resolution: {integrity: sha512-Bcl6CYDeAgE70cqZaMojOi/eK63h5Me97ZqAQoh77VPjMysA/4ORQBRGo3rRy45x4MzVlU9uZxs8Uwy7ZaKnBw==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-tT4pvt4qXD+vEoezupCWi+a1F0vvDiksiHc+PxRlYTOH1I6/X4id9jPxTP+Fg+545euaFT1jJVs4CEdHZAU1vw==}cpu: [arm64]os: [freebsd]- '@rollup/[email protected]':- resolution: {integrity: sha512-LU+TPda3mAE2QB0/Hp5VyeKJivpC6+tlOXd1VMoXV/YFMvk/MNk5iXeBfB4MQGRWyOYVJ01625vjkr0Az98OJQ==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-6nU5F2wCW+qvCBhTn1pdIU3bzsIoF7EUwsCDRxilWGprQR6yd508YnH9+OKFCwpfS8pjZqDUmnCAr7exax0XCg==}cpu: [x64]os: [freebsd]- '@rollup/[email protected]':- resolution: {integrity: sha512-2QxQrM+KQ7DAW4o22j+XZ6RKdxjLD7BOWTP0Bv0tmjdyhXSsr2Ul1oJDQqh9Zf5qOwTuTc7Ek83mOFaKnodPjg==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-n1GJHPOvpIfhi3TmrCeh6S6URt9BFCt0KQE3qvexyGCTAKpR4Lg+eWvNZEqu7epxwus/8ElT3hacYEucm49SZg==}cpu: [arm]os: [linux]libc: [glibc]- '@rollup/[email protected]':- resolution: {integrity: sha512-TbziEu2DVsTEOPif2mKWkMeDMLoYjx95oESa9fkQQK7r/Orta0gnkcDpzwufEcAO2BLBsD7mZkXGFqEdMRRwfw==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-JqgflS8wEB+UXV/vS1RpRbifGBeN4D5lz8D8oOFbFZw4vedvdOgCFAjfBmIMdW3yL10XpQQ0Ambepw6MXrhOnA==}cpu: [arm]os: [linux]libc: [musl]- '@rollup/[email protected]':- resolution: {integrity: sha512-bO/rVDiDUuM2YfuCUwZ1t1cP+/yqjqz+Xf2VtkdppefuOFS2OSeAfgafaHNkFn0t02hEyXngZkxtGqXcXwO8Rg==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-wnFJkogWvN4jm/hQRF2UBaeUmk20j5+DmHvoyWii2b8HJDyvz1MF2OU/6ynXt2KR63rbZLWkFpoytpdc/yBuSA==}cpu: [arm64]os: [linux]libc: [glibc]- '@rollup/[email protected]':- resolution: {integrity: sha512-hr26p7e93Rl0Za+JwW7EAnwAvKkehh12BU1Llm9Ykiibg4uIr2rbpxG9WCf56GuvidlTG9KiiQT/TXT1yAWxTA==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-HVu2bp0zhvJ8xHEV9+UUs7S90VadmBSY3LcIMvozbPo4AuMGDWlz3ymHLHZPX4hR67TKTt8Qp5PJ5RBg/i+RMQ==}cpu: [arm64]os: [linux]libc: [musl]- '@rollup/[email protected]':- resolution: {integrity: sha512-pOjB/uSIyDt+ow3k/RcLvUAOGpysT2phDn7TTUB3n75SlIgZzM6NKAqlErPhoFU+npgY3/n+2HYIQVbF70P9/A==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-mQqqAV8QaoSgr9I2fKDLY2BAVvmKjWoGiu/cSYQonsLvtqwEn1E4QYfnCOcp5zoEqNhsDYin1s6jx/VJmrxlZg==}cpu: [loong64]os: [linux]libc: [glibc]- '@rollup/[email protected]':- resolution: {integrity: sha512-2/w+q8jszv9Ww1c+6uJT3OwqhdmGP2/4T17cu8WuwyUuuaCDDJ2ojdyYwZzCxx0GcsZBhzi3HmH+J5pZNXnd+Q==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-IxKLoxCQ2IWi6bT2akyDUBGsOImDKB+sPp4EsTmwFQ/fMwpCKm8uLSSgP/Kx/QYUgKis6SEZ5/Nlhup0DIA0PQ==}cpu: [loong64]os: [linux]libc: [musl]- '@rollup/[email protected]':- resolution: {integrity: sha512-11+aL5vKheYgczxtPVVRhdptAM2H7fcDR5Gw4/bTcteuZBlH4oP9f5s9zYO9aGZvoGeBpqXI/9TZZihZ609wKw==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-Mk5ha2RQSgyFfmYYLkBpPnUk8D8FriBxesO1u9O75X0mHgXL1UQcH5Itl2lurWL2tj0RxV9b9tJgipac0hRY9A==}cpu: [ppc64]os: [linux]libc: [glibc]- '@rollup/[email protected]':- resolution: {integrity: sha512-i16fokAGK46IVZuV8LIIwMdtqhin9hfYkCh8pf8iC3QU3LpwL+1FSFGej+O7l3E/AoknL6Dclh2oTdnRMpTzFQ==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-CjvEnqJL/0/TQ3TXX3OPIJ/kmBellrWd4heXUmHeJlTnmwjKpSJzoehLaL6Xk0ZnMHBu9dZuFADNOrtjF4v+2w==}cpu: [ppc64]os: [linux]libc: [musl]- '@rollup/[email protected]':- resolution: {integrity: sha512-49FkKS6RGQoriDSK/6E2GkAsAuU5kETFCh7pG4yD/ylj9rKhTmO3elsnmBvRD4PgJPds5W2PkhC82aVwmUcJ7A==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-1SiZbzwdkaDURsew/tSOrooKiYy7EQGT6m8ufavAi9NEyQb/6VuIxFXAL1fqa4iZe3g4NbNk4P7J32z2tw5Mgg==}cpu: [riscv64]os: [linux]libc: [glibc]- '@rollup/[email protected]':- resolution: {integrity: sha512-mjYNkHPfGpUR00DuM1ZZIgs64Hpf4bWcz9Z41+4Q+pgDx73UwWdAYyf6EG/lRFldmdHHzgrYyge5akFUW0D3mQ==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-nQts12zJ3NQRoE6uYljOH89v7szzLDvG2JD/vsX+vGXU8w/At1GowTZ5/7qeFQ8m7L55rpR8Okugnuo5bgjy2Q==}cpu: [riscv64]os: [linux]libc: [musl]- '@rollup/[email protected]':- resolution: {integrity: sha512-ALyvJz965BQk8E9Al/JDKKDLH2kfKFLTGMlgkAbbYtZuJt9LU8DW3ZoDMCtQpXAltZxwBHevXz5u+gf0yA0YoA==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-E9/ll019jhPIJgpzfZoIkBGhcz+kKNgVWYRY0zr9srBdPPFVpvOKW8VaJKUbeK+eZXyQF9ltME+Kk6affeaPgg==}cpu: [s390x]os: [linux]libc: [glibc]- '@rollup/[email protected]':- resolution: {integrity: sha512-UQjrkIdWrKI626Du8lCQ6MJp/6V1LAo2bOK9OTu4mSn8GGXIkPXk/Vsp4bLHCd9Z9Iz2OTEaokUE90VweJgIYQ==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-5BqxR/pshjey51iliyzTD5Xi3EN0aLmQ2lZ3lvefVV9c82BvrLo2/6OT55iifpWBufs6kdwWbuOKS841DrmK9A==}cpu: [x64]os: [linux]libc: [glibc]- '@rollup/[email protected]':- resolution: {integrity: sha512-bTsRGj6VlSdn/XD4CGyzMnzaBs9bsRxy79eTqTCBsA8TMIEky7qg48aPkvJvFe1HyzQ5oMZdg7AnVlWQSKLTnw==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-uNN83XxQrRAh/w0/pmAfibcwyb6YWt4gP+dpnQKPVJshAloQ785ii8CT8ZCIxkGg9opVsvAlGhFitSm6D1Jjpg==}cpu: [x64]os: [linux]libc: [musl]- '@rollup/[email protected]':- resolution: {integrity: sha512-6d4Z3534xitaA1FcMWP7mQPq5zGwBmGbhphh2DwaA1aNIXUu3KTOfwrWpbwI4/Gr0uANo7NTtaykFyO2hPuFLg==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-srjEIxSH3LRnJN6THczDHWQplqEMFiAJrTab0msUryh9kwNpkICf3Ea6q6MN/2cZwRFUNx5w+h6Hpi4QuHS6Zg==}cpu: [x64]os: [openbsd]- '@rollup/[email protected]':- resolution: {integrity: sha512-NetAg5iO2uN7eB8zE5qrZ3CSil+7IJt4WDFLcC75Ymywq1VZVD6qJ6EvNLjZ3rEm6gB7XW5JdT60c6MN35Z85Q==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-8hOJnxgbyObnCm5AlRA3A931xX19xq80RjVTKgJOvEKWqJruP/Uf12IbAOaDjjEXYRewwHLfmF0YRIdK3OwKWA==}cpu: [arm64]os: [openharmony]- '@rollup/[email protected]':- resolution: {integrity: sha512-NCYhOotpgWZ5kdxCZsv6Iudx0wX8980Q/oW4pNFNihpBKsDbEA1zpkfxJGC0yugsUuyDZ7gL37dbzwhR0VI7pQ==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-mmF4AY1i0hG/bLWUctUq59gtmgaSIRa3cu/A3JFRp/sCNEme2bgDEiDS22P9FbnJB8NJNF4jPJiSP5RHQpUTDg==}cpu: [arm64]os: [win32]- '@rollup/[email protected]':- resolution: {integrity: sha512-RXsaOqXxfoUBQoOgvmmijVxJnW2IGB0eoMO7F8FAjaj0UTywUO/luSqimWBJn04WNgUkeNhh7fs7pESXajWmkg==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-DZgkknc6jhHrk46V25vbAM0zZkyP0nSDkJB8/dRkLTxv470dOmWDqGoEJl/9A0dFfS7yE3REOwNDxpHwSLSt0Q==}cpu: [ia32]os: [win32]- '@rollup/[email protected]':- resolution: {integrity: sha512-qdAzEULD+/hzObedtmV6iBpdL5TIbKVztGiK7O3/KYSf+HIzU257+MX1EXJcyIiDbMAqmbwaufcYPvyRryeZtA==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-T6xr6ucWSFto+VGajA8YH26LdpHRuP4YLHEKAtCWvJDOlnmWcDZVCI2Jmjr+IFHDlt2zRaTAKE4tfjTaWLgJBg==}cpu: [x64]os: [win32]- '@rollup/[email protected]':- resolution: {integrity: sha512-Nd/SgG27WoA9e+/TdK74KnHz852TLa94ovOYySo/yMPuTmpckK/jIF2jSwS3g7ELSKXK13/cVdmg1Z/DaCWKxA==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-BfzEnDJOt9T8M989/lA37EcJgat01wLRnoi5dQf3QzOH7jzpqTAzdDbVfRljVr5r+jzKqpbHeyOfAaXxAd0PAA==}cpu: [x64]os: [win32]- '@tauri-apps/[email protected]':- resolution: {integrity: sha512-fzUfFFKo4lknXGJq8qrCidkUcKcH2UHhfaaCNt4GzgzGaW2iS26uFOg4tS3H4P8D6ZEeUxtiD5z0nwFF0UN30A==}+ '@tauri-apps/[email protected]':+ resolution: {integrity: sha512-M2FPuYND2m+wh5hfW9ZpSdxMPdEJovPBWwoHJmwUpysTYNHaOkVFN419m/K0LIgjb/7KU2vBgsUepJWugQCvAA==}'@types/[email protected]':resolution: {integrity: sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==}- '@types/[email protected]':- resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==}+ '@types/[email protected]':+ resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==}resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==}@@ -221,16 +221,16 @@ packages:resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==}- resolution: {integrity: sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==}+ resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==}engines: {node: '>=12'}resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==}hasBin: true- resolution: {integrity: sha512-J9qZyW++QK/09NyN/zeO0dG/1GdGfyp9lV8ajHnRVLfo/uFsbji5mHnDgn/qYdUHyCkM2N+8VyspgZclfAh0eQ==}+ resolution: {integrity: sha512-RFnrW4lhXA3s3eqHDZvN654g8OTjzRfqpIRJYczCGB6HzphckVAi/Qh4tbPUbRuDi7s1Llv8g/NspLkttY3gTA==}engines: {node: '>=18.0.0', npm: '>=8.0.0'}hasBin: true@@ -248,103 +248,103 @@ packages:snapshots:dependencies:- '@rollup/pluginutils': 5.1.3([email protected])+ '@rollup/pluginutils': 5.1.3([email protected])resolve: 1.22.8typescript: 5.9.2optionalDependencies:- rollup: 4.60.2+ rollup: 4.62.2tslib: 2.8.1- '@rollup/[email protected]([email protected])':+ '@rollup/[email protected]([email protected])':dependencies:'@types/estree': 1.0.6estree-walker: 2.0.2- picomatch: 4.0.4+ picomatch: 4.0.7optionalDependencies:- rollup: 4.60.2+ rollup: 4.62.2- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@tauri-apps/[email protected]': {}+ '@tauri-apps/[email protected]': {}'@types/[email protected]': {}- '@types/[email protected]': {}+ '@types/[email protected]': {}@@ -363,7 +363,7 @@ snapshots:- [email protected]: {}+ [email protected]: {}dependencies:@@ -371,35 +371,35 @@ snapshots:path-parse: 1.0.7supports-preserve-symlinks-flag: 1.0.0dependencies:- '@types/estree': 1.0.8+ '@types/estree': 1.0.9optionalDependencies:- '@rollup/rollup-android-arm-eabi': 4.60.2- '@rollup/rollup-android-arm64': 4.60.2- '@rollup/rollup-darwin-arm64': 4.60.2- '@rollup/rollup-darwin-x64': 4.60.2- '@rollup/rollup-freebsd-arm64': 4.60.2- '@rollup/rollup-freebsd-x64': 4.60.2- '@rollup/rollup-linux-arm-gnueabihf': 4.60.2- '@rollup/rollup-linux-arm-musleabihf': 4.60.2- '@rollup/rollup-linux-arm64-gnu': 4.60.2- '@rollup/rollup-linux-arm64-musl': 4.60.2- '@rollup/rollup-linux-loong64-gnu': 4.60.2- '@rollup/rollup-linux-loong64-musl': 4.60.2- '@rollup/rollup-linux-ppc64-gnu': 4.60.2- '@rollup/rollup-linux-ppc64-musl': 4.60.2- '@rollup/rollup-linux-riscv64-gnu': 4.60.2- '@rollup/rollup-linux-riscv64-musl': 4.60.2- '@rollup/rollup-linux-s390x-gnu': 4.60.2- '@rollup/rollup-linux-x64-gnu': 4.60.2- '@rollup/rollup-linux-x64-musl': 4.60.2- '@rollup/rollup-openbsd-x64': 4.60.2- '@rollup/rollup-openharmony-arm64': 4.60.2- '@rollup/rollup-win32-arm64-msvc': 4.60.2- '@rollup/rollup-win32-ia32-msvc': 4.60.2- '@rollup/rollup-win32-x64-gnu': 4.60.2- '@rollup/rollup-win32-x64-msvc': 4.60.2+ '@rollup/rollup-android-arm-eabi': 4.62.2+ '@rollup/rollup-android-arm64': 4.62.2+ '@rollup/rollup-darwin-arm64': 4.62.2+ '@rollup/rollup-darwin-x64': 4.62.2+ '@rollup/rollup-freebsd-arm64': 4.62.2+ '@rollup/rollup-freebsd-x64': 4.62.2+ '@rollup/rollup-linux-arm-gnueabihf': 4.62.2+ '@rollup/rollup-linux-arm-musleabihf': 4.62.2+ '@rollup/rollup-linux-arm64-gnu': 4.62.2+ '@rollup/rollup-linux-arm64-musl': 4.62.2+ '@rollup/rollup-linux-loong64-gnu': 4.62.2+ '@rollup/rollup-linux-loong64-musl': 4.62.2+ '@rollup/rollup-linux-ppc64-gnu': 4.62.2+ '@rollup/rollup-linux-ppc64-musl': 4.62.2+ '@rollup/rollup-linux-riscv64-gnu': 4.62.2+ '@rollup/rollup-linux-riscv64-musl': 4.62.2+ '@rollup/rollup-linux-s390x-gnu': 4.62.2+ '@rollup/rollup-linux-x64-gnu': 4.62.2+ '@rollup/rollup-linux-x64-musl': 4.62.2+ '@rollup/rollup-openbsd-x64': 4.62.2+ '@rollup/rollup-openharmony-arm64': 4.62.2+ '@rollup/rollup-win32-arm64-msvc': 4.62.2+ '@rollup/rollup-win32-ia32-msvc': 4.62.2+ '@rollup/rollup-win32-x64-gnu': 4.62.2+ '@rollup/rollup-win32-x64-msvc': 4.62.2fsevents: 2.3.3diff --git a/packages/hoppscotch-desktop/src-tauri/Cargo.lock b/packages/hoppscotch-desktop/src-tauri/Cargo.lockindex 20c5d2cbc..a7b4cb062 100644--- a/packages/hoppscotch-desktop/src-tauri/Cargo.lock+++ b/packages/hoppscotch-desktop/src-tauri/Cargo.lock@@ -455,6 +455,21 @@ version = "1.6.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b"+[[package]]+name = "bit-set"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"+dependencies = [+ "bit-vec",+]++[[package]]+name = "bit-vec"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"+[[package]]name = "bitflags"version = "1.3.2"@@ -514,7 +529,7 @@ version = "0.6.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "340d2f0bdb2a43c1d3cd40513185b2bd7def0aa1052f956455114bc98f82dcf2"dependencies = [- "objc2 0.6.2",+ "objc2 0.6.4",][[package]]@@ -1105,6 +1120,19 @@ dependencies = ["syn 1.0.109",]+[[package]]+name = "cssparser"+version = "0.36.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dae61cf9c0abb83bd659dab65b7e4e38d8236824c85f0f804f173567bda257d2"+dependencies = [+ "cssparser-macros",+ "dtoa-short",+ "itoa",+ "phf 0.13.1",+ "smallvec",+]+[[package]]name = "cssparser-macros"version = "0.6.1"@@ -1117,18 +1145,24 @@ dependencies = [[[package]]name = "ctor"-version = "0.2.9"+version = "0.8.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "32a2785755761f3ddc1492979ce1e48d2c00d09311c39e4466429188f3dd6501"+checksum = "352d39c2f7bef1d6ad73db6f5160efcaed66d94ef8c6c573a8410c00bf909a98"dependencies = [- "quote",- "syn 2.0.90",+ "ctor-proc-macro",+ "dtor",]+[[package]]+name = "ctor-proc-macro"+version = "0.0.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "52560adf09603e58c9a7ee1fe1dcb95a16927b17c127f0ac02d6e768a0e25bc1"+[[package]]name = "curl"version = "0.4.47"-source = "git+https://github.com/CuriousCorrelation/curl-rust.git#1ec8079cf527b9cf47cc7a48c68b458affdae273"+source = "git+https://github.com/CuriousCorrelation/curl-rust.git?rev=025ff84f77e1fee37b4dca3cf39b724f4efcc87d#025ff84f77e1fee37b4dca3cf39b724f4efcc87d"dependencies = ["curl-sys","libc",@@ -1140,7 +1174,7 @@ dependencies = [[[package]]name = "curl-sys"version = "0.4.77+curl-8.10.1"-source = "git+https://github.com/CuriousCorrelation/curl-rust.git#1ec8079cf527b9cf47cc7a48c68b458affdae273"+source = "git+https://github.com/CuriousCorrelation/curl-rust.git?rev=025ff84f77e1fee37b4dca3cf39b724f4efcc87d#025ff84f77e1fee37b4dca3cf39b724f4efcc87d"dependencies = ["cc","libc",@@ -1267,6 +1301,17 @@ version = "0.3.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "5c297a1c74b71ae29df00c3e22dd9534821d60eb9af5a0192823fa2acea70c2a"+[[package]]+name = "dbus"+version = "0.9.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3ab69f03cc8c4340c9c8e315114e1658e6775a9b16a04357973aa21cec22b32e"+dependencies = [+ "libc",+ "libdbus-sys",+ "windows-sys 0.61.2",+]+[[package]]name = "deflate64"version = "0.1.9"@@ -1328,6 +1373,27 @@ dependencies = ["syn 2.0.90",]+[[package]]+name = "derive_more"+version = "2.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d751e9e49156b02b44f9c1815bcb94b984cdcc4396ecc32521c739452808b134"+dependencies = [+ "derive_more-impl",+]++[[package]]+name = "derive_more-impl"+version = "2.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb"+dependencies = [+ "proc-macro2",+ "quote",+ "rustc_version",+ "syn 2.0.90",+]+[[package]]name = "digest"version = "0.10.7"@@ -1388,7 +1454,7 @@ dependencies = ["libc","option-ext","redox_users 0.5.0",- "windows-sys 0.60.2",+ "windows-sys 0.61.2",][[package]]@@ -1417,7 +1483,7 @@ dependencies = ["bitflags 2.6.0","block2 0.6.1","libc",- "objc2 0.6.2",+ "objc2 0.6.4",][[package]]@@ -1481,6 +1547,21 @@ dependencies = ["litrs",]+[[package]]+name = "dom_query"+version = "0.27.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "521e380c0c8afb8d9a1e83a1822ee03556fc3e3e7dbc1fd30be14e37f9cb3f89"+dependencies = [+ "bit-set",+ "cssparser 0.36.0",+ "foldhash 0.2.0",+ "html5ever 0.38.0",+ "precomputed-hash",+ "selectors 0.36.1",+ "tendril 0.5.1",+]+[[package]]name = "downcast-rs"version = "1.2.1"@@ -1511,6 +1592,21 @@ dependencies = ["dtoa",]+[[package]]+name = "dtor"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f1057d6c64987086ff8ed0fd3fbf377a6b7d205cc7715868cd401705f715cbe4"+dependencies = [+ "dtor-proc-macro",+]++[[package]]+name = "dtor-proc-macro"+version = "0.0.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f678cf4a922c215c63e0de95eb1ff08a958a81d47e485cf9da1e27bf6305cfa5"+[[package]]name = "dunce"version = "1.0.5"@@ -1756,6 +1852,12 @@ version = "0.1.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f81ec6369c545a7d40e4589b5597581fa1c441fe1cce96dd1de43159910a36a2"+[[package]]+name = "foldhash"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"+[[package]]name = "foreign-types"version = "0.3.2"@@ -2268,7 +2370,7 @@ checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289"dependencies = ["allocator-api2","equivalent",- "foldhash",+ "foldhash 0.1.3",][[package]]@@ -2366,10 +2468,20 @@ checksum = "3b7410cae13cbc75623c98ac4cbfd1f0bedddf3227afc24f370cf0f50a44a11c"dependencies = ["log","mac",- "markup5ever",+ "markup5ever 0.14.1","match_token",]+[[package]]+name = "html5ever"+version = "0.38.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1054432bae2f14e0061e33d23402fbaa67a921d319d56adc6bcf887ddad1cbc2"+dependencies = [+ "log",+ "markup5ever 0.38.0",+]+[[package]]name = "http"version = "1.2.0"@@ -2552,7 +2664,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "3e795dff5605e0f04bff85ca41b51a96b83e80b281e96231bcaaf1ac35103371"dependencies = ["byteorder",- "png",+ "png 0.17.15",][[package]]@@ -2911,10 +3023,10 @@ version = "0.8.8-speedreader"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "02cb977175687f33fa4afa0c95c112b987ea1443e5a51c8f8ff27dc618270cc2"dependencies = [- "cssparser",- "html5ever",+ "cssparser 0.29.6",+ "html5ever 0.29.1","indexmap 2.11.4",- "selectors",+ "selectors 0.24.0",][[package]]@@ -2953,6 +3065,15 @@ version = "0.2.172"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d750af042f7ef4f724306de029d18836c26c1765a54a6a3f094cbd23a7267ffa"+[[package]]+name = "libdbus-sys"+version = "0.2.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "328c4789d42200f1eeec05bd86c9c13c7f091d2ba9a6ea35acdf51f31bc0f043"+dependencies = [+ "pkg-config",+]+[[package]]name = "libloading"version = "0.7.4"@@ -2970,7 +3091,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34"dependencies = ["cfg-if",- "windows-targets 0.48.5",+ "windows-targets 0.52.6",][[package]]@@ -3091,9 +3212,20 @@ dependencies = ["log","phf 0.11.2","phf_codegen 0.11.3",- "string_cache",- "string_cache_codegen",- "tendril",+ "string_cache 0.8.7",+ "string_cache_codegen 0.5.2",+ "tendril 0.4.3",+]++[[package]]+name = "markup5ever"+version = "0.38.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8983d30f2915feeaaab2d6babdd6bc7e9ed1a00b66b5e6d74df19aa9c0e91862"+dependencies = [+ "log",+ "tendril 0.5.1",+ "web_atoms",][[package]]@@ -3204,23 +3336,23 @@ dependencies = [[[package]]name = "muda"-version = "0.17.1"+version = "0.19.3"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "01c1738382f66ed56b3b9c8119e794a2e23148ac8ea214eda86622d4cb9d415a"+checksum = "1dd04e60bc0b07438a6771710ee1698f98f6ebbc7f89b61264af1563b8aeb878"dependencies = ["crossbeam-channel","dpi","gtk","keyboard-types",- "objc2 0.6.2",+ "objc2 0.6.4","objc2-app-kit 0.3.1","objc2-core-foundation","objc2-foundation 0.3.1","once_cell",- "png",+ "png 0.18.1","serde","thiserror 2.0.12",- "windows-sys 0.60.2",+ "windows-sys 0.61.2",][[package]]@@ -3258,7 +3390,7 @@ dependencies = ["openssl-probe","openssl-sys","schannel",- "security-framework",+ "security-framework 2.11.1","security-framework-sys","tempfile",]@@ -3278,12 +3410,6 @@ dependencies = ["thiserror 1.0.69",]-[[package]]-name = "ndk-context"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b"-[[package]]name = "ndk-sys"version = "0.6.0+11769913"@@ -3433,9 +3559,9 @@ dependencies = [[[package]]name = "objc2"-version = "0.6.2"+version = "0.6.4"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "561f357ba7f3a2a61563a186a163d0a3a5247e1089524a3981d49adb775078bc"+checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f"dependencies = ["objc2-encode","objc2-exception-helper",@@ -3451,10 +3577,10 @@ dependencies = ["block2 0.5.1","libc","objc2 0.5.2",- "objc2-core-data",- "objc2-core-image",+ "objc2-core-data 0.2.2",+ "objc2-core-image 0.2.2","objc2-foundation 0.2.2",- "objc2-quartz-core",+ "objc2-quartz-core 0.2.2",][[package]]@@ -3465,11 +3591,22 @@ checksum = "e6f29f568bec459b0ddff777cec4fe3fd8666d82d5a40ebd0ff7e66134f89bcc"dependencies = ["bitflags 2.6.0","block2 0.6.1",- "objc2 0.6.2",+ "objc2 0.6.4","objc2-core-foundation","objc2-foundation 0.3.1",]+[[package]]+name = "objc2-cloud-kit"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "17614fdcd9b411e6ff1117dfb1d0150f908ba83a7df81b1f118005fe0a8ea15d"+dependencies = [+ "bitflags 2.6.0",+ "objc2 0.6.4",+ "objc2-foundation 0.3.1",+]+[[package]]name = "objc2-core-data"version = "0.2.2"@@ -3482,6 +3619,16 @@ dependencies = ["objc2-foundation 0.2.2",]+[[package]]+name = "objc2-core-data"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "291fbbf7d29287518e8686417cf7239c74700fd4b607623140a7d4a3c834329d"+dependencies = [+ "objc2 0.6.4",+ "objc2-foundation 0.3.1",+]+[[package]]name = "objc2-core-foundation"version = "0.3.1"@@ -3490,7 +3637,7 @@ checksum = "1c10c2894a6fed806ade6027bcd50662746363a9589d3ec9d9bef30a4e4bc166"dependencies = ["bitflags 2.6.0","dispatch2",- "objc2 0.6.2",+ "objc2 0.6.4",][[package]]@@ -3500,7 +3647,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "989c6c68c13021b5c2d6b71456ebb0f9dc78d752e86a98da7c716f4f9470f5a4"dependencies = ["bitflags 2.6.0",+ "dispatch2",+ "objc2 0.6.4","objc2-core-foundation",+ "objc2-io-surface",][[package]]@@ -3515,6 +3665,26 @@ dependencies = ["objc2-metal",]+[[package]]+name = "objc2-core-image"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "79b3dc0cc4386b6ccf21c157591b34a7f44c8e75b064f85502901ab2188c007e"+dependencies = [+ "objc2 0.6.4",+ "objc2-foundation 0.3.1",+]++[[package]]+name = "objc2-core-location"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ac0f75792558aa9d618443bbb5db7426a7a0b6fddf96903f86ef9ad02e135740"+dependencies = [+ "objc2 0.6.4",+ "objc2-foundation 0.3.1",+]+[[package]]name = "objc2-encode"version = "4.1.0"@@ -3551,7 +3721,18 @@ checksum = "900831247d2fe1a09a683278e5384cfb8c80c79fe6b166f9d14bfdde0ea1b03c"dependencies = ["bitflags 2.6.0","block2 0.6.1",- "objc2 0.6.2",+ "objc2 0.6.4",+ "objc2-core-foundation",+]++[[package]]+name = "objc2-io-surface"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7282e9ac92529fa3457ce90ebb15f4ecbc383e8338060960760fa2cf75420c3c"+dependencies = [+ "bitflags 2.6.0",+ "objc2 0.6.4","objc2-core-foundation",]@@ -3580,6 +3761,18 @@ dependencies = ["objc2-metal",]+[[package]]+name = "objc2-quartz-core"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "90ffb6a0cd5f182dc964334388560b12a57f7b74b3e2dec5e2722aa2dfb2ccd5"+dependencies = [+ "bitflags 2.6.0",+ "objc2 0.6.4",+ "objc2-core-foundation",+ "objc2-foundation 0.3.1",+]+[[package]]name = "objc2-ui-kit"version = "0.3.1"@@ -3587,8 +3780,26 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "25b1312ad7bc8a0e92adae17aa10f90aae1fb618832f9b993b022b591027daed"dependencies = ["bitflags 2.6.0",- "objc2 0.6.2",+ "block2 0.6.1",+ "objc2 0.6.4",+ "objc2-cloud-kit",+ "objc2-core-data 0.3.1","objc2-core-foundation",+ "objc2-core-graphics",+ "objc2-core-image 0.3.1",+ "objc2-core-location",+ "objc2-foundation 0.3.1",+ "objc2-quartz-core 0.3.1",+ "objc2-user-notifications",+]++[[package]]+name = "objc2-user-notifications"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2a3f5ec77a81d9e0c5a0b32159b0cb143d7086165e79708351e02bf37dfc65cd"+dependencies = [+ "objc2 0.6.4","objc2-foundation 0.3.1",]@@ -3600,7 +3811,7 @@ checksum = "91672909de8b1ce1c2252e95bbee8c1649c9ad9d14b9248b3d7b4c47903c47ad"dependencies = ["bitflags 2.6.0","block2 0.6.1",- "objc2 0.6.2",+ "objc2 0.6.4","objc2-app-kit 0.3.1","objc2-core-foundation","objc2-foundation 0.3.1",@@ -3839,10 +4050,20 @@ version = "0.11.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc"dependencies = [- "phf_macros 0.11.2","phf_shared 0.11.2",]+[[package]]+name = "phf"+version = "0.13.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf"+dependencies = [+ "phf_macros 0.13.1",+ "phf_shared 0.13.1",+ "serde",+]+[[package]]name = "phf_codegen"version = "0.8.0"@@ -3863,6 +4084,16 @@ dependencies = ["phf_shared 0.11.2",]+[[package]]+name = "phf_codegen"+version = "0.13.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1"+dependencies = [+ "phf_generator 0.13.1",+ "phf_shared 0.13.1",+]+[[package]]name = "phf_generator"version = "0.8.0"@@ -3893,6 +4124,16 @@ dependencies = ["rand 0.8.5",]+[[package]]+name = "phf_generator"+version = "0.13.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737"+dependencies = [+ "fastrand",+ "phf_shared 0.13.1",+]+[[package]]name = "phf_macros"version = "0.10.0"@@ -3909,12 +4150,12 @@ dependencies = [[[package]]name = "phf_macros"-version = "0.11.2"+version = "0.13.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3444646e286606587e49f3bcf1679b8cef1dc2c5ecc29ddacaffc305180d464b"+checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef"dependencies = [- "phf_generator 0.11.2",- "phf_shared 0.11.2",+ "phf_generator 0.13.1",+ "phf_shared 0.13.1","proc-macro2","quote","syn 2.0.90",@@ -3926,7 +4167,7 @@ version = "0.8.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c00cf8b9eafe68dde5e9eaa2cef8ee84a9336a47d566ec55ca16589633b65af7"dependencies = [- "siphasher",+ "siphasher 0.3.11",][[package]]@@ -3935,7 +4176,7 @@ version = "0.10.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096"dependencies = [- "siphasher",+ "siphasher 0.3.11",][[package]]@@ -3944,7 +4185,16 @@ version = "0.11.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "90fcb95eef784c2ac79119d1dd819e162b5da872ce6f3c3abe1e8ca1c082f72b"dependencies = [- "siphasher",+ "siphasher 0.3.11",+]++[[package]]+name = "phf_shared"+version = "0.13.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266"+dependencies = [+ "siphasher 1.0.3",][[package]]@@ -4012,6 +4262,19 @@ dependencies = ["miniz_oxide",]+[[package]]+name = "png"+version = "0.18.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61"+dependencies = [+ "bitflags 2.6.0",+ "crc32fast",+ "fdeflate",+ "flate2",+ "miniz_oxide",+]+[[package]]name = "polling"version = "3.7.4"@@ -4118,9 +4381,9 @@ checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068"[[package]]name = "proc-macro2"-version = "1.0.92"+version = "1.0.107"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0"+checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"dependencies = ["unicode-ident",]@@ -4447,13 +4710,15 @@ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"[[package]]name = "relay"version = "0.1.1"-source = "git+https://github.com/CuriousCorrelation/relay.git#1c4f1e16106ed48983926ea6ddb114c1dbb2f688"+source = "git+https://github.com/CuriousCorrelation/relay.git?rev=b99a75e30b5649954e1828ef93c982082e3243c3#b99a75e30b5649954e1828ef93c982082e3243c3"dependencies = ["bytes","cookie","curl",+ "curl-sys","dashmap","env_logger",+ "foreign-types 0.3.2","http","http-serde","infer 0.16.0",@@ -4461,7 +4726,9 @@ dependencies = ["log","mime","openssl",+ "openssl-probe","openssl-sys",+ "security-framework 3.0.1","serde","serde_json","strum",@@ -4472,6 +4739,7 @@ dependencies = ["url","url-escape","urlencoding",+ "windows-sys 0.59.0",][[package]]@@ -4618,9 +4886,9 @@ checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f"[[package]]name = "rustc-hash"-version = "2.1.0"+version = "2.1.3"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c7fb8039b3032c191086b10f11f319a6e99e1e82889c5cc6046f515c9db1d497"+checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"[[package]]name = "rustc_version"@@ -4782,6 +5050,19 @@ dependencies = ["security-framework-sys",]+[[package]]+name = "security-framework"+version = "3.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e1415a607e92bec364ea2cf9264646dcce0f91e6d65281bd6f2819cca3bf39c8"+dependencies = [+ "bitflags 2.6.0",+ "core-foundation 0.10.0",+ "core-foundation-sys",+ "libc",+ "security-framework-sys",+]+[[package]]name = "security-framework-sys"version = "2.12.1"@@ -4799,14 +5080,33 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "0c37578180969d00692904465fb7f6b3d50b9a2b952b87c23d0e2e5cb5013416"dependencies = ["bitflags 1.3.2",- "cssparser",- "derive_more",+ "cssparser 0.29.6",+ "derive_more 0.99.18","fxhash","log","phf 0.8.0","phf_codegen 0.8.0","precomputed-hash",- "servo_arc",+ "servo_arc 0.2.0",+ "smallvec",+]++[[package]]+name = "selectors"+version = "0.36.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c5d9c0c92a92d33f08817311cf3f2c29a3538a8240e94a6a3c622ce652d7e00c"+dependencies = [+ "bitflags 2.6.0",+ "cssparser 0.36.0",+ "derive_more 2.1.1",+ "log",+ "new_debug_unreachable",+ "phf 0.13.1",+ "phf_codegen 0.13.1",+ "precomputed-hash",+ "rustc-hash",+ "servo_arc 0.4.3","smallvec",]@@ -4996,6 +5296,15 @@ dependencies = ["stable_deref_trait",]+[[package]]+name = "servo_arc"+version = "0.4.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "170fb83ab34de17dc69aa7c67482b22218ddb85da56546f9bd6b929e32a05930"+dependencies = [+ "stable_deref_trait",+]+[[package]]name = "sha1"version = "0.10.6"@@ -5073,6 +5382,12 @@ version = "0.3.11"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d"+[[package]]+name = "siphasher"+version = "1.0.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8ee5873ec9cce0195efcb7a4e9507a04cd49aec9c83d0389df45b1ef7ba2e649"+[[package]]name = "slab"version = "0.4.9"@@ -5105,7 +5420,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e"dependencies = ["libc",- "windows-sys 0.60.2",+ "windows-sys 0.61.2",][[package]]@@ -5122,7 +5437,7 @@ dependencies = ["log","objc2 0.5.2","objc2-foundation 0.2.2",- "objc2-quartz-core",+ "objc2-quartz-core 0.2.2","raw-window-handle 0.6.2","redox_syscall","wasm-bindgen",@@ -5198,6 +5513,18 @@ dependencies = ["serde",]+[[package]]+name = "string_cache"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a18596f8c785a729f2819c0f6a7eae6ebeebdfffbfe4214ae6b087f690e31901"+dependencies = [+ "new_debug_unreachable",+ "parking_lot",+ "phf_shared 0.13.1",+ "precomputed-hash",+]+[[package]]name = "string_cache_codegen"version = "0.5.2"@@ -5210,6 +5537,18 @@ dependencies = ["quote",]+[[package]]+name = "string_cache_codegen"+version = "0.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "585635e46db231059f76c5849798146164652513eb9e8ab2685939dd90f29b69"+dependencies = [+ "phf_generator 0.13.1",+ "phf_shared 0.13.1",+ "proc-macro2",+ "quote",+]+[[package]]name = "strsim"version = "0.11.1"@@ -5346,15 +5685,16 @@ dependencies = [[[package]]name = "tao"-version = "0.34.8"+version = "0.35.3"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9103edf55f2da3c82aea4c7fab7c4241032bfeea0e71fa557d98e00e7ce7cc20"+checksum = "d1c93047acf68669466a34690ac58cca7010bd1b201e1ec86f1fd0a75d3dd4a9"dependencies = ["bitflags 2.6.0","block2 0.6.1","core-foundation 0.10.0","core-graphics 0.25.0","crossbeam-channel",+ "dbus","dispatch2","dlopen2","dpi",@@ -5365,13 +5705,14 @@ dependencies = ["libc","log","ndk",- "ndk-context","ndk-sys",- "objc2 0.6.2",+ "objc2 0.6.4","objc2-app-kit 0.3.1","objc2-foundation 0.3.1",+ "objc2-ui-kit","once_cell","parking_lot",+ "percent-encoding","raw-window-handle 0.6.2","tao-macros","unicode-segmentation",@@ -5412,9 +5753,9 @@ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"[[package]]name = "tauri"-version = "2.10.3"+version = "2.11.5"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "da77cc00fb9028caf5b5d4650f75e31f1ef3693459dfca7f7e506d1ecef0ba2d"+checksum = "667b20e2726d572dea2de7370da16e188eb06008faf9a92fab7cdc46791190b5"dependencies = ["anyhow","bytes",@@ -5432,7 +5773,7 @@ dependencies = ["log","mime","muda",- "objc2 0.6.2",+ "objc2 0.6.4","objc2-app-kit 0.3.1","objc2-foundation 0.3.1","objc2-ui-kit",@@ -5463,9 +5804,9 @@ dependencies = [[[package]]name = "tauri-build"-version = "2.5.6"+version = "2.6.3"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4bbc990d1dbf57a8e1c7fa2327f2a614d8b757805603c1b9ba5c81bade09fd4d"+checksum = "bc9ce40b16101cb6ea63d3e221567affd1c3a9205f95d7bc574941a10636b632"dependencies = ["anyhow","cargo_toml",@@ -5479,22 +5820,21 @@ dependencies = ["serde_json","tauri-utils","tauri-winres",- "toml 0.9.7","walkdir",][[package]]name = "tauri-codegen"-version = "2.5.5"+version = "2.6.3"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d4a24476afd977c5d5d169f72425868613d82747916dd29e0a357c84c4bd6d29"+checksum = "08279169ff42f8fc45a1dbc9dcae888893ba95288142e5880c59b93a26d2cfc5"dependencies = ["base64 0.22.1","brotli","ico","json-patch","plist",- "png",+ "png 0.17.15","proc-macro2","quote","semver",@@ -5512,9 +5852,9 @@ dependencies = [[[package]]name = "tauri-macros"-version = "2.5.5"+version = "2.6.3"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d39b349a98dadaffebb73f0a40dcd1f23c999211e5a2e744403db384d0c33de7"+checksum = "e8b394794f399a421811d06966343e7933fcae92d59f5180b9388d1174497a45"dependencies = ["heck 0.5.0","proc-macro2",@@ -5526,9 +5866,9 @@ dependencies = [[[package]]name = "tauri-plugin"-version = "2.5.4"+version = "2.6.3"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ddde7d51c907b940fb573006cdda9a642d6a7c8153657e88f8a5c3c9290cd4aa"+checksum = "74be5dd4bed9afbd145e5716b5fa2ec28cbc29c34ffa61c258c9273d896c8020"dependencies = ["anyhow","glob",@@ -5537,7 +5877,6 @@ dependencies = ["serde","serde_json","tauri-utils",- "toml 0.9.7","walkdir",]@@ -5699,7 +6038,7 @@ dependencies = [[[package]]name = "tauri-plugin-relay"version = "0.1.0"-source = "git+https://github.com/CuriousCorrelation/tauri-plugin-relay?rev=273488c8f50a22ee707af6b50ccd5570851f8bc9#273488c8f50a22ee707af6b50ccd5570851f8bc9"+source = "git+https://github.com/CuriousCorrelation/tauri-plugin-relay?rev=1461c7b87b66a19bd65805e286bbec3426b3b8ff#1461c7b87b66a19bd65805e286bbec3426b3b8ff"dependencies = ["relay","serde",@@ -5793,16 +6132,16 @@ dependencies = [[[package]]name = "tauri-runtime"-version = "2.10.1"+version = "2.11.3"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2826d79a3297ed08cd6ea7f412644ef58e32969504bc4fbd8d7dbeabc4445ea2"+checksum = "b0b4bc95aed361b0019067d189a1174a603d460d0f6c72606512d59fc9c12ec8"dependencies = ["cookie","dpi","gtk","http","jni",- "objc2 0.6.2",+ "objc2 0.6.4","objc2-ui-kit","objc2-web-kit","raw-window-handle 0.6.2",@@ -5818,15 +6157,15 @@ dependencies = [[[package]]name = "tauri-runtime-wry"-version = "2.10.1"+version = "2.11.4"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e11ea2e6f801d275fdd890d6c9603736012742a1c33b96d0db788c9cdebf7f9e"+checksum = "4e6fac707727b7a2f48e4ded90976324267371073edbb415ffb73bb0458d203f"dependencies = ["gtk","http","jni","log",- "objc2 0.6.2",+ "objc2 0.6.4","objc2-app-kit 0.3.1","once_cell","percent-encoding",@@ -5844,24 +6183,26 @@ dependencies = [[[package]]name = "tauri-utils"-version = "2.8.3"+version = "2.9.3"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "219a1f983a2af3653f75b5747f76733b0da7ff03069c7a41901a5eb3ace4557d"+checksum = "3e176a18e67764923c4f1ce66f25ae4abe5f688384d5eb1a0fa6c77f3d90f887"dependencies = ["anyhow","brotli","cargo_metadata","ctor",+ "dom_query","dunce","glob",- "html5ever",+ "html5ever 0.29.1","http","infer 0.19.0","json-patch","kuchikiki","log","memchr",- "phf 0.11.2",+ "phf 0.13.1",+ "plist","proc-macro2","quote","regex",@@ -5914,6 +6255,15 @@ dependencies = ["utf-8",]+[[package]]+name = "tendril"+version = "0.5.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5fed54709c5b3a53d09bb1c113ea4f5ceafd1e772ddcb0030a82e1d56c087b08"+dependencies = [+ "new_debug_unreachable",+]+[[package]]name = "thiserror"version = "1.0.69"@@ -6308,24 +6658,24 @@ dependencies = [[[package]]name = "tray-icon"-version = "0.21.1"+version = "0.24.2"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a0d92153331e7d02ec09137538996a7786fe679c629c279e82a6be762b7e6fe2"+checksum = "045979e3f037cd18ad1cb2a419dfda133c5c29c9f3453370079f2255d46c257e"dependencies = ["crossbeam-channel","dirs 6.0.0","libappindicator","muda",- "objc2 0.6.2",+ "objc2 0.6.4","objc2-app-kit 0.3.1","objc2-core-foundation","objc2-core-graphics","objc2-foundation 0.3.1","once_cell",- "png",+ "png 0.18.1","serde","thiserror 2.0.12",- "windows-sys 0.59.0",+ "windows-sys 0.61.2",][[package]]@@ -6756,6 +7106,18 @@ dependencies = ["wasm-bindgen",]+[[package]]+name = "web_atoms"+version = "0.2.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ba8b815c1b593dc0baf78dd0f4fc8fdb2de53198fb1163738093e9a311c33fb3"+dependencies = [+ "phf 0.13.1",+ "phf_codegen 0.13.1",+ "string_cache 0.9.0",+ "string_cache_codegen 0.6.1",+]+[[package]]name = "webkit2gtk"version = "2.0.2"@@ -6904,7 +7266,7 @@ version = "0.6.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d9bec5a31f3f9362f2258fd0e9c9dd61a9ca432e7306cc78c444258f0dce9a9c"dependencies = [- "objc2 0.6.2",+ "objc2 0.6.4","objc2-app-kit 0.3.1","objc2-core-foundation","objc2-foundation 0.3.1",@@ -6951,7 +7313,7 @@ dependencies = ["windows-collections","windows-core 0.61.2","windows-future",- "windows-link",+ "windows-link 0.1.3","windows-numerics",]@@ -7006,7 +7368,7 @@ checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3"dependencies = ["windows-implement 0.60.0","windows-interface 0.59.1",- "windows-link",+ "windows-link 0.1.3","windows-result 0.3.4","windows-strings 0.4.2",]@@ -7018,7 +7380,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e"dependencies = ["windows-core 0.61.2",- "windows-link",+ "windows-link 0.1.3","windows-threading",]@@ -7094,6 +7456,12 @@ version = "0.1.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a"+[[package]]+name = "windows-link"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"+[[package]]name = "windows-numerics"version = "0.2.0"@@ -7101,7 +7469,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1"dependencies = ["windows-core 0.61.2",- "windows-link",+ "windows-link 0.1.3",][[package]]@@ -7150,7 +7518,7 @@ version = "0.3.4"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6"dependencies = [- "windows-link",+ "windows-link 0.1.3",][[package]]@@ -7178,7 +7546,7 @@ version = "0.4.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57"dependencies = [- "windows-link",+ "windows-link 0.1.3",][[package]]@@ -7226,6 +7594,15 @@ dependencies = ["windows-targets 0.53.3",]+[[package]]+name = "windows-sys"+version = "0.61.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"+dependencies = [+ "windows-link 0.2.1",+]+[[package]]name = "windows-targets"version = "0.42.2"@@ -7278,7 +7655,7 @@ version = "0.53.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d5fe6031c4041849d7c496a8ded650796e7b6ecc19df1a431c1a363342e5dc91"dependencies = [- "windows-link",+ "windows-link 0.1.3","windows_aarch64_gnullvm 0.53.0","windows_aarch64_msvc 0.53.0","windows_i686_gnu 0.53.0",@@ -7295,7 +7672,7 @@ version = "0.1.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6"dependencies = [- "windows-link",+ "windows-link 0.1.3",][[package]]@@ -7557,27 +7934,26 @@ checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51"[[package]]name = "wry"-version = "0.54.2"+version = "0.55.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bb26159b420aa77684589a744ae9a9461a95395b848764ad12290a14d960a11a"+checksum = "186f9871daa55fd9c016578b810d149de58367113db7fb72b462d2323ce19514"dependencies = ["base64 0.22.1","block2 0.6.1","cookie","crossbeam-channel","dirs 6.0.0",+ "dom_query","dpi","dunce","gdkx11","gtk",- "html5ever","http","javascriptcore-rs","jni",- "kuchikiki","libc","ndk",- "objc2 0.6.2",+ "objc2 0.6.4","objc2-app-kit 0.3.1","objc2-core-foundation","objc2-foundation 0.3.1",diff --git a/packages/hoppscotch-desktop/src-tauri/Cargo.toml b/packages/hoppscotch-desktop/src-tauri/Cargo.tomlindex 1f2ae9a1b..49e26bfb7 100644--- a/packages/hoppscotch-desktop/src-tauri/Cargo.toml+++ b/packages/hoppscotch-desktop/src-tauri/Cargo.toml@@ -30,7 +30,7 @@ tauri-plugin-dialog = "2.2.0"tauri-plugin-fs = "2.2.0"tauri-plugin-deep-link = "2.2.0"tauri-plugin-appload = { git = "https://github.com/CuriousCorrelation/tauri-plugin-appload", rev = "7c5d9c23b73f2d22bed4c3198f36e2cfd5799a33" }-tauri-plugin-relay = { git = "https://github.com/CuriousCorrelation/tauri-plugin-relay", rev = "273488c8f50a22ee707af6b50ccd5570851f8bc9" }+tauri-plugin-relay = { git = "https://github.com/CuriousCorrelation/tauri-plugin-relay", rev = "1461c7b87b66a19bd65805e286bbec3426b3b8ff" }axum = "0.8.1"tower-http = { version = "0.6.2", features = ["cors"] }tokio = "1.43.0"diff --git a/packages/hoppscotch-desktop/src/__tests__/native-dep-pins.spec.ts b/packages/hoppscotch-desktop/src/__tests__/native-dep-pins.spec.tsnew file mode 100644index 000000000..b606c70e8--- /dev/null+++ b/packages/hoppscotch-desktop/src/__tests__/native-dep-pins.spec.ts@@ -0,0 +1,87 @@+import { describe, expect, it } from "vitest"++import desktopManifest from "../../src-tauri/Cargo.toml?raw"+import desktopLock from "../../src-tauri/Cargo.lock?raw"+import vendoredPluginManifest from "../../plugin-workspace/tauri-plugin-relay/Cargo.toml?raw"+import vendoredRelayManifest from "../../plugin-workspace/relay/Cargo.toml?raw"+import agentManifest from "../../../hoppscotch-agent/src-tauri/Cargo.toml?raw"+import agentLock from "../../../hoppscotch-agent/src-tauri/Cargo.lock?raw"+import kernelPackage from "../../../hoppscotch-kernel/package.json?raw"+import pnpmLock from "../../../../pnpm-lock.yaml?raw"++// The desktop app reads the host trust store through `relay`, which it gets+// transitively from `tauri-plugin-relay`, while the agent depends on `relay`+// directly and `plugin-workspace` vendors copies of each. Each of those+// pins a revision on its own, so a bump that misses one builds that app+// against a `relay` that never reads the keychain or the Windows stores.++const manifestRev = (manifest: string, crate: string) => {+ const match = manifest.match(+ new RegExp(`^${crate}\\s*=\\s*\\{[^}]*\\brev\\s*=\\s*"([0-9a-f]{40})"`, "m")+ )+ expect(match, `${crate} is pinned by rev`).not.toBeNull()+ return match![1]+}++const lockRevs = (lock: string, crate: string) => {+ const pattern = new RegExp(+ `name = "${crate}"\\nversion = "[^"]+"\\nsource = "git\\+[^"#]+#([0-9a-f]{40})"`,+ "g"+ )+ const revs = [...lock.matchAll(pattern)].map((m) => m[1])+ expect(revs, `${crate} resolves from git`).not.toHaveLength(0)+ return new Set(revs)+}++describe("native dependency pins", () => {+ it("resolves tauri-plugin-relay at one commit across the desktop manifest, the desktop lock and the kernel package", () => {+ const rev = manifestRev(desktopManifest, "tauri-plugin-relay")+ const kernel = JSON.parse(kernelPackage)++ expect(kernel.dependencies["@hoppscotch/plugin-relay"]).toBe(+ `github:CuriousCorrelation/tauri-plugin-relay#${rev}`+ )+ expect(lockRevs(desktopLock, "tauri-plugin-relay")).toEqual(new Set([rev]))+ })++ // A pin bumped in the kernel package without `pnpm install` leaves the lock+ // resolving the previous tarball, which the frozen install CI performs+ // refuses, and which no Cargo-side assertion can see.+ it("resolves the relay plugin in pnpm-lock at the commit the kernel package names", () => {+ const kernel = JSON.parse(kernelPackage)+ const rev = kernel.dependencies["@hoppscotch/plugin-relay"].split("#")[1]++ expect(rev, "the kernel pins the plugin by commit").toMatch(+ /^[0-9a-f]{40}$/+ )+ expect(pnpmLock).toContain(+ `specifier: github:CuriousCorrelation/tauri-plugin-relay#${rev}`+ )+ const stale = [+ ...pnpmLock.matchAll(/tauri-plugin-relay\/tar\.gz\/([0-9a-f]{40})/g),+ ]+ .map((m) => m[1])+ .filter((resolved) => resolved !== rev)+ expect(stale, "every lock entry resolves the pinned commit").toHaveLength(0)+ })++ it("resolves relay at the vendored tauri-plugin-relay pin in the desktop app and the agent", () => {+ const rev = manifestRev(vendoredPluginManifest, "relay")++ expect(manifestRev(agentManifest, "relay")).toBe(rev)+ expect(lockRevs(desktopLock, "relay")).toEqual(new Set([rev]))+ expect(lockRevs(agentLock, "relay")).toEqual(new Set([rev]))+ })++ it("resolves curl at the vendored relay pin in the desktop app and the agent", () => {+ const rev = manifestRev(vendoredRelayManifest, "curl")++ // `curl-sys` supplies the bundled roots `relay` falls back to when the+ // host trust store returns no anchors, so it has to match `curl`.+ expect(manifestRev(vendoredRelayManifest, "curl-sys")).toBe(rev)+ for (const lock of [desktopLock, agentLock]) {+ expect(lockRevs(lock, "curl")).toEqual(new Set([rev]))+ expect(lockRevs(lock, "curl-sys")).toEqual(new Set([rev]))+ }+ })+})diff --git a/packages/hoppscotch-kernel/package.json b/packages/hoppscotch-kernel/package.jsonindex 7e66e1ae1..0a04631e3 100644--- a/packages/hoppscotch-kernel/package.json+++ b/packages/hoppscotch-kernel/package.json@@ -58,7 +58,7 @@}},"dependencies": {- "@hoppscotch/plugin-relay": "github:CuriousCorrelation/tauri-plugin-relay#273488c8f50a22ee707af6b50ccd5570851f8bc9",+ "@hoppscotch/plugin-relay": "github:CuriousCorrelation/tauri-plugin-relay#1461c7b87b66a19bd65805e286bbec3426b3b8ff","@tauri-apps/plugin-dialog": "2.0.1","@tauri-apps/plugin-fs": "2.0.2","@tauri-apps/plugin-shell": "2.3.3",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 620b74c9c..b580364a8 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -1236,8 +1236,8 @@ importers:packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay:dependencies:'@tauri-apps/api':- specifier: 2.1.1- version: 2.1.1+ specifier: 2.11.1+ version: 2.11.1devDependencies:'@rollup/plugin-typescript':specifier: ^11.1.6@@ -1343,8 +1343,8 @@ importers:packages/hoppscotch-kernel:dependencies:'@hoppscotch/plugin-relay':- specifier: github:CuriousCorrelation/tauri-plugin-relay#273488c8f50a22ee707af6b50ccd5570851f8bc9- version: '@CuriousCorrelation/plugin-relay@https://codeload.github.com/CuriousCorrelation/tauri-plugin-relay/tar.gz/273488c8f50a22ee707af6b50ccd5570851f8bc9'+ specifier: github:CuriousCorrelation/tauri-plugin-relay#1461c7b87b66a19bd65805e286bbec3426b3b8ff+ version: '@CuriousCorrelation/plugin-relay@https://codeload.github.com/CuriousCorrelation/tauri-plugin-relay/tar.gz/1461c7b87b66a19bd65805e286bbec3426b3b8ff''@tauri-apps/api':specifier: 2.1.1version: 2.1.1@@ -1812,8 +1812,8 @@ packages:resolution: {gitHosted: true, tarball: https://codeload.github.com/CuriousCorrelation/tauri-plugin-appload/tar.gz/7c5d9c23b73f2d22bed4c3198f36e2cfd5799a33}version: 0.1.0- '@CuriousCorrelation/plugin-relay@https://codeload.github.com/CuriousCorrelation/tauri-plugin-relay/tar.gz/273488c8f50a22ee707af6b50ccd5570851f8bc9':- resolution: {gitHosted: true, tarball: https://codeload.github.com/CuriousCorrelation/tauri-plugin-relay/tar.gz/273488c8f50a22ee707af6b50ccd5570851f8bc9}+ '@CuriousCorrelation/plugin-relay@https://codeload.github.com/CuriousCorrelation/tauri-plugin-relay/tar.gz/1461c7b87b66a19bd65805e286bbec3426b3b8ff':+ resolution: {gitHosted: true, integrity: sha512-t5BLE4DmMqlxa3RyMKWwftRSBqYhueI+29yaYBt2CkMMHdU9I9yCiqAI6YzkCdz0U2PUdCIUakjSzuKvg0v0mA==, tarball: https://codeload.github.com/CuriousCorrelation/tauri-plugin-relay/tar.gz/1461c7b87b66a19bd65805e286bbec3426b3b8ff}version: 0.1.0'@acemir/[email protected]':@@ -5961,6 +5961,9 @@ packages:'@tauri-apps/[email protected]':resolution: {integrity: sha512-fzUfFFKo4lknXGJq8qrCidkUcKcH2UHhfaaCNt4GzgzGaW2iS26uFOg4tS3H4P8D6ZEeUxtiD5z0nwFF0UN30A==}+ '@tauri-apps/[email protected]':+ resolution: {integrity: sha512-M2FPuYND2m+wh5hfW9ZpSdxMPdEJovPBWwoHJmwUpysTYNHaOkVFN419m/K0LIgjb/7KU2vBgsUepJWugQCvAA==}+'@tauri-apps/[email protected]':resolution: {integrity: sha512-IGlhP6EivjXHepbBic618GOmiWe4URJiIeZFlB7x3czM0yDHHYviH1Xvoiv4FefdkQtn6v7TuwWCRfOGdnVUGw==}@@ -14222,9 +14225,9 @@ snapshots:dependencies:'@tauri-apps/api': 2.9.1- '@CuriousCorrelation/plugin-relay@https://codeload.github.com/CuriousCorrelation/tauri-plugin-relay/tar.gz/273488c8f50a22ee707af6b50ccd5570851f8bc9':+ '@CuriousCorrelation/plugin-relay@https://codeload.github.com/CuriousCorrelation/tauri-plugin-relay/tar.gz/1461c7b87b66a19bd65805e286bbec3426b3b8ff':dependencies:- '@tauri-apps/api': 2.1.1+ '@tauri-apps/api': 2.11.1'@acemir/[email protected]': {}@@ -19739,6 +19742,8 @@ snapshots:'@tauri-apps/[email protected]': {}+ '@tauri-apps/[email protected]': {}+'@tauri-apps/[email protected]': {}'@tauri-apps/[email protected]':@@ -19790,7 +19795,7 @@ snapshots:'@tauri-apps/[email protected]':dependencies:- '@tauri-apps/api': 2.9.1+ '@tauri-apps/api': 2.11.1'@tauri-apps/[email protected]':dependencies: