Repository navigation
fix(ci): lint every workspace member, and fix the wasm clippy failure it was hiding - #2962
Merged
Merged
Conversation
… it was hiding The Check, Clippy and Documentation jobs ran cargo without --workspace, so they acted on default-members only, which leaves out rustledger-wasm, rustledger-ffi-wasi, rustledger-ffi-component and rustledger-ffi-component-tests. All four build on the host target, so --workspace needs no extra target or feature set. That gap let #2952 land a redundant_pub_crate failure in rustledger-wasm (pub(crate) load_errors_to_errors inside the private api module). Make it pub; the module stays private, so visibility is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
📊 Benchmark Results
vs base, measured in this run
A difference counts only when it clears the combined spread of the two measurements, per shape (2σ: What do these numbers mean?
|
Contributor
✅ Compatibility Test Results
What's tested
Full results available in workflow artifacts |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
robcohen
added a commit
that referenced
this pull request
Nov 12, 2026
Conflict in crates/rustledger-wasm/src/api.rs: main made load_errors_to_errors pub; this branch had added its doc comment. Kept both. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
What
crates/rustledger-wasm/src/api.rs:load_errors_to_errorsgoes frompub(crate)topub. Theapimodule is private, so it stays crate-visible; this only silences clippy'sredundant_pub_crate..github/workflows/ci.yml: theCheck,ClippyandDocumentationmatrix entries now pass--workspace.Why
Without
--workspace, cargo acts ondefault-membersonly. The rootCargo.tomlleavesrustledger-wasm,rustledger-ffi-wasi,rustledger-ffi-componentandrustledger-ffi-component-testsout ofdefault-members(its comment says "requires wasm32 target"), so CI never linted them. That is how #2952 landed aredundant_pub_cratefailure: on main,cargo clippy -p rustledger-wasm --all-features --all-targets -- -D warningsfails atapi.rs:31.The
default-membersexclusion is not a host-build restriction: all four crates build, lint and document on x86_64 with--all-features(rustledger-wasmgates its wasm-only deps oncfg(target_arch = "wasm32")and its host-onlyts-rs/schemarson the inverse;rustledger-ffi-componentis a plain cdylib that also builds for the host). So a plain--workspaceis enough; no per-crate step or special target is needed. MSRV (quality.yml),Documentation (private items)and the pre-pushcargo-checkhook already used--workspace.How tested
Locally, on this branch:
cargo fmt --all --checkcargo clippy --workspace --all-features --all-targets -- -D warnings(the new CI command): passescargo check --workspace --all-features --all-targets(the new Check command): passesRUSTDOCFLAGS=-Dwarnings cargo doc --workspace --no-depsandRUSTDOCFLAGS=-Dwarnings cargo doc --workspace --all-features --no-deps(the new Documentation command): passcargo test -p rustledger-wasm --all-features: passesOther jobs with the same
default-membersgap (not changed here)ci.ymlTest:cargo nextest run --all-featuresruns no tests of the four excluded crates. Not a one-flag fix: under--all-features,rustledger-wasm'sts-export/json-schematests regenerate binding files, and its wasm-bindgen tests need checking on the host runner, so it deserves its own PR. (rustledger-ffi-component-testsis already run by theComponent Parity (wasip2)job.)ci.ymlDoctests:cargo test --doc --all-featuresskips doctests of the four excluded crates.ci.ymlBenchmarks Compile already uses--workspace; no gap.🤖 Generated with Claude Code