From 88347c31973a75bbab4f590395e0fe038f4f0253 Mon Sep 17 00:00:00 2001 From: James Yong Date: Tue, 27 Oct 2026 10:01:18 -0700 Subject: [PATCH] chore(deps): move the napi crates together (napi 3.15.0, napi-derive 3.6.13) The napi crates are released as one family, and napi-derive's `#[napi]` expansion targets its own napi and napi-derive-backend. Dependabot bumps them one at a time, so #204 (napi 3.8.5 -> 3.8.6 alone) has been red at CI `check` Build on every rebase since 2026-10-12. - napi 3.8.6 depends on ctor 0.11 with no features (3.8.5 asked ctor 0.10 for `proc_macro`), and napi-derive 3.5.4 expands to `ctor::ctor`. - `cargo check -p truffle-napi`, measured on main 053c473: napi 3.8.6 alone: 26 errors (E0433, cannot find `ctor` in `ctor`); + napi-derive 3.5.5: 86 errors (napi-derive-backend floats to 5.1.2 and wants prelude functions napi 3.8 lacks); the family together: 0 errors, no source change. - Lock only: napi 3.15.0, napi-derive 3.6.13, napi-derive-backend 6.1.6, napi-sys 3.4.1, napi-build 2.6.0; with them ctor 1.0.13 and convert_case 0.12.0, and ctor-proc-macro, dtor and dtor-proc-macro leave. - dependabot.yml groups `napi` and `napi-*` for cargo, so the family arrives as one PR. Co-Authored-By: Claude Opus 5.5 --- .github/dependabot.yml | 8 ++++ Cargo.lock | 84 +++++++++++++++--------------------------- 2 files changed, 38 insertions(+), 54 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b6e1bffe..1ccda656 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,6 +7,14 @@ updates: labels: - dependencies - rust + groups: + # The napi crates release as one family: napi-derive's expansion targets + # its own napi and napi-derive-backend, so one bumped alone breaks the + # truffle-napi build (#204). + napi: + patterns: + - 'napi' + - 'napi-*' - package-ecosystem: npm directory: / diff --git a/Cargo.lock b/Cargo.lock index fd78cb91..951fa081 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -109,7 +109,7 @@ version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" dependencies = [ - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -120,7 +120,7 @@ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" dependencies = [ "anstyle", "once_cell_polyfill", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -689,9 +689,9 @@ dependencies = [ [[package]] name = "convert_case" -version = "0.11.0" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "affbf0190ed2caf063e3def54ff444b449371d55c58e513a95ab98eca50adb49" +checksum = "1af709f1f33454bf52eadfc8c78b3b9ef9cb26fb54d16dc9cd9a7299f899fd1b" dependencies = [ "unicode-segmentation", ] @@ -963,19 +963,9 @@ dependencies = [ [[package]] name = "ctor" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95d0d11eb38e7642efca359c3cf6eb7b2e528182d09110165de70192b0352775" -dependencies = [ - "ctor-proc-macro", - "dtor", -] - -[[package]] -name = "ctor-proc-macro" -version = "0.0.12" +version = "1.0.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7ab264ea985f1bd27887d7b21ea2bb046728e05d11909ca138d700c494730db" +checksum = "914a755b7c2d4af2bdcff7ce1739e2db9a1b81a9b07123d8015786ae03c0980d" [[package]] name = "ctutils" @@ -1247,21 +1237,6 @@ dependencies = [ "dtoa", ] -[[package]] -name = "dtor" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17f72721db8027a4e96dd6fb50d2a1d32259c9d3da1b63dee612ccd981e14293" -dependencies = [ - "dtor-proc-macro", -] - -[[package]] -name = "dtor-proc-macro" -version = "0.0.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c98b077c7463d01d22dde8a24378ddf1ca7263dc687cffbed38819ea6c21131" - [[package]] name = "dunce" version = "1.0.5" @@ -1356,7 +1331,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -2913,13 +2888,14 @@ dependencies = [ [[package]] name = "napi" -version = "3.8.5" +version = "3.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa73b028610e2b26e9e40bd2c8ff8a98e6d7ed5d67d89ebf4bfd2f992616b024" +checksum = "6a746ad50efbfb632ade1de4025519a477decbbd798cea1a6ac41d7c44f80083" dependencies = [ "bitflags 2.11.0", - "ctor 0.10.0", + "ctor 1.0.13", "futures", + "libc", "napi-build", "napi-sys", "nohash-hasher", @@ -2931,42 +2907,42 @@ dependencies = [ [[package]] name = "napi-build" -version = "2.3.1" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d376940fd5b723c6893cd1ee3f33abbfd86acb1cd1ec079f3ab04a2a3bc4d3b1" +checksum = "b899b545d3aa6dca985939059f258c5488d34e4ecf39c274e20009748f4b846d" [[package]] name = "napi-derive" -version = "3.5.4" +version = "3.6.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7430702d3cc05cf55f0a2c9e41d991c3b7a53f91e6146a8f282b1bfc7f3fd133" +checksum = "3ff48271a0f61abb83f3e2d1989fa71169143db95f6f948c3a8903961f2855dc" dependencies = [ - "convert_case 0.11.0", - "ctor 0.10.0", + "convert_case 0.12.0", + "ctor 1.0.13", "napi-derive-backend", "proc-macro2", "quote", - "syn 2.0.117", + "syn 3.0.9", ] [[package]] name = "napi-derive-backend" -version = "5.0.3" +version = "6.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ca5a083f2c9b49a0c7d33ec75c083498849c6fcc46f5497317faa39ea77f5d5" +checksum = "f2639052c5aff9956a21d7b6202fc61d5e89c5f19c72d289b7a0641ea94e8159" dependencies = [ - "convert_case 0.11.0", + "convert_case 0.12.0", "proc-macro2", "quote", "semver", - "syn 2.0.117", + "syn 3.0.9", ] [[package]] name = "napi-sys" -version = "3.2.1" +version = "3.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8eb602b84d7c1edae45e50bbf1374696548f36ae179dfa667f577e384bb90c2b" +checksum = "d153beb7d5c973f4b9395be8a83054a28968b61188f1dd1a2cc2321af22daea2" dependencies = [ "libloading 0.9.0", ] @@ -3948,7 +3924,7 @@ dependencies = [ "once_cell", "socket2", "tracing", - "windows-sys 0.60.2", + "windows-sys 0.59.0", ] [[package]] @@ -4477,7 +4453,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -4535,7 +4511,7 @@ dependencies = [ "security-framework", "security-framework-sys", "webpki-root-certs", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -5059,7 +5035,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]] @@ -5644,7 +5620,7 @@ dependencies = [ "getrandom 0.4.2", "once_cell", "rustix", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -7025,7 +7001,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]]