Repository navigation
Conversation
- notarization_wasm: drop a redundant `to_string()` inside `anyhow!` (clippy::to_string_in_format_args). - notarization_wasm, audit_trail_wasm: rename the Rust method behind `Data.toString` from `to_string` to `to_text` (clippy::inherent_to_string). The `js_name = toString` attribute keeps the JS/TS API and the wasm export symbol unchanged. - audit_trail_wasm `types`, poi_wasm `proof`: allow clippy::clone_on_copy at module level. `#[wasm_bindgen(getter_with_clone)]` generates `Clone::clone` getters for `Copy` fields as sibling items, so an allow on the struct does not reach them.
- Update the affected crates within their semver range: libz-sys 1.1.33, pulldown-cmark 0.13.6, quinn-proto 0.11.19, quinn-udp 0.5.16, rustls 0.23.46, rustls-webpki 0.103.17, webpki-root-certs and webpki-roots 1.0.12, zstd 0.13.5, zstd-safe 7.4.1, zstd-sys 2.1.3. - Update libsodium-sys-stable to 1.24.6, which moves its build-time zip dependency from 8.6 to 9.7 (zip advisories are fixed only in 9.x). - Ignore RUSTSEC-2026-0387 (crypto-bigint 0.5 timing side channels): fixed only in 0.7.6+, pulled in through elliptic-curve 0.13 by fastcrypto and iota-sdk-crypto without a patched release. iota and iota-rust-sdk ignore it as well. Fixes #346, #347, #348, #349, #351, #352, #353, #354 Refs #350
6 tasks done
eike-hass
marked this pull request as ready for review
November 19, 2026 17:53
Since Rust 1.100 the Windows build-and-test job fails in "Build with default features" (scheduled runs on main since 2026-11-17, and PR runs): sccache: caused by: The filename or extension is too long. (os error 206) error: could not compile `iota-network-stack` (lib) Cargo 1.100 passes one `-L dependency=<build-dir>\<crate>\<hash>\out` path per dependency. For iota-network-stack that is 718 paths, about 41,000 characters, above the Windows limit of 32,767. Cargo hands the arguments to the wrapper as an argfile, but sccache spawns rustc with the expanded list (mozilla/sccache#3053). Without the wrapper, rustc reads the argfile itself. Set RUSTC_WRAPPER only on Linux and macOS, and skip the sccache install, cache and stop steps on Windows. Cargo and target caches stay enabled.
Since Rust 1.100 (ubuntu image 20261116) the Format job fails: Error: regex parse error: ... error: unrecognized escape sequence Cargo 1.100 makes `cargo install` use the packaged Cargo.lock by default (rust-lang/cargo#17388), and `--locked` is now a no-op. The lockfile in cargo-license-template 0.1.3 (2022) pins regex 1.5.6, which rejects the `\/` escape in .license_template, and a cargo_metadata that rejects edition 2024 manifests. Before Rust 1.100 the install resolved regex 1.13. Download the crate, drop its Cargo.lock and install from the path, so the dependencies resolve as before. Verified with cargo 1.100: the default install reproduces the failure, this install passes the license check.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of change
CI on
mainfails for four reasons outside this repository, all from Rust 1.100 or new advisories. This PR restores theclippy,audit,formatand Windowsbuild-and-testjobs without changing behaviour.Clippy, Rust 1.100.0 (2026-11-09). New lints fail the Wasm bindings with
-D warnings: 2 in notarization_wasm, 41 in audit_trail_wasm, 2 in poi_wasm. Only the poi_wasm step runs in CI today (the other two steps haveif: ${{ false }}), but all three are fixed:to_string()insideanyhow!(to_string_in_format_args).Data.toStringfromto_stringtoto_text(inherent_to_string).js_name = toStringkeeps the JS/TS API and the Wasm export unchanged.types, poi_wasmproof: allowclippy::clone_on_copyat module level.#[wasm_bindgen(getter_with_clone)]generates theCopy-field getters as sibling items, so anallowon the struct does not reach them.Audit, new RustSec advisories.
cargo auditreports 29 vulnerabilities inCargo.lock. All but one are fixed by semver-compatible updates:cargo update -pfor the affected versions: libz-sys 1.1.33, pulldown-cmark 0.13.6, quinn-proto 0.11.19, quinn-udp 0.5.16, rustls 0.23.46, rustls-webpki 0.103.17, webpki-root-certs and webpki-roots 1.0.12, zstd 0.13.5, zstd-safe 7.4.1, zstd-sys 2.1.3.zipdependency from 8.6 (8 advisories, fixed only in 9.x) to 9.7..cargo/audit.toml. It is fixed only in 0.7.6+ and comes in through elliptic-curve 0.13 (fastcrypto, iota-sdk-crypto), which has no patched release. It affects client-side secp256k1 and secp256r1 signing. iota and iota-rust-sdk ignore it as well (chore: ignore RUSTSEC-2026-0387 (crypto-bigint) in cargo deny iota-rust-sdk#1741).Windows build, Rust 1.100.0.
build-and-test (windows-latest)fails in "Build with default features" withThe filename or extension is too long. (os error 206)while compilingiota-network-stack(scheduled runs onmainsince 2026-11-17, and this PR). Cargo 1.100 passes one-L dependency=<build-dir>\<crate>\<hash>\outpath per dependency: 718 foriota-network-stack, about 41,000 characters, above the Windows limit of 32,767. Cargo hands the arguments to the wrapper as an argfile, but sccache startsrustcwith the expanded list (mozilla/sccache#3053). The Windows job now builds without sccache. Linux and macOS keep it, and the cargo and target caches stay enabled on all three.Format, cargo 1.100. The
cargo-license-template checkstep fails withregex parse error: ... unrecognized escape sequence(since the ubuntu image 20261116 ships Rust 1.100). Cargo 1.100 makescargo installuse the packagedCargo.lockby default (rust-lang/cargo#17388), and--lockedis now a no-op. The lockfile in cargo-license-template 0.1.3 (2022) pins regex 1.5.6, which rejects the\/escape in.license_template, and a cargo_metadata that rejects edition 2024 manifests. The workflow now downloads the crate, drops itsCargo.lockand installs from the path, so the dependencies resolve as before (regex 1.13).Links to any relevant issues
ZipArchive::extractcreates symbolic links whose attacker-controlled targets are outside the destination directory #348, RUSTSEC-2026-0429: zip:ZipArchive::extractaborts the process on a symlink entry with a large declared size #354 (zip), RUSTSEC-2026-0383: Bundled root certificates allow trust in distrusted emSign intermediates #349 (webpki-root-certs), RUSTSEC-2026-0391: Data from an abandoned stream leaks into the next stream on a reused context #351, RUSTSEC-2026-0398:Seekable::decompresssets aVeclength beyond its capacity for offsets past the end #352, RUSTSEC-2026-0403: Uninitialized memory exposed when streaming decompression of a legacy frame fails #353 (zstd).cargo installuses the packaged lockfile).clippyandauditjobs on chore: bump iota to v1.35.2 and iota-rust-sdk to 1.0.0-rc.2 #355 and chore(poi): make poi-rs its own workspace on iota v1.35.2 #356.Type of change
How the change has been tested
clippy.ymlon Rust 1.100.0 with-D warnings:mainfails (2, 41 and 2 errors in the bindings), this branch passes all four.--typescript --weak-refs --target nodejs) is identical tomain, and thedata_toStringexport is still present.cargo auditwith the repository's.cargo/audit.toml: 0 vulnerabilities. Informational warnings (unmaintained or yanked crates), which do not fail the job, drop from 33 to 23.cargo test --workspace -- --test-threads=1against an iota v1.35.2 localnet: 214 tests pass, including the Single Notarization and Audit Trails e2e suites.cargo +nightly fmt --all -- --checkfor the root and each binding, anddprint check.cargo install cargo-license-templatereproduces the regex error, and the install step of this PR, run as written, installs a binary that passescargo license-template --template .license_template --ignore .license_template_ignoreon this branch.Change checklist