diff --git a/dictsqlite_v2/dictsqlite/Cargo.lock b/dictsqlite_v2/dictsqlite/Cargo.lock index 154fe1ab..43441e96 100644 --- a/dictsqlite_v2/dictsqlite/Cargo.lock +++ b/dictsqlite_v2/dictsqlite/Cargo.lock @@ -479,7 +479,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -577,9 +577,6 @@ name = "hashbrown" version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" -dependencies = [ - "ahash", -] [[package]] name = "hashbrown" @@ -594,11 +591,11 @@ dependencies = [ [[package]] name = "hashlink" -version = "0.9.1" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ba4ff7128dee98c7dc9794b6a411377e1404dba1c97deb8d1a55297bd25d8af" +checksum = "ea0b22561a9c04a7cb1a302c013e0259cd3b4bb619f145b32f72b8b4bcbed230" dependencies = [ - "hashbrown 0.14.5", + "hashbrown 0.16.1", ] [[package]] @@ -689,9 +686,9 @@ checksum = "6800badb6cb2082ffd7b6a67e6125bb39f18782f793520caee8cb8846be06112" [[package]] name = "libsqlite3-sys" -version = "0.28.0" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c10584274047cb335c23d3e61bcef8e323adae7c5c8c760540f73610177fc3f" +checksum = "95b4103cffefa72eb8428cb6b47d6627161e51c2739fc5e3b734584157bc642a" dependencies = [ "cc", "pkg-config", @@ -760,7 +757,7 @@ version = "0.50.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" dependencies = [ - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -1066,9 +1063,9 @@ dependencies = [ [[package]] name = "r2d2_sqlite" -version = "0.24.0" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a982edf65c129796dba72f8775b292ef482b40d035e827a9825b3bc07ccc5f2" +checksum = "a2ebd03c29250cdf191da93a35118b4567c2ef0eacab54f65e058d6f4c9965f6" dependencies = [ "r2d2", "rusqlite", @@ -1220,11 +1217,21 @@ dependencies = [ "serde", ] +[[package]] +name = "rsqlite-vfs" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8a1f2315036ef6b1fbacd1972e8ee7688030b0a2121edfc2a6550febd41574d" +dependencies = [ + "hashbrown 0.16.1", + "thiserror", +] + [[package]] name = "rusqlite" -version = "0.31.0" +version = "0.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b838eba278d213a8beaf485bd313fd580ca4505a00d5871caeb1457c55322cae" +checksum = "f1c93dd1c9683b438c392c492109cb702b8090b2bfc8fed6f6e4eb4523f17af3" dependencies = [ "bitflags", "fallible-iterator", @@ -1232,6 +1239,7 @@ dependencies = [ "hashlink", "libsqlite3-sys", "smallvec", + "sqlite-wasm-rs", ] [[package]] @@ -1244,7 +1252,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -1296,7 +1304,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b55fb86dfd3a2f5f76ea78310a88f96c4ea21a3031f8d212443d56123fd0521" dependencies = [ "libc", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -1394,6 +1402,18 @@ dependencies = [ "windows-sys 0.60.2", ] +[[package]] +name = "sqlite-wasm-rs" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f4206ed3a67690b9c29b77d728f6acc3ce78f16bf846d83c94f76400320181b" +dependencies = [ + "cc", + "js-sys", + "rsqlite-vfs", + "wasm-bindgen", +] + [[package]] name = "subtle" version = "2.6.1" @@ -1427,7 +1447,7 @@ dependencies = [ "getrandom 0.3.4", "once_cell", "rustix", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -1729,7 +1749,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] diff --git a/dictsqlite_v2/dictsqlite/Cargo.toml b/dictsqlite_v2/dictsqlite/Cargo.toml index 4e1e89df..63db3818 100644 --- a/dictsqlite_v2/dictsqlite/Cargo.toml +++ b/dictsqlite_v2/dictsqlite/Cargo.toml @@ -19,10 +19,10 @@ dashmap = "6.1" # Lock-free concurrent HashMap papaya = "0.2" # Ultra-low latency concurrent hashmap lru = "0.16.3" # LRU cache implementation (patched RUSTSEC-2026-0002) -# SQLite backend (keeping 0.31 for r2d2_sqlite compatibility) -rusqlite = { version = "0.31", features = ["bundled", "backup", "blob", "hooks"] } +# SQLite backend +rusqlite = { version = "0.38", features = ["bundled", "backup", "blob", "hooks"] } r2d2 = "0.8" # Generic connection pool -r2d2_sqlite = "0.24" # SQLite connection pool adapter +r2d2_sqlite = "0.32" # SQLite connection pool adapter # Async runtime (v5.1 update: tokio 1.42) tokio = { version = "1.42", features = ["full"] } diff --git a/dictsqlite_v2/dictsqlite/src/storage.rs b/dictsqlite_v2/dictsqlite/src/storage.rs index 66337006..43cf3350 100644 --- a/dictsqlite_v2/dictsqlite/src/storage.rs +++ b/dictsqlite_v2/dictsqlite/src/storage.rs @@ -452,7 +452,7 @@ impl StorageEngine { )?; for (key, increment) in counts { - let _ = stmt.execute(params![increment, key]); + let _ = stmt.execute(params![i64::try_from(increment).unwrap_or(i64::MAX), key]); } } diff --git a/others/beta-versions/dictsqlite_v3/Cargo.toml b/others/beta-versions/dictsqlite_v3/Cargo.toml index d26ef8e4..b1e2469e 100644 --- a/others/beta-versions/dictsqlite_v3/Cargo.toml +++ b/others/beta-versions/dictsqlite_v3/Cargo.toml @@ -19,7 +19,7 @@ dashmap = "6.0" # Lock-free concurrent HashMap papaya = "0.2" # Ultra-low latency concurrent hashmap # SQLite backend -rusqlite = { version = "0.31", features = ["bundled", "backup", "blob", "hooks"] } +rusqlite = { version = "0.38", features = ["bundled", "backup", "blob", "hooks"] } # Async runtime tokio = { version = "1.35", features = ["full"] } diff --git a/others/beta-versions/dictsqlite_v4.1/Cargo.lock b/others/beta-versions/dictsqlite_v4.1/Cargo.lock index 94eebf13..4988e0b2 100644 --- a/others/beta-versions/dictsqlite_v4.1/Cargo.lock +++ b/others/beta-versions/dictsqlite_v4.1/Cargo.lock @@ -472,7 +472,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -570,9 +570,6 @@ name = "hashbrown" version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" -dependencies = [ - "ahash", -] [[package]] name = "hashbrown" @@ -587,11 +584,11 @@ dependencies = [ [[package]] name = "hashlink" -version = "0.9.1" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ba4ff7128dee98c7dc9794b6a411377e1404dba1c97deb8d1a55297bd25d8af" +checksum = "ea0b22561a9c04a7cb1a302c013e0259cd3b4bb619f145b32f72b8b4bcbed230" dependencies = [ - "hashbrown 0.14.5", + "hashbrown 0.16.1", ] [[package]] @@ -672,9 +669,9 @@ checksum = "6800badb6cb2082ffd7b6a67e6125bb39f18782f793520caee8cb8846be06112" [[package]] name = "libsqlite3-sys" -version = "0.28.0" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c10584274047cb335c23d3e61bcef8e323adae7c5c8c760540f73610177fc3f" +checksum = "95b4103cffefa72eb8428cb6b47d6627161e51c2739fc5e3b734584157bc642a" dependencies = [ "cc", "pkg-config", @@ -743,7 +740,7 @@ version = "0.50.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" dependencies = [ - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -1173,11 +1170,21 @@ dependencies = [ "serde", ] +[[package]] +name = "rsqlite-vfs" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8a1f2315036ef6b1fbacd1972e8ee7688030b0a2121edfc2a6550febd41574d" +dependencies = [ + "hashbrown 0.16.1", + "thiserror", +] + [[package]] name = "rusqlite" -version = "0.31.0" +version = "0.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b838eba278d213a8beaf485bd313fd580ca4505a00d5871caeb1457c55322cae" +checksum = "f1c93dd1c9683b438c392c492109cb702b8090b2bfc8fed6f6e4eb4523f17af3" dependencies = [ "bitflags", "fallible-iterator", @@ -1185,6 +1192,7 @@ dependencies = [ "hashlink", "libsqlite3-sys", "smallvec", + "sqlite-wasm-rs", ] [[package]] @@ -1197,7 +1205,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -1240,7 +1248,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b55fb86dfd3a2f5f76ea78310a88f96c4ea21a3031f8d212443d56123fd0521" dependencies = [ "libc", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -1338,6 +1346,18 @@ dependencies = [ "windows-sys 0.60.2", ] +[[package]] +name = "sqlite-wasm-rs" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f4206ed3a67690b9c29b77d728f6acc3ce78f16bf846d83c94f76400320181b" +dependencies = [ + "cc", + "js-sys", + "rsqlite-vfs", + "wasm-bindgen", +] + [[package]] name = "subtle" version = "2.6.1" @@ -1371,7 +1391,7 @@ dependencies = [ "getrandom 0.3.4", "once_cell", "rustix", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -1661,7 +1681,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] diff --git a/others/beta-versions/dictsqlite_v4.1/Cargo.toml b/others/beta-versions/dictsqlite_v4.1/Cargo.toml index 4c44631a..765a3d99 100644 --- a/others/beta-versions/dictsqlite_v4.1/Cargo.toml +++ b/others/beta-versions/dictsqlite_v4.1/Cargo.toml @@ -20,7 +20,7 @@ papaya = "0.2" # Ultra-low latency concurrent hashmap lru = "0.16.3" # LRU cache implementation (patched RUSTSEC-2026-0002) # SQLite backend -rusqlite = { version = "0.31", features = ["bundled", "backup", "blob", "hooks"] } +rusqlite = { version = "0.38", features = ["bundled", "backup", "blob", "hooks"] } # Async runtime tokio = { version = "1.35", features = ["full"] } diff --git a/others/beta-versions/dictsqlite_v4.2/Cargo.toml b/others/beta-versions/dictsqlite_v4.2/Cargo.toml index eb5e729f..8625ca53 100644 --- a/others/beta-versions/dictsqlite_v4.2/Cargo.toml +++ b/others/beta-versions/dictsqlite_v4.2/Cargo.toml @@ -20,7 +20,7 @@ papaya = "0.2" # Ultra-low latency concurrent hashmap lru = "0.16.3" # LRU cache implementation (patched RUSTSEC-2026-0002) # SQLite backend -rusqlite = { version = "0.31", features = ["bundled", "backup", "blob", "hooks"] } +rusqlite = { version = "0.38", features = ["bundled", "backup", "blob", "hooks"] } # Async runtime tokio = { version = "1.35", features = ["full"] } diff --git a/others/beta-versions/dictsqlite_v4/Cargo.toml b/others/beta-versions/dictsqlite_v4/Cargo.toml index 1ee8c88e..796b34bf 100644 --- a/others/beta-versions/dictsqlite_v4/Cargo.toml +++ b/others/beta-versions/dictsqlite_v4/Cargo.toml @@ -19,7 +19,7 @@ dashmap = "6.0" # Lock-free concurrent HashMap papaya = "0.2" # Ultra-low latency concurrent hashmap # SQLite backend -rusqlite = { version = "0.31", features = ["bundled", "backup", "blob", "hooks"] } +rusqlite = { version = "0.38", features = ["bundled", "backup", "blob", "hooks"] } # Async runtime tokio = { version = "1.35", features = ["full"] }