diff options
| author | aur-build <aur-build@localhost> | 2026-11-23 14:14:42 +0000 |
|---|---|---|
| committer | aur-build <aur-build@localhost> | 2026-11-23 14:14:42 +0000 |
| commit | f67249b1705e0075b11b50dac50fd71ae5e163d9 (patch) | |
| tree | 9156e927c68461cd930398e709ee6ea704721bc0 /README.md | |
| parent | 6872e81644546a9ccd0e1420c3ef64a26358f78a (diff) | |
| download | aur-build-ai/main.tar.gz aur-build-ai/main.zip | |
release build,readme: the gate that only the release build can seeai/main
`--all-targets` pulls `test-support` in through the dev-dependency, so
every check so far compiled `ReleaseState`, `Writer` and `json_or` as
`pub`. Without that feature they are crate-internal, and the tree was
not clean there: a wildcard import had been expanded into names the
release build never compiles, and `ReleaseState::as_str` took a
reference to a one-byte Copy value that clippy only complains about
once the type is not exported.
Both imports are gated with the code that needs them, and the README
now lists the three commands that hold the shape — including the
release-mode clippy run that found this.
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -123,6 +123,22 @@ python3 tools/arch-census.py # the numbers; --list-dead names them, --budget python3 tools/arch-census.py --list-overwide # pub(crate) items wider than anything reaches ``` +Formatting and idiom are gates too, not opinions: + +``` +cargo fmt --all -- --check # rustfmt.toml: 120 columns, small items on one line +cargo clippy --all-targets --all-features -- -D warnings +cargo clippy --release --lib --bins -- -D warnings +``` + +`[lints.clippy]` in `Cargo.toml` names the idiom lints the tree holds itself to; +`must_use_candidate` and `missing_errors_doc` are left out on purpose, because +satisfying them would add doc-comment boilerplate rather than remove it. The +release-mode check is not a duplicate of the other: `--all-targets` pulls +`test-support` in through the dev-dependency, and an item that is `pub` under +that feature is `pub(crate)` without it — so only the release build sees what +clippy says about an item once it is crate-internal. + ## Testing without root, network, or a real chroot `cargo test` runs the whole thing on an ordinary user account. Two mechanisms |
