Improve minimal-versions handling and rustdoc

This commit is contained in:
2026-08-05 22:59:14 -06:00
parent 1fd50b061d
commit c60153212f
4 changed files with 67 additions and 346 deletions
+15 -13
View File
@@ -10,32 +10,34 @@ all-min: update-min build lint test example doc format
all-max: update-max build lint test example doc format
update-min:
cargo +nightly update -Z minimal-versions
cargo update -p is_terminal_polyfill --precise 1.48.2
cargo +nightly update -Z direct-minimal-versions
update-max:
cargo update
cargo update
build:
cargo hack --feature-powerset build
cargo hack --feature-powerset build
lint:
cargo hack --feature-powerset clippy -- -D warnings
cargo hack --feature-powerset clippy --tests -- -D warnings
cargo hack --feature-powerset clippy -- -D warnings
cargo hack --feature-powerset clippy --tests -- -D warnings
test:
cargo hack --feature-powerset test
cargo +1.85 hack --feature-powerset test
cargo +nightly hack --feature-powerset miri test
cargo hack --feature-powerset test
cargo +1.85 hack --feature-powerset test
cargo +nightly hack --feature-powerset miri test
example:
# cargo run --example=<example> --features=<req_features>
# cargo run --example=<example> --features=<req_features>
doc *args:
RUSTDOCFLAGS="--cfg docsrs -D warnings" cargo +nightly doc --all-features {{ args }}
RUSTDOCFLAGS="--cfg docsrs -D warnings" cargo +nightly doc \
--workspace --all-features --document-private-items \
--lib --bins --no-deps --locked \
{{ args }}
format:
cargo fmt --check
cargo fmt --check
install:
cargo install --path crates/lint-policy-cli
cargo install --path crates/lint-policy-cli