-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathjustfile
More file actions
42 lines (31 loc) · 1.19 KB
/
justfile
File metadata and controls
42 lines (31 loc) · 1.19 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
just := 'just' + ' --justfile=' + justfile()
_:
@{{ just }} --list
alias format := fmt
fmt *ARGS:
cargo +nightly fmt --all {{ ARGS }}
test *ARGS:
cargo test \
--features 'log native libsystemd multi-thread runtime-pattern serde serde_json sval' \
--features 'flexible-string source-location std-stream-captured' \
{{ ARGS }}
clippy *ARGS:
cargo clippy --all-features --tests --examples {{ ARGS }}
check *ARGS:
cargo check --all-features --tests --examples {{ ARGS }}
_doc-default-features *ARGS:
cargo +nightly doc \
--workspace --exclude spdlog-macros --exclude spdlog-internal \
-Z unstable-options -Z rustdoc-scrape-examples {{ ARGS }}
doc *ARGS:
@{{ just }} _doc-default-features --all-features {{ ARGS }}
bench *ARGS:
cargo +nightly bench --features 'multi-thread runtime-pattern serde_json log' {{ ARGS }}
[private]
publish crate-name *ARGS:
cargo clean
cargo package --package {{ crate-name }}
@{{ just }} _publish-confirmed {{ crate-name }} {{ ARGS }}
[confirm("Please check 'target/package' directory, keep going? (y/N)")]
_publish-confirmed crate-name *ARGS:
cargo publish --package {{ crate-name }} {{ ARGS }}