From 6b764a1bf451583eb0591eee3d16adf8a38f02d3 Mon Sep 17 00:00:00 2001 From: sunerpy Date: Fri, 27 Nov 2026 17:46:27 +0800 Subject: [PATCH 1/3] build(deps): bump the compatible non-grammar dependencies Take the patch-level and test-only updates from #345 that touch no grammar, scanner or watcher crate, one `cargo update -p --precise ` each: - anyhow 1.0.104 -> 1.0.105 - clap 4.6.7 -> 4.6.9 with clap_derive 4.6.9 (clap_builder stays at 4.6.7). clap_derive 4.6.9 requires proc-macro2 ^1.0.107, quote ^1.0.47 and syn ^3.0.10, so proc-macro2 1.0.107, quote 1.0.47 and syn 3.0.10 move with it. - clap_complete 4.6.11 -> 4.6.12 - self_update 1.3.1 -> 1.3.3 - regex 1.13.1 -> 1.13.2 with regex-automata 0.4.19 and regex-syntax 0.8.12 - rstest 0.28 -> 0.29 (the Cargo.toml requirement and rstest_macros 0.29.0; dev-dependency only) - tokio 1.53.3 -> 1.54.1 (tokio-macros stays at 2.7.0). 1.54 treats ENOTCONN as success in UnixStream::shutdown and starts accepted sockets as readable and writable, which the daemon's sockets use. On this lockfile every precise update also re-picks windows-sys (0.61.2 -> 0.52.0 or 0.60.2) for twelve unrelated crates: anstyle-query, anstyle-wincon, cap-fs-ext, cap-primitives, errno, nu-ansi-term, quinn-udp, rustix, rustls-platform-verifier, socket2, tempfile and winapi-util. Those edges were put back by hand, so only the packages listed above move. No tree-sitter*, ignore, globset, io-extras, windows-sys or windows-targets entry changes. regex 1.13.2 fixes the match offsets of alternations whose branches start with the same repetition (#1400) and an off-by-one in the reverse-inner full-DFA search (#1406). To show that neither moves the graph, the codegraph-extract and codegraph-resolve test suites ran against a logging copy of regex, and the 1439 patterns and 327774 distinct inputs they used were replayed under 1.13.1 and 1.13.2: every is_match, find, captures, shortest_match and iterator result is the same. Four patterns get a different HIR (nextjs.rs:402 and expo_router.rs:427, name_matcher.rs:1085 and :4774). In each, the repetition that regex-syntax 0.8.11 lifted out of the alternation is followed in every branch by something it cannot match, so it has one possible length and the four match the same on every input. Verification: cargo metadata --locked and cargo tree --locked -i for every bumped crate; cargo clippy --workspace --all-targets --locked -- -D warnings; cargo test -p codegraph-rs --locked --test installer_jsonc --test completions --bin codegraph; scripts/regen-goldens.sh --check with this tree's codegraph and bench binaries: all 32 corpora identical. --- Cargo.lock | 72 +++++++++++++++++++++++++++--------------------------- Cargo.toml | 2 +- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4631dde8..be2f0008 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -99,9 +99,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.104" +version = "1.0.105" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" +checksum = "2cb931c189b85683d69a5cfad41d4d418671e1ac413dd209f3f2fc31e3cfd902" [[package]] name = "assert_cmd" @@ -419,9 +419,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.6.7" +version = "4.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946" +checksum = "844c5c0b65be192cb68d570cca1b21a6444431d24e39c084dc0336177015337c" dependencies = [ "clap_builder", "clap_derive", @@ -441,23 +441,23 @@ dependencies = [ [[package]] name = "clap_complete" -version = "4.6.11" +version = "4.6.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "037e2a1a92236d0aff7e845093f64661d6df4c02c9fcc61a60e9e1d736fa392f" +checksum = "6a35200383f20018d41c14d1ab19c1727c697f544492143f7d93aa39f0187848" dependencies = [ "clap", ] [[package]] name = "clap_derive" -version = "4.6.7" +version = "4.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9c751b79415d4e559e3d1fcf128e09e720eb673a06d26cf6f392d37d75b66e0" +checksum = "b4c174f11f949b9ca8c60580925e282b9cbd5454750e506f08648b2038080cd7" dependencies = [ "heck", "proc-macro2", "quote", - "syn 3.0.6", + "syn 3.0.10", ] [[package]] @@ -995,7 +995,7 @@ dependencies = [ "proc-macro2", "quote", "strsim", - "syn 3.0.6", + "syn 3.0.10", ] [[package]] @@ -1006,7 +1006,7 @@ checksum = "2ac7135c3ef02b2f7833bbeb1be5ba7f966dcde8a87c6b87f65a778d71a02785" dependencies = [ "darling_core", "quote", - "syn 3.0.6", + "syn 3.0.10", ] [[package]] @@ -1315,7 +1315,7 @@ checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44" dependencies = [ "proc-macro2", "quote", - "syn 3.0.6", + "syn 3.0.10", ] [[package]] @@ -2329,9 +2329,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.106" +version = "1.0.107" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" dependencies = [ "unicode-ident", ] @@ -2395,9 +2395,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.46" +version = "1.0.47" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfbc457d0c7a0759a614551b11a6409e5951f6c7537be1f1b7682b9ae9230368" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" dependencies = [ "proc-macro2", ] @@ -2497,9 +2497,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.13.1" +version = "1.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" +checksum = "9807af0e638c12e753aa1b4e601791bf2a8f71274023c8bbeec12fc149950857" dependencies = [ "aho-corasick", "memchr", @@ -2509,9 +2509,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.18" +version = "0.4.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" +checksum = "41d60ef07df457506a0a1a2073112eb4aae5733dbd2813c3da77d1b0fd441158" dependencies = [ "aho-corasick", "memchr", @@ -2520,9 +2520,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.8.11" +version = "0.8.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" +checksum = "d902046e6a28a1e4c3cab97258a0ce11e994903f01c2d97a9447a0b3df85f4f6" [[package]] name = "relative-path" @@ -2631,7 +2631,7 @@ dependencies = [ "proc-macro2", "quote", "serde_json", - "syn 3.0.6", + "syn 3.0.10", ] [[package]] @@ -2646,9 +2646,9 @@ dependencies = [ [[package]] name = "rstest" -version = "0.28.0" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b376e512f30a7686a8dbc6aeaace99b3ade1c26c1c63473473a817ade226dafc" +checksum = "1493d41b35c0ca33433425bd25fc76f9595f2d6031727bc54a86317d73974f05" dependencies = [ "futures-timer", "futures-util", @@ -2657,9 +2657,9 @@ dependencies = [ [[package]] name = "rstest_macros" -version = "0.28.0" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88512dbfb5b73a0dfa38aef7bc73b5657035fce477b923faf12d332dd83051ea" +checksum = "05c7b2f315394a42e73034681345115eaa5ee454617c3f7bf802dab2a5c02f6c" dependencies = [ "cfg-if", "glob", @@ -2669,7 +2669,7 @@ dependencies = [ "regex", "relative-path", "rustc_version", - "syn 2.0.118", + "syn 3.0.10", "unicode-ident", ] @@ -2889,9 +2889,9 @@ dependencies = [ [[package]] name = "self_update" -version = "1.3.1" +version = "1.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9253f1675d280b3e348d63a03ad6af3fa32d515b0959406758342561655c4aa0" +checksum = "db894dc81dc2d26b41c4966e3e67ab2e0c21289912edd262012a07da9e4e0201" dependencies = [ "flate2", "http", @@ -2944,7 +2944,7 @@ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" dependencies = [ "proc-macro2", "quote", - "syn 3.0.6", + "syn 3.0.10", ] [[package]] @@ -3178,9 +3178,9 @@ dependencies = [ [[package]] name = "syn" -version = "3.0.6" +version = "3.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee" +checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79" dependencies = [ "proc-macro2", "quote", @@ -3254,7 +3254,7 @@ checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524" dependencies = [ "proc-macro2", "quote", - "syn 3.0.6", + "syn 3.0.10", ] [[package]] @@ -3336,9 +3336,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.53.3" +version = "1.54.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce3335fa71841cda333a58d7615b03901380ecf09d59b3296d21f8bbac0dde4e" +checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3" dependencies = [ "bytes", "libc", diff --git a/Cargo.toml b/Cargo.toml index b68d425b..286d133b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -86,7 +86,7 @@ self_update = { version = "1.3.1", default-features = false, features = ["reqwes criterion = "0.8" # Testing (dev-dependencies; not shipped in the binary) -rstest = "0.28" +rstest = "0.29" assert_fs = "1" assert_cmd = "2" predicates = "3" From 09f1a2fc01fd4bca746faf8ef34a1f3a0b9b2a6b Mon Sep 17 00:00:00 2001 From: sunerpy Date: Fri, 27 Nov 2026 17:51:43 +0800 Subject: [PATCH 2/3] build(deps): bump rusqlite to 0.43 and libsqlite3-sys to 0.40 The workspace requirement moves from "0.41" to "0.43" (a ^0.41 requirement cannot select 0.43.0), then `cargo update -p rusqlite --precise 0.43.0` takes rusqlite 0.41.1 -> 0.43.0 and libsqlite3-sys 0.39.1 -> 0.40.0. The only other moves are rusqlite's wasm32-only dependencies: sqlite-wasm-rs 0.5.5 -> 0.6.3, rsqlite-vfs 0.1.1 -> 0.2.0, and hashbrown 0.16.1, which only rsqlite-vfs 0.1.1 used, drops out. The C side does not change. Both libsqlite3-sys versions bundle SQLite 3.54.1 with the same SQLITE_SOURCE_ID (2026-10-16 14:45:20 555e07ef...), their sqlite3/ directories and build.rs are byte-identical, and a probe built on each reports the same sqlite_version() and sqlite_source_id(). The on-disk format, FTS5 and the compile options stay as they were. The one behavior change on the Rust side is that prepare, execute and query_row now return Error::Empty for empty or comment-only SQL. execute_batch still skips empty statements, so the migrations (migrations.rs:272) are unaffected: the probe gives Ok for empty, whitespace-only, comment-only, trailing-comment and ';;' batches on both versions. The store's other SQL is built with format! or comes from constants, and none of it can be empty. Verification: cargo metadata --locked; cargo tree --locked -i rusqlite and -i libsqlite3-sys (only 0.40.0); cargo clippy --workspace --all-targets --locked -- -D warnings; cargo test -p codegraph-store --locked; cargo test -p codegraph-rs --locked --test upgrade_from_v054 --test upgrade_from_v055 --test upgrade_from_schema_9 --test batch_m_outdated_migration --test future_schema_cli. --- Cargo.lock | 32 ++++++++++---------------------- Cargo.toml | 2 +- 2 files changed, 11 insertions(+), 23 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index be2f0008..7eccd090 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1462,15 +1462,6 @@ dependencies = [ "zerocopy", ] -[[package]] -name = "hashbrown" -version = "0.16.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" -dependencies = [ - "foldhash", -] - [[package]] name = "hashbrown" version = "0.17.1" @@ -1486,7 +1477,7 @@ version = "0.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a596f1b20ed2cc5ecac41a164aaebc7258057060f06c0cf7a2ba3991ee7990fb" dependencies = [ - "hashbrown 0.17.1", + "hashbrown", ] [[package]] @@ -1765,7 +1756,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9" dependencies = [ "equivalent", - "hashbrown 0.17.1", + "hashbrown", "serde", "serde_core", ] @@ -1990,9 +1981,9 @@ dependencies = [ [[package]] name = "libsqlite3-sys" -version = "0.39.1" +version = "0.40.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14a5f01b87b92705d07b433c06f96cbc764637d81a0bffb5734ce17cf0f9a2b3" +checksum = "b06e69070b7e12262b0cd90832f0a7396f142a2b330181255562decf9f0c6215" dependencies = [ "cc", "pkg-config", @@ -2636,11 +2627,10 @@ dependencies = [ [[package]] name = "rsqlite-vfs" -version = "0.1.1" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c51c9ae4df8a7fba42103df5c621fa3c37eccf3a3c650879e90fc48b11cc192c" +checksum = "353b74f9810d5b085b6c42c9d86a5f0fdb795553235cdd48753b32e3809d18a7" dependencies = [ - "hashbrown 0.16.1", "thiserror", ] @@ -2675,9 +2665,9 @@ dependencies = [ [[package]] name = "rusqlite" -version = "0.41.1" +version = "0.43.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da9bba6f3506135e120a6586df05be18b48d18896600646a4bec8f993d91a594" +checksum = "f172c4812a19b26d1c23cdb0070e69db335503dfa378b910eb857386e5b8beba" dependencies = [ "bitflags", "fallible-iterator", @@ -3112,14 +3102,12 @@ dependencies = [ [[package]] name = "sqlite-wasm-rs" -version = "0.5.5" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc3efc0da82635d7e1ced0053bbbfa8c7ab9645d0bf36ceb4f7127bb85315d75" +checksum = "a6cd504cecbfe7eef649988840f9a6cb768d11085efec138f8e99f160632d867" dependencies = [ "cc", - "js-sys", "rsqlite-vfs", - "wasm-bindgen", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 286d133b..31d1fb38 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -50,7 +50,7 @@ tracing-appender = "0.2" time = { version = "0.3", features = ["macros", "local-offset", "formatting"] } # Database -rusqlite = { version = "0.41", features = ["bundled"] } +rusqlite = { version = "0.43", features = ["bundled"] } # Tree-sitter tree-sitter = "0.27" From 272655693346b6a2615ca9fccf752dd4fd045f22 Mon Sep 17 00:00:00 2001 From: sunerpy Date: Fri, 27 Nov 2026 17:56:12 +0800 Subject: [PATCH 3/3] build(deps): bump miniz_oxide to 0.9.1 codegraph-resolve's requirement moves from "0.8.9" to "0.9.1" (a ^0.8.9 requirement cannot select 0.9.1). The lockfile gains miniz_oxide 0.9.1 for codegraph-resolve only; flate2 1.1.9 keeps miniz_oxide 0.8.9, so the binary carries both copies. `cargo update -p miniz_oxide --precise 0.9.1` also moved flate2 to 1.1.11 and zlib-rs to 0.6.9 so that both could share one copy. The new requirement does not need either move, so the lockfile kept is cargo's minimal resolution of it: one new package entry and two references qualified with their versions. The synthesis records' output rows (footprint.rs) are raw deflate at level 6 through compress_to_vec and decompress_to_vec_with_limit, and 0.9.1 keeps both signatures. The known-answer test passes with its constant unchanged, so 0.9.1 writes the same bytes as 0.8.9 for that input. Rows that another build wrote are not reused in any case: the build identity covers Cargo.lock, and records_another_build_left_are_not_trusted shows that a stage recomputed under a new build equals a fresh index. Verification: cargo metadata --locked; cargo tree --locked -i miniz_oxide@0.9.1 (codegraph-resolve only) and -i miniz_oxide@0.8.9 (flate2 only); cargo clippy --workspace --all-targets --locked -- -D warnings; cargo test -p codegraph-resolve --locked footprint (8 passed, the_output_codec_gives_a_known_answer among them); cargo test -p codegraph-watch --locked records_another_build_left_are_not_trusted. --- Cargo.lock | 13 +++++++++++-- crates/codegraph-resolve/Cargo.toml | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7eccd090..8a17c9c4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -631,7 +631,7 @@ dependencies = [ "codegraph-core", "codegraph-extract", "codegraph-store", - "miniz_oxide", + "miniz_oxide 0.9.1", "rayon", "regex", "serde", @@ -1199,7 +1199,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c" dependencies = [ "crc32fast", - "miniz_oxide", + "miniz_oxide 0.8.9", "zlib-rs", ] @@ -2072,6 +2072,15 @@ dependencies = [ "simd-adler32", ] +[[package]] +name = "miniz_oxide" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c" +dependencies = [ + "adler2", +] + [[package]] name = "mio" version = "1.2.1" diff --git a/crates/codegraph-resolve/Cargo.toml b/crates/codegraph-resolve/Cargo.toml index acee050e..6dd09b47 100644 --- a/crates/codegraph-resolve/Cargo.toml +++ b/crates/codegraph-resolve/Cargo.toml @@ -25,4 +25,4 @@ regex = "1.10" # The synthesis records' output rows are raw deflate at a fixed level; the # codec is named here, not through flate2, whose backend the workspace's # other crates choose (W9-00 row 27). -miniz_oxide = "0.8.9" +miniz_oxide = "0.9.1"