From b2ef3acf8830eb13095808fe2f7c84f3916429de Mon Sep 17 00:00:00 2001 From: Mykhailo Chalyi Date: Thu, 5 Nov 2026 19:08:25 -0600 Subject: [PATCH 1/5] chore(deps): bump rust-dependencies group, cap ruff at 0.0.15 Same bumps as #2848 (fancy-regex 0.20, getrandom 0.4, hashbrown 0.17, itertools 0.15, speedate 0.18, strum 0.28) except ruff_python_* capped at 0.0.15: 0.0.16+ requires rustc 1.97 while the repo pins 1.96.0. Adapt to the bumps that change APIs: - fancy-regex 0.20: Captures gains an input-type parameter -> Captures<'_, str> - ruff 0.0.15: TokenKind::Name renamed to TokenKind::Identifier Supersedes #2848. --- Cargo.lock | 180 +++++++++---------- crates/bashkit-monty-types/Cargo.toml | 4 +- crates/bashkit-monty/Cargo.toml | 26 +-- crates/bashkit-monty/src/source_nesting.rs | 2 +- crates/bashkit-monty/src/types/re_match.rs | 2 +- crates/bashkit-monty/src/types/re_pattern.rs | 2 +- 6 files changed, 102 insertions(+), 114 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index eb4c02498..ff8ab85d2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -455,7 +455,7 @@ dependencies = [ "criterion", "ed25519-dalek", "fail", - "fancy-regex 0.20.0", + "fancy-regex", "fetchkit", "fetchkit-cli", "flate2", @@ -616,11 +616,11 @@ dependencies = [ "ahash", "bashkit-monty-types", "chrono", - "fancy-regex 0.17.0", - "getrandom 0.3.4", - "hashbrown 0.16.1", + "fancy-regex", + "getrandom 0.4.3", + "hashbrown 0.17.1", "indexmap", - "itertools 0.14.0", + "itertools 0.15.0", "itoa", "jiter", "libm", @@ -643,10 +643,10 @@ dependencies = [ "sha2 0.11.1", "smallvec", "speedate", - "strum 0.27.2", + "strum 0.28.0", "unicode-general-category", "unicode-normalization", - "unicode_names2", + "unicode_names2 4.0.0", ] [[package]] @@ -661,7 +661,7 @@ dependencies = [ "ruff_python_stdlib", "serde", "serde_bytes", - "strum 0.27.2", + "strum 0.28.0", "unicode-general-category", "web-time", ] @@ -1231,7 +1231,7 @@ version = "3.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "faf9468729b8cbcea668e36183cb69d317348c2e08e994829fb56ebfdfbaac34" dependencies = [ - "windows-sys 0.61.2", + "windows-sys 0.52.0", ] [[package]] @@ -1698,7 +1698,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d045de693cb712d0b22c6a64be5b953f67b3ce00ab5ad3dd5d8b441886ab8e1a" dependencies = [ "quote", - "syn 3.0.9", + "syn 2.0.119", ] [[package]] @@ -2106,7 +2106,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", - "windows-sys 0.61.2", + "windows-sys 0.52.0", ] [[package]] @@ -2132,17 +2132,6 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2acce4a10f12dc2fb14a218589d4f1f62ef011b2d0cc4b3cb1bba8e94da14649" -[[package]] -name = "fancy-regex" -version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72cf461f865c862bb7dc573f643dd6a2b6842f7c30b07882b56bd148cc2761b8" -dependencies = [ - "bit-set 0.8.0", - "regex-automata", - "regex-syntax", -] - [[package]] name = "fancy-regex" version = "0.20.0" @@ -2564,8 +2553,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" dependencies = [ "allocator-api2 0.2.21", - "equivalent", - "foldhash", ] [[package]] @@ -2574,6 +2561,8 @@ version = "0.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" dependencies = [ + "allocator-api2 0.2.21", + "equivalent", "foldhash", "serde", "serde_core", @@ -3191,9 +3180,9 @@ dependencies = [ [[package]] name = "jiff" -version = "0.2.35" +version = "0.2.39" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "668b7183bd07af9a4885f5c35b0cc5c83c4607a913c16b7e17291832910d2dcc" +checksum = "3ac703058abac89e5c39b0b879dce2b6b14a4ba36600c7e7e3d0c60a6883ef3c" dependencies = [ "defmt", "jiff-core", @@ -3209,18 +3198,19 @@ dependencies = [ [[package]] name = "jiff-core" -version = "0.1.0" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7feca88439efe53da3754500c1851dedf3cb36c524dd5cf8225cc0794de95d09" +checksum = "aee43309eb53bafb8c36d35d6e444769c8f8e6206a9fbf7546f5db9d7d4a0e93" dependencies = [ "defmt", + "log", ] [[package]] name = "jiff-static" -version = "0.2.35" +version = "0.2.39" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a69dcb3a21cfb32ce1cd056169337ca284af0766dd766e7878819b251a49204" +checksum = "6dc32470c67eb7d0e9ccb74303fa925313dc04cecb1aa048beaa6f391e36a93d" dependencies = [ "jiff-core", "proc-macro2", @@ -3230,9 +3220,9 @@ dependencies = [ [[package]] name = "jiff-tzdb" -version = "0.1.8" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "142bd39932ad231f10513df9ab62661fead8719872150b7ad02a2df79f4e141e" +checksum = "fa8377070c6bae868759445e5a77f66d84f0b72f3a054bfb00e6d038b8282da7" [[package]] name = "jiff-tzdb-platform" @@ -4415,9 +4405,7 @@ version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "913273894cec178f401a31ec4b656318d95473527be05c0752cc41cdc32be8b7" dependencies = [ - "phf_macros 0.12.1", "phf_shared 0.12.1", - "serde", ] [[package]] @@ -4472,16 +4460,6 @@ dependencies = [ "rand 0.8.8", ] -[[package]] -name = "phf_generator" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2cbb1126afed61dd6368748dae63b1ee7dc480191c6262a3b4ff1e29d86a6c5b" -dependencies = [ - "fastrand", - "phf_shared 0.12.1", -] - [[package]] name = "phf_generator" version = "0.13.1" @@ -4502,19 +4480,6 @@ dependencies = [ "phf_shared 0.14.0", ] -[[package]] -name = "phf_macros" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d713258393a82f091ead52047ca779d37e5766226d009de21696c4e667044368" -dependencies = [ - "phf_generator 0.12.1", - "phf_shared 0.12.1", - "proc-macro2", - "quote", - "syn 2.0.119", -] - [[package]] name = "phf_macros" version = "0.13.1" @@ -5349,9 +5314,9 @@ dependencies = [ [[package]] name = "ruff_python_ast" -version = "0.0.14" +version = "0.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6aa1de604c478a790cfbcc9c1fef3060e619ed87dd776c6614862ed7e59dc461" +checksum = "7739179c404793f47296e14397478ea03dc07cf3cf6632b3f7afeee80bca10f4" dependencies = [ "aho-corasick", "arrayvec", @@ -5371,9 +5336,9 @@ dependencies = [ [[package]] name = "ruff_python_codegen" -version = "0.0.14" +version = "0.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61039f2c61869bdabf2e5448b561ab6546b787718926c78973ebfefe03f84298" +checksum = "d17c851523888b26872a2c07d736f50e58d408438afe9a8a64ee8e5677ae5489" dependencies = [ "ruff_python_ast", "ruff_python_literal", @@ -5384,9 +5349,9 @@ dependencies = [ [[package]] name = "ruff_python_literal" -version = "0.0.14" +version = "0.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b6025882ae43876fda9867693e14d1d749acefb3db2763d81bfa32a8cd92682" +checksum = "6146cbd42f7dd229765b2d97410da14dfb708a7b73a514f6b47db7b4e845a4fc" dependencies = [ "bitflags 2.13.2", "icu_properties", @@ -5396,9 +5361,9 @@ dependencies = [ [[package]] name = "ruff_python_parser" -version = "0.0.14" +version = "0.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b44b423a842d5d2f10807189a260ba677d4eacdc98c5d0459b66bef67fb78d97" +checksum = "5e8801707fbf7f737fb8c924cf7c47c32d6bea0f5cb6aabdef70db9cd4ee05cb" dependencies = [ "bitflags 2.13.2", "bstr", @@ -5415,14 +5380,14 @@ dependencies = [ "thin-vec", "unicode-ident", "unicode-normalization", - "unicode_names2", + "unicode_names2 1.3.0", ] [[package]] name = "ruff_python_stdlib" -version = "0.0.14" +version = "0.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea8c1e6e69f7570e1f24c7a26ef93f6fd1475e2d76aa9ca4a78093c1f80523cb" +checksum = "a3c016c3a80572fda4ecf43fe9213812bd45dce2e3ae617403ef76bea1326d89" dependencies = [ "bitflags 2.13.2", "unicode-ident", @@ -5430,22 +5395,24 @@ dependencies = [ [[package]] name = "ruff_python_trivia" -version = "0.0.14" +version = "0.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "990dadfad3aa3fd63040d98056112e5a377af8ada0c9c7659e8907a4b3c7cb34" +checksum = "d6fa97e6048b7e69ca7784e538af46935a9e3dc64d7f30ea412298a385898b26" dependencies = [ "itertools 0.15.0", + "memchr", "ruff_source_file", "ruff_text_size", "rustc-hash", "unicode-ident", + "unicode-normalization", ] [[package]] name = "ruff_source_file" -version = "0.0.14" +version = "0.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed11e9366de40e79707c0e575afd8beffad58ec94c253577d516b8679cf98308" +checksum = "bff6d1182e0b5d7c276a3fc835c03c3618b8585b1d6ab409d8a7915f44bda465" dependencies = [ "memchr", "ruff_text_size", @@ -5453,9 +5420,9 @@ dependencies = [ [[package]] name = "ruff_text_size" -version = "0.0.14" +version = "0.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a4edc941f215495170a1bda0beeeb31db2fdcd67beecfe7f29d94b2663e1965" +checksum = "ce8825dec40aec41929c539f419c427885a1005de8bfcf85284220b6fde41766" dependencies = [ "get-size2", ] @@ -5596,7 +5563,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys", - "windows-sys 0.61.2", + "windows-sys 0.52.0", ] [[package]] @@ -5654,7 +5621,7 @@ dependencies = [ "security-framework", "security-framework-sys", "webpki-root-certs", - "windows-sys 0.61.2", + "windows-sys 0.52.0", ] [[package]] @@ -6133,9 +6100,9 @@ dependencies = [ [[package]] name = "signal-hook" -version = "0.4.5" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b29ffa27d3d59a049bb328258de100f8012848d1b08d444e08bbc02ac468435e" +checksum = "49f7447afd772ca79ad17ae0a3972a6b0df0cb4b80990fd82707593e9e012a74" dependencies = [ "libc", "signal-hook-registry", @@ -6212,9 +6179,9 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" [[package]] name = "smallvec" -version = "1.16.0" +version = "1.16.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9be42f50aa861c555654aa3a37f52f4b1074bacf4e48fe0ef7fa584e80f1f0f" +checksum = "d0d5d4b1981b8bbbb7aed204cae5726d683d5d6ac7e74ec54122ea28f315e7c8" dependencies = [ "serde", ] @@ -6243,13 +6210,14 @@ checksum = "45e14297decde697ddf377c25752aead0927d5cfc89c2684d2af96901a4ceeea" [[package]] name = "speedate" -version = "0.17.0" +version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aba069c070b5e213f2a094deb7e5ed50ecb092be36102a4f4042e8d2056d060e" +checksum = "da8f8c5f7f7ea2811a17f99bca4fec7f9ef0b0734713a5cbfc9baee203eba8eb" dependencies = [ + "arrayvec", "lexical-parse-float", - "strum 0.27.2", - "strum_macros 0.27.2", + "strum 0.28.0", + "strum_macros 0.28.0", ] [[package]] @@ -6407,12 +6375,12 @@ dependencies = [ [[package]] name = "strum" -version = "0.27.2" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af23d6f6c1a224baef9d3f61e287d2761385a5b88fdab4eb4c6f11aeb54c4bcf" +checksum = "9628de9b8791db39ceda2b119bbe13134770b56c138ec1d3af810d045c04f9bd" dependencies = [ - "phf 0.12.1", - "strum_macros 0.27.2", + "phf 0.13.1", + "strum_macros 0.28.0", ] [[package]] @@ -6430,9 +6398,9 @@ dependencies = [ [[package]] name = "strum_macros" -version = "0.27.2" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7695ce3845ea4b33927c055a39dc438a45b059f7c1b3d91d38d10355fb8cbca7" +checksum = "ab85eea0270ee17587ed4156089e10b9e6880ee688791d45a905f5b1ca36f664" dependencies = [ "heck", "proc-macro2", @@ -6530,10 +6498,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" dependencies = [ "fastrand", - "getrandom 0.4.3", + "getrandom 0.3.4", "once_cell", "rustix", - "windows-sys 0.61.2", + "windows-sys 0.52.0", ] [[package]] @@ -7085,9 +7053,9 @@ checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f" [[package]] name = "unicode-normalization" -version = "0.1.25" +version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fd4f6878c9cb28d874b009da9e8d183b5abc80117c40bbd187a1fde336be6e8" +checksum = "75cd3fb03d5288b3ba9a1ee103ac7e9cbb59f0b03d64f8ddfcc04dd42758a85d" dependencies = [ "tinyvec", ] @@ -7123,7 +7091,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d1673eca9782c84de5f81b82e4109dcfb3611c8ba0d52930ec4a9478f547b2dd" dependencies = [ "phf 0.11.3", - "unicode_names2_generator", + "unicode_names2_generator 1.3.0", +] + +[[package]] +name = "unicode_names2" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ba646312acace3c9ec35d7404b58214b6fbf17cbb0d040f35a88407c424447f" +dependencies = [ + "phf 0.11.3", + "unicode_names2_generator 4.0.0", ] [[package]] @@ -7138,6 +7116,16 @@ dependencies = [ "rand 0.8.8", ] +[[package]] +name = "unicode_names2_generator" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3afbb72a8cff40859641ae4e56679215a15764e5c155a46f0f534611bdc08e0e" +dependencies = [ + "phf_codegen 0.11.3", + "rand 0.8.8", +] + [[package]] name = "unit-prefix" version = "0.5.2" @@ -7689,7 +7677,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.52.0", ] [[package]] diff --git a/crates/bashkit-monty-types/Cargo.toml b/crates/bashkit-monty-types/Cargo.toml index 630516d7a..a3c256114 100644 --- a/crates/bashkit-monty-types/Cargo.toml +++ b/crates/bashkit-monty-types/Cargo.toml @@ -41,10 +41,10 @@ jiff = { version = "0.2", features = ["std", "serde"], default-features = false monty-macros = { version = "1.4.0" } num-bigint = { version = "0.4", features = ["serde"] } num-traits = { version = "0.2" } -ruff_python_stdlib = { version = "0.0.14" } +ruff_python_stdlib = { version = "0.0.15" } serde = { version = "1.0", features = ["derive", "rc"] } serde_bytes = { version = "0.11" } -strum = { version = "0.27", features = ["derive", "phf"] } +strum = { version = "0.28", features = ["derive", "phf"] } unicode-general-category = { version = "1" } [target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies] diff --git a/crates/bashkit-monty/Cargo.toml b/crates/bashkit-monty/Cargo.toml index 9eff48d5b..e9f7c16f4 100644 --- a/crates/bashkit-monty/Cargo.toml +++ b/crates/bashkit-monty/Cargo.toml @@ -39,11 +39,11 @@ doctest = false monty-types = { package = "bashkit-monty-types", path = "../bashkit-monty-types", version = "0.20.3" } ahash = { version = "0.8.0", features = ["serde"] } chrono = { version = "0.4", features = ["serde"] } -fancy-regex = { version = "0.17.0" } -getrandom = { version = "0.3" } -hashbrown = { version = "0.16" } +fancy-regex = { version = "0.20.0" } +getrandom = { version = "0.4" } +hashbrown = { version = "0.17" } indexmap = { version = "2" } -itertools = { version = "0.14.0" } +itertools = { version = "0.15.0" } itoa = { version = "1" } jiter = { version = "0.17.0", features = ["num-bigint"] } libm = { version = "0.2" } @@ -54,22 +54,22 @@ num-bigint = { version = "0.4", features = ["serde"] } num-integer = { version = "0.1" } num-traits = { version = "0.2" } postcard = { version = "1.1", features = ["alloc"] } -ruff_python_ast = { version = "0.0.14" } -ruff_python_codegen = { version = "0.0.14" } -ruff_python_parser = { version = "0.0.14" } -ruff_python_stdlib = { version = "0.0.14" } -ruff_source_file = { version = "0.0.14" } -ruff_text_size = { version = "0.0.14" } +ruff_python_ast = { version = "0.0.15" } +ruff_python_codegen = { version = "0.0.15" } +ruff_python_parser = { version = "0.0.15" } +ruff_python_stdlib = { version = "0.0.15" } +ruff_source_file = { version = "0.0.15" } +ruff_text_size = { version = "0.0.15" } serde = { version = "1.0", features = ["derive", "rc"] } serde_bytes = { version = "0.11" } sha1 = { version = "0.11", default-features = false } sha2 = { version = "0.11", default-features = false } smallvec = { version = "1.13", features = ["serde", "union"] } -speedate = { version = "0.17.0" } -strum = { version = "0.27", features = ["derive", "phf"] } +speedate = { version = "0.18.0" } +strum = { version = "0.28", features = ["derive", "phf"] } unicode-general-category = { version = "1" } unicode-normalization = { version = "0.1" } -unicode_names2 = { version = "1" } +unicode_names2 = { version = "4" } [features] memory-model-checks = [] diff --git a/crates/bashkit-monty/src/source_nesting.rs b/crates/bashkit-monty/src/source_nesting.rs index 4973307e3..56bf069dd 100644 --- a/crates/bashkit-monty/src/source_nesting.rs +++ b/crates/bashkit-monty/src/source_nesting.rs @@ -259,7 +259,7 @@ impl Scanner { }; self.prev_ends_operand = matches!( kind, - TokenKind::Name + TokenKind::Identifier | TokenKind::Int | TokenKind::Float | TokenKind::Complex diff --git a/crates/bashkit-monty/src/types/re_match.rs b/crates/bashkit-monty/src/types/re_match.rs index 58a203fb8..5be491fcc 100644 --- a/crates/bashkit-monty/src/types/re_match.rs +++ b/crates/bashkit-monty/src/types/re_match.rs @@ -83,7 +83,7 @@ impl ReMatch { /// `subject` is the already-refcounted subject `Value` this match keeps alive /// (the caller clones it per match); `regex` supplies named-group mappings. pub fn from_captures( - caps: &fancy_regex::Captures<'_>, + caps: &fancy_regex::Captures<'_, str>, subject: Value, all_ascii: bool, regex: &fancy_regex::Regex, diff --git a/crates/bashkit-monty/src/types/re_pattern.rs b/crates/bashkit-monty/src/types/re_pattern.rs index b49dfb614..55ca1712c 100644 --- a/crates/bashkit-monty/src/types/re_pattern.rs +++ b/crates/bashkit-monty/src/types/re_pattern.rs @@ -180,7 +180,7 @@ impl RePattern { /// Builds a single `ReMatch` heap value from a capture result, keeping the /// subject alive by refcount (`subject.clone_with_heap`) rather than copying /// its text. `all_ascii` is precomputed by the caller (once per `finditer`). - fn build_match(&self, caps: &fancy_regex::Captures<'_>, subject: &Value, all_ascii: bool, heap: &Heap) -> Value { + fn build_match(&self, caps: &fancy_regex::Captures<'_, str>, subject: &Value, all_ascii: bool, heap: &Heap) -> Value { let m = ReMatch::from_captures(caps, subject.clone_with_heap(heap), all_ascii, &self.compiled); Value::Ref(heap.allocate(HeapData::ReMatch(Box::new(m)))) } From 12e8e2c3ca4b007fa89657f9c9528e1b1161a487 Mon Sep 17 00:00:00 2001 From: Mykhailo Chalyi Date: Thu, 5 Nov 2026 19:10:29 -0600 Subject: [PATCH 2/5] chore(deps): document ruff 0.0.15 hold and ignore >=0.0.16 Dependabot would otherwise re-propose the unbuildable 0.0.16+ stream on the next cycle. Follows the wasmtime/oxc ignore precedent. --- .github/dependabot.yml | 19 +++++++++++++++++++ crates/bashkit-monty-types/Cargo.toml | 1 + crates/bashkit-monty/Cargo.toml | 1 + knowledge/operations/dependencies.md | 18 ++++++++++++++++++ 4 files changed, 39 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 787c80496..fe10cd0a9 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -85,6 +85,25 @@ updates: # toolchain; see knowledge/runtimes/cpython-wasm.md. - dependency-name: "wasmtime" + # ruff_python_* is held at 0.0.15: 0.0.16+ requires rustc 1.97 + # against the 1.96.0 in `rust-toolchain.toml`, so any newer proposal + # fails every rust job at resolution (the shape that sank #2848). + # The crates release in lockstep, so all six share one bound. Lift + # together with the toolchain; see the pin comments in + # crates/bashkit-monty/Cargo.toml and knowledge/operations/dependencies.md. + - dependency-name: "ruff_python_ast" + versions: [">=0.0.16"] + - dependency-name: "ruff_python_codegen" + versions: [">=0.0.16"] + - dependency-name: "ruff_python_parser" + versions: [">=0.0.16"] + - dependency-name: "ruff_python_stdlib" + versions: [">=0.0.16"] + - dependency-name: "ruff_source_file" + versions: [">=0.0.16"] + - dependency-name: "ruff_text_size" + versions: [">=0.0.16"] + # idna_adapter is deliberately held at 1.0.0. It is not a normal # dependency: the crate exists so the top-level lockfile can choose # `idna`'s Unicode back end, and 1.0.x is the "no back end" stream that diff --git a/crates/bashkit-monty-types/Cargo.toml b/crates/bashkit-monty-types/Cargo.toml index a3c256114..d2e36b363 100644 --- a/crates/bashkit-monty-types/Cargo.toml +++ b/crates/bashkit-monty-types/Cargo.toml @@ -41,6 +41,7 @@ jiff = { version = "0.2", features = ["std", "serde"], default-features = false monty-macros = { version = "1.4.0" } num-bigint = { version = "0.4", features = ["serde"] } num-traits = { version = "0.2" } +# Held at 0.0.15: 0.0.16+ needs rustc 1.97 vs pinned 1.96.0 (see dependabot.yml + knowledge/operations/dependencies.md). ruff_python_stdlib = { version = "0.0.15" } serde = { version = "1.0", features = ["derive", "rc"] } serde_bytes = { version = "0.11" } diff --git a/crates/bashkit-monty/Cargo.toml b/crates/bashkit-monty/Cargo.toml index e9f7c16f4..8a8da889a 100644 --- a/crates/bashkit-monty/Cargo.toml +++ b/crates/bashkit-monty/Cargo.toml @@ -54,6 +54,7 @@ num-bigint = { version = "0.4", features = ["serde"] } num-integer = { version = "0.1" } num-traits = { version = "0.2" } postcard = { version = "1.1", features = ["alloc"] } +# Held at 0.0.15: 0.0.16+ needs rustc 1.97 vs pinned 1.96.0 (see dependabot.yml + knowledge/operations/dependencies.md). ruff_python_ast = { version = "0.0.15" } ruff_python_codegen = { version = "0.0.15" } ruff_python_parser = { version = "0.0.15" } diff --git a/knowledge/operations/dependencies.md b/knowledge/operations/dependencies.md index 1aab4bc84..11783d07f 100644 --- a/knowledge/operations/dependencies.md +++ b/knowledge/operations/dependencies.md @@ -184,6 +184,24 @@ the vendored parser in one deliberate change — not inside an aggregated `scripts/tests/test_dependabot_coverage.py` enforces all three. +## ruff is held at 0.0.15 by the rustc 1.96 pin + +`bashkit-monty` and `bashkit-monty-types` declare six ruff crates +(`ruff_python_ast`, `ruff_python_codegen`, `ruff_python_parser`, +`ruff_python_stdlib`, `ruff_source_file`, `ruff_text_size`) for the embedded +Python parser. ruff 0.0.16 raised its MSRV to rustc 1.97 against the 1.96.0 in +`rust-toolchain.toml`, so #2848's jump to 0.0.20 failed every rust job at +resolution (the same shape as the wasmtime 49.x failure in #2708). 0.0.15 is +the newest release each of the six ships with a 1.96-compatible rust-version +(verified per crate on crates.io; they release in lockstep). + +All six are therefore in dependabot's `ignore` list for `>=0.0.16`, with a pin +comment at each declaration. Lifting them waits on a deliberate Rust 1.97 +toolchain bump, and then means re-checking the two API breaks #2851 adapted +to (fancy-regex 0.20 `Captures<'_, str>`, ruff 0.0.15 `TokenKind::Identifier`) +— not inside an aggregated `chore(deps)` PR. + (chore(deps): document ruff 0.0.15 hold and ignore >=0.0.16) + ## Measure size and audit surface separately The `idna_adapter` pin removes 21 crates but only **15 KB (0.16%)** from the From 0ecbf5fffdafd1a53d51affdddebdab4c8820242 Mon Sep 17 00:00:00 2001 From: Mykhailo Chalyi Date: Thu, 5 Nov 2026 23:00:06 -0600 Subject: [PATCH 3/5] test(ci): teach pin test the explicit rustup nightly spelling The toolchain action dropped its toolchain: input, so nightly jobs now install via run: rustup toolchain install nightly-.... The exempt-nightly detector only knew the legacy # nightly action-ref spelling and failed the migrated jobs (plus misclassified cargo-fuzz). Detect both; the discovery guard accepts either. --- scripts/tests/test_pinned_ci_tools.py | 37 +++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/scripts/tests/test_pinned_ci_tools.py b/scripts/tests/test_pinned_ci_tools.py index 7a452bc1d..cabbd489e 100644 --- a/scripts/tests/test_pinned_ci_tools.py +++ b/scripts/tests/test_pinned_ci_tools.py @@ -6,7 +6,7 @@ tool resolves to the newest release and an upstream MSRV bump breaks a tree that has not changed: cargo-geiger 0.14.0 shipped on 2026-10-12 requiring rustc 1.97, and nightly run 259 went red the next morning with the unsafe-code audit -skipped. A job that installs the nightly toolchain is exempt — nightly outruns +skipped. A job that installs a pinned nightly toolchain is exempt (either spelling below) — nightly outruns any released MSRV — which is why `cargo-fuzz` in the fuzz job needs no pin. The first attempt at pinning geiger passed `version: 0.13.0`. That action has @@ -64,6 +64,19 @@ def nightly_toolchain_shas(): return shas +# The toolchain action removed its `toolchain:` input, so newer jobs install +# the pinned nightly with an explicit run step instead of a `# nightly`-marked +# action ref. Both spellings mark a nightly job. +RUSTUP_NIGHTLY_INSTALL = re.compile(r'rustup\s+toolchain\s+install\s+\S*nightly') + + +def job_installs_nightly_via_rustup(job): + for step in job.get('steps') or []: + if RUSTUP_NIGHTLY_INSTALL.search(step.get('run') or ''): + return True + return False + + def job_uses_nightly(job, nightly_shas): for step in job.get('steps') or []: uses = step.get('uses') or '' @@ -71,7 +84,19 @@ def job_uses_nightly(job, nightly_shas): _, _, ref = uses.partition('@') if ref in nightly_shas: return True - return False + return job_installs_nightly_via_rustup(job) + + +def nightly_job_ids(): + """`workflow:job` ids installing a nightly toolchain, either spelling.""" + shas = nightly_toolchain_shas() + ids = set() + for path in sorted(WORKFLOWS.glob('*.yml')): + spec = yaml.safe_load(path.read_text()) + for job_name, job in (spec.get('jobs') or {}).items(): + if job_uses_nightly(job, shas): + ids.add(f'{path.name}:{job_name}') + return ids def source_build_steps(): @@ -93,9 +118,11 @@ def test_discovery_finds_both_kinds_of_job(self): steps = list(source_build_steps()) self.assertTrue(steps, f'no {SOURCE_BUILD_ACTION} steps found') self.assertTrue( - nightly_toolchain_shas(), - f'no `{TOOLCHAIN_ACTION}@ # nightly` ref found; the comment ' - 'spelling this parser relies on may have changed', + nightly_job_ids(), + f'no nightly toolchain install found (neither a ' + f'`{TOOLCHAIN_ACTION}@ # nightly` ref nor a ' + '`rustup toolchain install nightly-...` step); the spelling ' + 'this parser relies on may have changed', ) def test_tools_on_the_pinned_toolchain_pin_a_version(self): From 110040129148cefda6bef4cfb2b16a28977df09c Mon Sep 17 00:00:00 2001 From: Mykhailo Chalyi Date: Thu, 5 Nov 2026 23:00:26 -0600 Subject: [PATCH 4/5] Revert "test(ci): teach pin test the explicit rustup nightly spelling" This reverts commit 00e95b48216683df72b628c6ebb61437a982370f. --- scripts/tests/test_pinned_ci_tools.py | 37 ++++----------------------- 1 file changed, 5 insertions(+), 32 deletions(-) diff --git a/scripts/tests/test_pinned_ci_tools.py b/scripts/tests/test_pinned_ci_tools.py index cabbd489e..7a452bc1d 100644 --- a/scripts/tests/test_pinned_ci_tools.py +++ b/scripts/tests/test_pinned_ci_tools.py @@ -6,7 +6,7 @@ tool resolves to the newest release and an upstream MSRV bump breaks a tree that has not changed: cargo-geiger 0.14.0 shipped on 2026-10-12 requiring rustc 1.97, and nightly run 259 went red the next morning with the unsafe-code audit -skipped. A job that installs a pinned nightly toolchain is exempt (either spelling below) — nightly outruns +skipped. A job that installs the nightly toolchain is exempt — nightly outruns any released MSRV — which is why `cargo-fuzz` in the fuzz job needs no pin. The first attempt at pinning geiger passed `version: 0.13.0`. That action has @@ -64,19 +64,6 @@ def nightly_toolchain_shas(): return shas -# The toolchain action removed its `toolchain:` input, so newer jobs install -# the pinned nightly with an explicit run step instead of a `# nightly`-marked -# action ref. Both spellings mark a nightly job. -RUSTUP_NIGHTLY_INSTALL = re.compile(r'rustup\s+toolchain\s+install\s+\S*nightly') - - -def job_installs_nightly_via_rustup(job): - for step in job.get('steps') or []: - if RUSTUP_NIGHTLY_INSTALL.search(step.get('run') or ''): - return True - return False - - def job_uses_nightly(job, nightly_shas): for step in job.get('steps') or []: uses = step.get('uses') or '' @@ -84,19 +71,7 @@ def job_uses_nightly(job, nightly_shas): _, _, ref = uses.partition('@') if ref in nightly_shas: return True - return job_installs_nightly_via_rustup(job) - - -def nightly_job_ids(): - """`workflow:job` ids installing a nightly toolchain, either spelling.""" - shas = nightly_toolchain_shas() - ids = set() - for path in sorted(WORKFLOWS.glob('*.yml')): - spec = yaml.safe_load(path.read_text()) - for job_name, job in (spec.get('jobs') or {}).items(): - if job_uses_nightly(job, shas): - ids.add(f'{path.name}:{job_name}') - return ids + return False def source_build_steps(): @@ -118,11 +93,9 @@ def test_discovery_finds_both_kinds_of_job(self): steps = list(source_build_steps()) self.assertTrue(steps, f'no {SOURCE_BUILD_ACTION} steps found') self.assertTrue( - nightly_job_ids(), - f'no nightly toolchain install found (neither a ' - f'`{TOOLCHAIN_ACTION}@ # nightly` ref nor a ' - '`rustup toolchain install nightly-...` step); the spelling ' - 'this parser relies on may have changed', + nightly_toolchain_shas(), + f'no `{TOOLCHAIN_ACTION}@ # nightly` ref found; the comment ' + 'spelling this parser relies on may have changed', ) def test_tools_on_the_pinned_toolchain_pin_a_version(self): From 9a278edfc0ea0f26af2378155bc396e201e51686 Mon Sep 17 00:00:00 2001 From: Mykhailo Chalyi Date: Thu, 5 Nov 2026 23:38:16 -0600 Subject: [PATCH 5/5] chore(vet): certify versions from the rust-dependencies bump Exemption bumps for versions already exempted (jiff set, ruff 0.0.15 set, speedate 0.18, strum 0.28, unicode_names2 4.0); reviewed delta audits for signal-hook 0.4.5->0.4.6 (BorrowSignalSafe generalization), smallvec 1.16.0->1.16.4 (drop-check soundness fix), unicode-normalization 0.1.25->0.1.26 (Unicode 18 table regen + license metadata). cargo vet --locked passes locally. --- supply-chain/audits.toml | 18 ++++++++++++++++++ supply-chain/config.toml | 38 +++++++++++++++++++++++--------------- 2 files changed, 41 insertions(+), 15 deletions(-) diff --git a/supply-chain/audits.toml b/supply-chain/audits.toml index cd97872c0..686a700b1 100644 --- a/supply-chain/audits.toml +++ b/supply-chain/audits.toml @@ -659,12 +659,24 @@ criteria = "safe-to-deploy" delta = "0.4.4 -> 0.4.5" notes = "Reviewed complete published package diff: no new dependencies, no build scripts, no new host access beyond the libc signal and pipe calls the crate already made. low_level/pipe.rs hoists the raw file descriptor out of the borrowed pipe before the unsafe libc::send wake, so the descriptor is read once rather than through a borrow held across the call, and the unsafe block is narrowed to the call itself. signal_details.rs and the iterator test follow. No new unsafe blocks and no change to which signals are handled." +[[audits.signal-hook]] +who = "Mykhailo Chalyi " +criteria = "safe-to-deploy" +delta = "0.4.5 -> 0.4.6" +notes = "Reviewed published package diff: register() generalizes from Arc to any T: 'static + Send + Sync + BorrowSignalSafe so &'static atomics and bool flags work without an Arc. The new unsafe trait's contract is a signal-safe borrow of the atomic; both impls (Arc deref, &'static deref) satisfy it trivially, handlers still only SeqCst-load/store atomics, no new syscalls, build scripts, or dependencies." + [[audits.smallvec]] who = "Mykhailo Chalyi " criteria = "safe-to-deploy" delta = "1.15.2 -> 1.16.0" notes = "Reviewed source formatting/import grouping and debugger visualizer removal. Storage ownership, bounds, raw pointer operations and panic guards unchanged; no new unsafe or ambient access." +[[audits.smallvec]] +who = "Mykhailo Chalyi " +criteria = "safe-to-deploy" +delta = "1.16.0 -> 1.16.4" +notes = "Reviewed published package diff: 1.16.1 adds PhantomData to the union for drop-check with may_dangle (soundness fix, no new unsafe), 1.16.2-1.16.4 are const-doc updates, benchmark additions, and version bumps. No change to unsafe code, storage layout, or ambient access." + [[audits.syn]] who = "Mykhailo Chalyi " criteria = "safe-to-deploy" @@ -862,6 +874,12 @@ criteria = "safe-to-deploy" delta = "2.1.3 -> 2.1.4" notes = "Reviewed complete delta: formatting and private internal visibility changes, hash arithmetic and buffer reads unchanged. No new unsafe or host capability." +[[audits.unicode-normalization]] +who = "Mykhailo Chalyi " +criteria = "safe-to-deploy" +delta = "0.1.25 -> 0.1.26" +notes = "Reviewed published package diff: Unicode 17 to 18 table regeneration via the same scripts/unicode.py generator, plus license metadata correction declaring Unicode-3.0 for the data tables (already in the repo allow-list) with a LICENSE-UNICODE file. No logic or unsafe change." + [[audits.uuid]] who = "Mykhailo Chalyi " criteria = "safe-to-deploy" diff --git a/supply-chain/config.toml b/supply-chain/config.toml index ad7f6b068..20951731c 100644 --- a/supply-chain/config.toml +++ b/supply-chain/config.toml @@ -1098,19 +1098,19 @@ version = "3.0.2" criteria = "safe-to-deploy" [[exemptions.jiff]] -version = "0.2.35" +version = "0.2.39" criteria = "safe-to-deploy" [[exemptions.jiff-core]] -version = "0.1.0" +version = "0.1.2" criteria = "safe-to-deploy" [[exemptions.jiff-static]] -version = "0.2.35" +version = "0.2.39" criteria = "safe-to-deploy" [[exemptions.jiff-tzdb]] -version = "0.1.8" +version = "0.1.9" criteria = "safe-to-deploy" [[exemptions.jiff-tzdb-platform]] @@ -1878,35 +1878,35 @@ version = "0.10.0-rc.18" criteria = "safe-to-deploy" [[exemptions.ruff_python_ast]] -version = "0.0.14" +version = "0.0.15" criteria = "safe-to-deploy" [[exemptions.ruff_python_codegen]] -version = "0.0.14" +version = "0.0.15" criteria = "safe-to-deploy" [[exemptions.ruff_python_literal]] -version = "0.0.14" +version = "0.0.15" criteria = "safe-to-deploy" [[exemptions.ruff_python_parser]] -version = "0.0.14" +version = "0.0.15" criteria = "safe-to-deploy" [[exemptions.ruff_python_stdlib]] -version = "0.0.14" +version = "0.0.15" criteria = "safe-to-deploy" [[exemptions.ruff_python_trivia]] -version = "0.0.14" +version = "0.0.15" criteria = "safe-to-deploy" [[exemptions.ruff_source_file]] -version = "0.0.14" +version = "0.0.15" criteria = "safe-to-deploy" [[exemptions.ruff_text_size]] -version = "0.0.14" +version = "0.0.15" criteria = "safe-to-deploy" [[exemptions.russh]] @@ -2167,7 +2167,7 @@ version = "0.1.5" criteria = "safe-to-deploy" [[exemptions.speedate]] -version = "0.17.0" +version = "0.18.0" criteria = "safe-to-deploy" [[exemptions.spin]] @@ -2219,7 +2219,7 @@ version = "0.26.3" criteria = "safe-to-deploy" [[exemptions.strum]] -version = "0.27.2" +version = "0.28.0" criteria = "safe-to-deploy" [[exemptions.strum_macros]] @@ -2227,7 +2227,7 @@ version = "0.26.4" criteria = "safe-to-deploy" [[exemptions.strum_macros]] -version = "0.27.2" +version = "0.28.0" criteria = "safe-to-deploy" [[exemptions.subtle]] @@ -2434,10 +2434,18 @@ criteria = "safe-to-deploy" version = "1.3.0" criteria = "safe-to-deploy" +[[exemptions.unicode_names2]] +version = "4.0.0" +criteria = "safe-to-deploy" + [[exemptions.unicode_names2_generator]] version = "1.3.0" criteria = "safe-to-deploy" +[[exemptions.unicode_names2_generator]] +version = "4.0.0" +criteria = "safe-to-deploy" + [[exemptions.unit-prefix]] version = "0.5.2" criteria = "safe-to-deploy"