-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.toml
82 lines (70 loc) · 1.52 KB
/
Makefile.toml
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
76
77
78
79
80
81
82
[config]
default_to_workspace = false
[tasks.fmt]
args = ["fmt"]
command = "cargo"
toolchain = "nightly"
[tasks.check]
args = ["check", "--no-default-features", "--features", "logger,auto-deduce-mime,response-macros,${@}"]
command = "cargo"
toolchain = "nightly"
[tasks.clippy]
args = ["clippy", "--no-default-features", "--features", "logger,auto-deduce-mime,response-macros,${@}"]
command = "cargo"
toolchain = "nightly"
[tasks.test]
args = ["test", "--no-default-features", "--features", "logger,auto-deduce-mime,response-macros,${@}"]
command = "cargo"
toolchain = "1.68.2"
[tasks.checkf]
script = '''
#!@shell
cargo make fmt
cargo make check tokio
cargo make check async-std
'''
[tasks.checkfc]
script = '''
#!@shell
cargo make fmt
cargo make check tokio
cargo make check async-std
cargo make clippy tokio
cargo make clippy async-std
'''
[tasks.genkey]
command = "openssl"
args = [
"req",
"-new",
"-subj",
"/CN=localhost",
"-x509",
"-newkey",
"ec",
"-pkeyopt",
"ec_paramgen_curve:prime256v1",
"-days",
"365",
"-nodes",
"-out",
"windmark_public.pem",
"-keyout",
"windmark_private.pem",
"-inform",
"pem",
]
[tasks.docs]
workspace = false
toolchain = "nightly"
command = "cargo"
args = ["doc", "--open", "--no-deps"]
[tasks.example]
script = '''
#!@duckscript
if is_empty ${2}
exec cargo run --example ${1} --no-default-features --features logger,auto-deduce-mime,response-macros,tokio
else
exec cargo run --example ${1} --no-default-features --features logger,auto-deduce-mime,response-macros,${2}
end
'''