-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
51 lines (40 loc) · 1.07 KB
/
justfile
File metadata and controls
51 lines (40 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# List available recipes
help:
just -l
# Build all targets in debug mode
@build:
cargo build --release --all-targets
# Build all targets in release mode
@release:
cargo build --release --all-targets
# Build documentation for all crates
@doc *FLAGS:
cargo doc --release --no-deps --workspace {{FLAGS}}
# Run the same checks we run in CI
@ci: test
cargo clippy
cargo fmt --check
cargo deny check licenses
# Get security advisories from cargo-deny
@security:
cargo deny check advisories
# Run tests with nextest
@test:
cargo nextest run --all-targets
# Lint and automatically fix what we can fix
@lint:
cargo clippy --fix --allow-dirty --allow-staged
cargo fmt
# Install required linting/testing tools via cargo.
@install-tools:
cargo install cargo-nextest
cargo install cargo-deny
# Check for unused dependencies.
check-unused:
cargo +nightly udeps --all
# Install into your PATH
@install:
cargo install --path .
# Uninstall into your PATH
@uninstall:
cargo uninstall $(cat Cargo.toml|grep ^name\ =|head -n1|cut -d'"' -f2)