-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
64 lines (49 loc) · 1.04 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
.PHONY: audit-dependencies
audit-dependencies:
cargo audit
.PHONY: build
build:
cargo build
.PHONY: build-release
build-release:
cargo lint && cargo build --release
.PHONY: clippy
clippy:
cargo clippy --workspace --all-targets --all-features --examples --tests
.PHONY: check-all
check-all:
cargo fmt --all -- --check
cargo clippy --workspace --all-targets --all-features --examples --tests
cargo rustdoc --all-features -- -D warnings
cargo test --workspace --all-features
.PHONY: doc
doc:
cargo doc --all-features --open &
.PHONY: examples
examples:
cargo build --examples
.PHONY: test
test:
cargo test --lib
.PHONY: test-and-publish
test-and-publish:
cargo test --all-features && cargo publish
.PHONY: upgrade-check
upgrade-check:
cargo upgrade --workspace --dry-run
.PHONY: todo
todo:
@rg 'XXX|TODO|FIXME|todo!' examples src
# GitHub helpers using the official gh GitHub CLI
.PHONY: list-issues
list-issues:
gh issue list
.PHONY: list-prs
list-prs:
gh pr list
.PHONY: new-issue
new-issue:
gh issue create
.PHONY: pr
pr:
gh pr create