-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
65 lines (46 loc) · 1.12 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
PROJ = twyne
default: all
all: clean deps build lint test examples
auth:
@echo "Copy and paste the following in the terminal where you"
@echo "will be executing cargo commands:"
@echo
@echo ' eval $$(ssh-agent -s) && ssh-add'
@echo
build:
@cargo build
clean:
@cargo clean
@rm -f $(BIN_DIR)/$(PROJ)
clean-all: clean
@rm .crates.toml .crates2.json Cargo.lock
fresh-all: clean-all all
fresh: clean all
lint:
@cargo +nightly clippy --version
@cargo +nightly clippy --all-targets --all-features -- --no-deps -D clippy::all
cicd-lint:
@cargo clippy --version
@cargo clippy --all-targets --all-features -- --no-deps -D clippy::all
check:
@cargo deny check
@cargo +nightly udeps
test:
@RUST_BACKTRACE=1 cargo test
examples:
@cargo run --example=demo
deps:
@cargo update
publish:
@cargo publish
nightly:
@rustup toolchain install nightly
install-cargo-deny:
@echo ">> Installing cargo deny ..."
@cargo install --locked cargo-deny
setup-cargo-deny: install-cargo-deny
@echo ">> Setting up cargo deny ..."
@cargo deny init
install-udeps:
@echo ">> Setting up cargo udeps ..."
@cargo install cargo-udeps --locked