-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (26 loc) · 717 Bytes
/
Makefile
File metadata and controls
37 lines (26 loc) · 717 Bytes
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
CLIPPY_OPTIONS="-D warnings"
.PHONY: fmt-check fmt check lock clippy test doc build register install clean
DEFAULT: fmt-check check lock clippy test
fmt-check:
cargo fmt --all --verbose -- --check --verbose
fmt:
cargo fmt --all --verbose
check:
cargo check --workspace --lib --tests
lock: check
./.github/workflows/scripts/check-cargo-lock.sh
clippy:
cargo clippy --workspace -- "${CLIPPY_OPTIONS}"
test:
cargo test --workspace
doc:
cargo doc --document-private-items --no-deps --open
build:
cargo build --release
register:
nu --commands "register target/release/nu_plugin_explore"
install:
cargo install --path .
nu --commands "register ${CARGO_HOME}/bin/nu_plugin_explore"
clean:
cargo clean