-
-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathmise.toml
More file actions
40 lines (32 loc) · 1.23 KB
/
mise.toml
File metadata and controls
40 lines (32 loc) · 1.23 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
[tasks.cli]
description = "Run a CLI command"
quiet = true
run = "cargo run --package slumber_cli --no-default-features"
[tasks.docs]
description = "Build and serve docs"
run = "mdbook serve docs/"
[tasks.favicon]
description = "Generate favicon for the site from the logo image"
run = "magick -background transparent $MISE_PROJECT_ROOT/static/slumber.png -define icon:auto-resize=64 $MISE_PROJECT_ROOT/docs/theme/favicon.png"
sources = ["docs/theme/favicon.png"]
[tasks.mdbook]
# .rs scripts don't support #MISE headers so task metadata is defined here
description = "Generate doc content from Rust code"
[tasks.rustdoc]
description = "Build Rust docs, checking for broken links"
env.RUSTDOCFLAGS = "-D warnings"
run = "cargo doc --no-deps --all-features --document-private-items --workspace"
[tasks.tui-profile]
description = "Run the TUI with samply for profiling"
env.CARGO_PROFILE_RELEASE_DEBUG = true # Include debug symbols
env.SLUMBER_DATA_DIRECTORY = "{{ env.PWD }}/data/" # Use local config/data dir
run = [
"cargo build --no-default-features --features=tui --bin=slumber --release",
"samply record ./target/release/slumber",
]
tools."cargo:samply" = "0.13.1"
[env]
RUST_BACKTRACE = 1
[tools]
mdbook = "0.5.1"
watchexec = "2.3.3"