aboutsummaryrefslogtreecommitdiff
path: root/Makefile.toml
blob: 02aed6119ba61edb5a384dc768f40a005ead4477 (plain) (blame)
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
[config]
default_to_workspace = false

[env]
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true

[tasks.fmt]
args = ["fmt"]
command = "cargo"
# toolchain = "nightly"
workspace = true

[tasks.check]
args = ["check", "--all-features"]
command = "cargo"

[tasks.clippy]
args = ["clippy", "--all-features"]
command = "cargo"

[tasks.checkf]
dependencies = ["fmt", "check"]

[tasks.checkfc]
dependencies = ["fmt", "check", "clippy"]

[tasks.genkey]
command = "openssl"
args = [
  "req",
  "-new",
  "-subj",
  "/CN=fuwn.me",
  "-x509",
  "-newkey",
  "ec",
  "-pkeyopt",
  "ec_paramgen_curve:prime256v1",
  "-days",
  "365",
  "-nodes",
  "-out",
  ".locus/locus_public.pem",
  "-keyout",
  ".locus/locus_private.pem",
  "-inform",
  "pem",
]

[tasks.run]
dependencies = ["checkfc"]
command = "cargo"
args = ["run", "--", "{@}"]

[tasks.clean-mac]
command = "find"
args = ["./content", "-name", "*.DS_Store", "-delete"]