-
Notifications
You must be signed in to change notification settings - Fork 88
/
Makefile
75 lines (58 loc) · 1.27 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
66
67
68
69
70
71
72
73
74
75
.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: format
format:
cargo fmt
.PHONY: run-embeded
run-embeded:
@cargo build --examples && ./scripts/xephyr.sh
.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 'TODO|FIXME|todo!' crates examples src
.PHONY: docs
docs:
@mdbook build docs && cargo doc --workspace --no-deps && cp -r target/doc docs/book/rustdoc
# 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