Repository navigation
build: deny warnings in .cargo/config.toml and CI - #132
Closed
google-labs-stitch[bot] wants to merge 1 commit into
Closed
google-labs-stitch[bot] wants to merge 1 commit into
google-labs-stitch[bot] wants to merge 1 commit into
Conversation
- Add .cargo/config.toml to set -D warnings for rustc and rustdoc - Set RUSTFLAGS="-D warnings" on cargo build in ci.yml - Add .cargo/config.toml to the repository map in AGENTS.md - Document shell RUSTFLAGS and RUSTDOCFLAGS overrides in AGENTS.md
Contributor
|
Closing this PR. Putting -D warnings in .cargo/config.toml disrupts local WIP builds and risks breaking future stable Rust builds in release.yml. Prefer script/CI-level warning flags as in #131. |
byteland-app
deleted the
stitch/deny-warnings-in-cargo-config-jm1-f22a0bf9-e8f6-4df9-bc3e-b5aad8de0efc
branch
November 25, 2026 08:03
Contributor
Author
|
Understood. This pull request remains closed with no further changes on this branch, because #131 tracks |
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.
Summary
This pull request adds
.cargo/config.tomlso workspacecargo build,cargo docandnpm run check:wasmfail with exit code101on compiler and rustdoc warnings without extra command flags. It keeps the crate lints insrc/lib.rsunchanged and keeps.cargo/config.tomlout of thecrates.iopackage anddocs.rsbuilds.Changes
.cargo/config.tomlwithrustflags = ["-D", "warnings"]andrustdocflags = ["-D", "warnings"]under[build].Cargo.toml(include,test = falseanddoctest = false),src/lib.rsand.github/workflows/release.ymlunchanged.RUSTFLAGS: "-D warnings"oncargo build --locked --releasein.github/workflows/ci.ymlto matchRUSTDOCFLAGS: "-D warnings"on the documentation and Wasm check steps..cargo/config.tomland theRUSTFLAGSandRUSTDOCFLAGSshell override rule inAGENTS.mdin ASD-STE100 style.Verification
.github/workflows/ci.ymland.github/workflows/release.ymlwithcheck-jsonschemaandactionlint.cargo fmt --check,cargo clippy --locked --lib -- -D warnings,cargo build --locked --release,cargo doc --locked --no-deps,npm ci,npm run check:wasmandnpm run verify:packacross Rust1.100.0and Rust1.99.1.cargo package --list --lockedexits0on cleanHEADand excludes.cargo/config.toml.unreachable_pub,rustdoc::bare_urlsandrustdoc::invalid_html_tagsprobe warnings exit101without extra flags.Automated PR initiated by user @byteland-app via Stitch Loop.