Skip to content
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
11 changes: 11 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ alias c := check
alias cc := code-coverage
alias ci := continues-integration
alias d := doc
alias fmt := format
alias l := lint
alias la := lint-all-features
alias ld := lint-default
Expand Down Expand Up @@ -39,6 +40,14 @@ build:
check:
cargo check --all-targets --all-features

# format the code using rustfmt
format *options:
cargo +nightly fmt --all {{ options }}

# check all code is formatted
check-format:
just format --check

# linting code using Clippy
lint:
just lint-all-features
Expand Down Expand Up @@ -105,6 +114,7 @@ clean:

# generate docs (but don't open it)

# generate the api docs
[env("RUSTDOCFLAGS", "--cfg docsrs")]
build-docs *options:
cargo +nightly doc --all-features --no-deps {{ options }}
Expand All @@ -124,6 +134,7 @@ check-msrv: setup-msrv
# performs continues integration (CI) like tasks on the local machine
[env("RUSTFLAGS", "-D warnings")]
continues-integration:
just check-format
just check-msrv
just lint
just test
Expand Down
Loading