Skip to content

Commit f60f37c

Browse files
committed
chore: Migrate to just from cargo-make
1 parent 6e90e8d commit f60f37c

File tree

3 files changed

+53
-93
lines changed

3 files changed

+53
-93
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ Cargo.lock
1313

1414
# macOS
1515
.DS_Store
16+
17+
# Fuwn/justfiles
18+
*.just

Makefile.toml

Lines changed: 0 additions & 93 deletions
This file was deleted.

justfile

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import? 'cargo.just'
2+
3+
set allow-duplicate-recipes := true
4+
5+
default-features := "--features=logger,auto-deduce-mime,response-macros,"
6+
7+
default:
8+
@just --list
9+
10+
fetch:
11+
curl https://raw.githubusercontent.com/Fuwn/justfiles/refs/heads/main/cargo.just > cargo.just
12+
13+
fmt:
14+
cargo +nightly fmt
15+
16+
[private]
17+
generic-task task async-feature:
18+
cargo +nightly {{ task }} --no-default-features \
19+
{{ default-features }}{{ async-feature }}
20+
21+
check async-feature:
22+
@just generic-task check {{ async-feature }}
23+
24+
clippy async-feature:
25+
@just generic-task clippy {{ async-feature }}
26+
27+
test async-feature:
28+
@just generic-task test {{ async-feature }}
29+
30+
checkf:
31+
@just fmt
32+
@just check tokio
33+
@just check async-std
34+
35+
checkfc:
36+
@just checkf
37+
@just clippy tokio
38+
@just clippy async-std
39+
40+
docs:
41+
cargo +nightly doc --open --no-deps
42+
43+
example example async-feature="tokio":
44+
cargo run --example {{ example }} --no-default-features \
45+
{{ default-features }}{{ async-feature }}
46+
47+
gen-key:
48+
openssl req -new -subj /CN=localhost -x509 -newkey ec -pkeyopt \
49+
ec_paramgen_curve:prime256v1 -days 365 -nodes -out windmark_public.pem \
50+
-keyout windmark_private.pem -inform pem

0 commit comments

Comments
 (0)