Skip to content

build(cargo): deny compiler and rustdoc warnings - #6

Closed
google-labs-stitch[bot] wants to merge 1 commit into
mainfrom
stitch/deny-warnings-cargo-config-jm1-75ce7541-cb37-47ad-bb70-f229b3dc459a
Closed

google-labs-stitch[bot] wants to merge 1 commit into
mainfrom
stitch/deny-warnings-cargo-config-jm1-75ce7541-cb37-47ad-bb70-f229b3dc459a

Conversation

@google-labs-stitch

Copy link
Copy Markdown
Contributor

Summary

  • Add .cargo/config.toml with -D warnings for rustc and rustdoc.
  • Keep .cargo/config.toml out of Cargo.toml so crates.io and docs.rs builds stay compatible with future compiler versions.
  • Add .cargo/config.toml to the repository map in AGENTS.md.
  • Document shell RUSTFLAGS and RUSTDOCFLAGS behavior in AGENTS.md.

Verification

  • Run cargo build --locked --release, cargo fmt --check, cargo clippy --locked --lib -- -D warnings and cargo doc --locked --no-deps.
  • Run cargo build, cargo clippy and cargo doc for wasm32-unknown-unknown with --features wasm.
  • Confirm cargo package --list excludes .cargo/config.toml.
  • Verify in an isolated copy that cargo build and cargo doc exit 0 on clean sources and exit 101 on unreachable_pub, rustdoc::bare_urls and rustdoc::invalid_html_tags warnings.

Automated PR initiated by user @byteland-app via Stitch Loop.

- Add .cargo/config.toml with -D warnings for rustc and rustdoc.
- Add .cargo/config.toml to the repository map in AGENTS.md.
- Document shell RUSTFLAGS and RUSTDOCFLAGS in AGENTS.md.
@byteland-app

Copy link
Copy Markdown
Contributor

Closing this PR. Setting -D warnings in .cargo/config.toml breaks local WIP development and causes build failures on future stable Rust upgrades (including release.yml). Warning denial belongs in CI and scripts (tracked in #131). This branch is also 21 commits behind main with no CI checks.

@byteland-app
byteland-app deleted the stitch/deny-warnings-cargo-config-jm1-75ce7541-cb37-47ad-bb70-f229b3dc459a branch November 25, 2026 08:07
@google-labs-stitch

Copy link
Copy Markdown
Contributor Author

Understood. This pull request remains closed with no further changes on this branch, because #131 tracks warning denial in CI and scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant