forked from holochain/kitsune2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.toml
More file actions
117 lines (95 loc) · 2.32 KB
/
Makefile.toml
File metadata and controls
117 lines (95 loc) · 2.32 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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#
# Static checks
#
[tasks.format-check]
workspace = false
command = "cargo"
args = ["fmt", "--", "--check"]
[tasks.clippy]
command = "cargo"
args = ["clippy", "--all-targets", "--", "--deny=warnings"]
[tasks.format-toml-check]
description = "Check that all TOML files are formatted correctly"
workspace = false
dependencies = ["install-taplo"]
command = "taplo"
args = ["format", "--check"]
[tasks.doc-check]
description = "Check documetation generation, similarly to how docs.rs will do it"
command = "cargo"
args = ["+nightly", "doc", "--all-features", "--no-deps"]
env = { RUSTDOCFLAGS = "--cfg docsrs --deny=warnings" }
install_crate = false
#
# Tests
#
[tasks.test]
command = "cargo"
args = ["test"]
[tasks.test-go-pion]
command = "cargo"
args = [
"test",
"--package",
"kitsune2_transport_tx5",
"--package",
"kitsune2",
"--no-default-features",
"--features",
"backend-go-pion",
"--",
"--nocapture",
]
#
# Tasks that modify content and are not run on CI
#
[tasks.format]
workspace = false
command = "cargo"
args = ["fmt"]
[tasks.proto]
workspace = false
command = "cargo"
args = ["run", "--package", "tool_proto_build"]
cwd = "crates/tool_proto_build"
[tasks.format-toml]
workspace = false
dependencies = ["install-taplo"]
command = "taplo"
args = ["format"]
#
# Helper tasks
#
[tasks.static]
description = "Run all static checks"
dependencies = ["format-toml-check", "format-check", "clippy", "doc-check"]
[tasks.verify]
description = "Run all static checks and tests"
dependencies = ["static", "test", "test-go-pion"]
[tasks.fix]
description = "Run all tasks to format, generate and tidy"
workspace = false
dependencies = ["format", "proto", "format-toml"]
[tasks.default]
alias = "verify"
#
# Other
#
[tasks.install-taplo]
workspace = false
description = "Install taplo-cli"
install_crate = { crate_name = "taplo-cli", version = "0.9.3", binary = "taplo", test_arg = "--help" }
[env]
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
[config]
# Require at least this cargo-make version
min_version = "0.37.23"
#
# Improve performance by disabling features we don't need
#
# Skip loading of all core tasks which saves up a bit on toml parsing and task creation
skip_core_tasks = true
# Skips loading Git related environment variables
skip_git_env_info = true
# Skips loading rust related environment variables
skip_rust_env_info = true