-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathmakefile
More file actions
54 lines (41 loc) · 1.3 KB
/
Copy pathmakefile
File metadata and controls
54 lines (41 loc) · 1.3 KB
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
.PHONY: fmt lint test build publish docs codecov
fmt:
cargo fmt
lint:
cargo +stable clippy
test:
cargo +stable check
cargo +stable test --example=todo
cargo +stable test --example=snapshots --features yaml
cargo +stable test --example=websocket-ping-pong --features ws
cargo +stable test --example=websocket-chat --features ws
cargo +stable test --features all
cargo +stable test --lib --bins --tests
# Check minimum version works
cargo +1.89 check --features "all"
# Check nightly also works, see https://github.com/JosephLenton/axum-test/issues/133
cargo +nightly check --features all
# Check the various build variations work
cargo +stable check --no-default-features
cargo +stable check --features actix-web
cargo +stable check --features all
cargo +stable check --features pretty-assertions
cargo +stable check --features yaml
cargo +stable check --features msgpack
cargo +stable check --features reqwest
cargo +stable check --features typed-routing
cargo +stable check --features ws
cargo +stable check --features reqwest
cargo +stable clippy --features all
test-all:
cargo +stable test --features all
test-doc:
cargo +stable test --features all --doc
build:
cargo +stable build
publish: fmt lint test
cargo publish
docs:
cargo doc --open --features all
codecov:
cargo llvm-cov --open