-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (27 loc) · 794 Bytes
/
Makefile
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
build:
@nix-shell --run 'cargo build --color=always' 2>&1 | $(PAGER)
verbose-build:
@nix-shell --run 'cargo build --verbose --color=always' 2>&1 | $(PAGER)
release-build:
@nix-shell --run 'cargo build --release --color=always' 2>&1 | $(PAGER)
check:
@nix-shell --run 'cargo check --color=always' 2>&1 | $(PAGER)
test:
@nix-shell --run 'cargo test --color=always' 2>&1 | $(PAGER)
clippy:
@nix-shell --run 'cargo clippy --color=always' 2>&1 | $(PAGER)
docs:
@nix-shell --run 'cargo doc --no-deps --all-features'
view-docs:
@nix-shell --run '\
BROWSER=chromium-browser \
cargo doc --no-deps --all-features --open \
'
clean:
@nix-shell --run 'cargo clean'
publish:
@nix-shell --run 'cargo test && cargo publish'
fmt:
@nix-shell --run 'cargo-fmt'
shell:
@nix-shell