Skip to content

Add justfile #668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
default:
@just --list

# Cargo build everything.
build:
cargo build --all-targets --all-features

# Cargo check everything.
check:
cargo check --all-targets --all-features

# Lint everything.
lint:
cargo +nightly clippy --all-targets --all-features -- --deny warnings

# Run the formatter.
fmt:
cargo +nightly fmt

# Check the formatting.
fmt-check:
cargo +nightly fmt --check

# Run the benchmark suite.
bench:
RUSTFLAGS='--cfg=bench' cargo +nightly bench

# Build the docs (same as for docs.rs).
docsrs:
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly rustdoc --all-features -- -D rustdoc::broken-intra-doc-links

# Quick and dirty CI useful for pre-push checks.
sane: fmt-check lint
cargo test --quiet --all-targets --no-default-features --features > /dev/null || exit 1
cargo test --quiet --all-targets > /dev/null || exit 1
cargo test --quiet --all-targets --all-features > /dev/null || exit 1

# doctests don't get run from workspace root with `cargo test`.
cargo test --quiet --doc || exit 1
Loading