-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.mise.toml
59 lines (48 loc) · 1.65 KB
/
.mise.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
[tools]
rust = "1.83.0"
deno = "2.1.4"
[tasks.install]
description = "Install necessary dependencies for development"
run = [
"cargo install cargo-insta",
"cargo install cargo-expand",
"cargo install --locked samply",
]
[tasks.clean]
description = "Clean all build artefacts"
run = [
"cargo clean",
"rm ./tasks/generate-values/.*-cache.txt"
]
[tasks.build]
description = "Build all project files"
sources = ["Cargo.toml", "crates/**/*.toml", "crates/**/*.rs"]
outputs = ["target/debug/hdx"]
run = "cargo build --all-features"
[tasks.test]
description = "Run the test suite"
sources = ["Cargo.toml", "crates/**/*.toml", "crates/**/*.rs"]
run = "cargo test --all-features"
[tasks.bench]
description = "Run the benchmark suite"
run = "cargo bench --all-features"
[tasks.lint]
depends = ["install"]
description = "Lint all project files"
sources = ["Cargo.toml", "crates/**/*.toml", "crates/**/*.rs"]
run = [
"clippy --workspace --all-targets --all-features"
]
[tasks.doc]
description = "Generate library documentation"
sources = ["Cargo.toml", "crates/**/*.toml", "crates/**/*.rs"]
run = "cargo doc --all-features"
[tasks.generate-values]
description = "Run code generation to build all CSS style values"
sources = ["./tasks/generate-values/.*-cache.txt", "./tasks/generate-values/mod.ts", "crates/css_ast/src/values/**/*.rs"]
dir = "./tasks/generate-values/"
run = ["deno --allow-net --allow-read --allow-write mod.ts"]
[tasks.profile]
depends = ["install", "build --profile release-debug"]
description = "Run a given file in the profiler to analyse performance"
run = "samply record --rate=10000 ./target/release-debug/hdx build {{arg(name='css_file')}} --output /dev/null"