Files
comlexr/bacon.toml

84 lines
2.2 KiB
TOML

# This is a configuration file for the bacon tool
#
# Bacon repository: https://github.com/Canop/bacon
# Complete help on configuration: https://dystroy.org/bacon/config/
# You can also check bacon's own bacon.toml file
# as an example: https://github.com/Canop/bacon/blob/main/bacon.toml
default_job = "clippy-all"
[jobs.check]
command = ["cargo", "check", "--color", "always"]
need_stdout = false
default_watch = false
watch = ["src", "Cargo.toml"]
[jobs.check-all]
command = ["cargo", "check", "--all-features", "--color", "always"]
need_stdout = false
default_watch = false
watch = ["src", "Cargo.toml"]
[jobs.clippy]
command = [
"cargo", "clippy",
"--color", "always",
]
need_stdout = false
default_watch = false
watch = ["src", "Cargo.toml"]
[jobs.clippy-all]
command = [
"cargo", "clippy",
"--all-features",
"--color", "always",
]
need_stdout = false
default_watch = false
watch = ["src", "Cargo.toml"]
[jobs.test]
command = [
"cargo", "+nightly", "test", "--color", "always", "--workspace",
"--", "--color", "always",
]
env.RUSTFLAGS="-Zmacro-backtrace"
need_stdout = true
default_watch = false
watch = ["src", "Cargo.toml", "tests"]
[jobs.test-all]
command = [
"cargo", "+nightly", "test", "--all-features", "--color", "always", "--workspace",
"--", "--color", "always"
]
env.RUSTFLAGS="-Zmacro-backtrace"
need_stdout = true
default_watch = false
watch = ["src", "Cargo.toml", "tests"]
[jobs.doc]
command = ["cargo", "doc", "--color", "always", "--no-deps"]
need_stdout = false
default_watch = false
watch = ["src", "Cargo.toml"]
# If the doc compiles, then it opens in your browser and bacon switches
# to the previous job
[jobs.doc-open]
command = ["cargo", "doc", "--color", "always", "--no-deps", "--open"]
need_stdout = false
on_success = "back" # so that we don't open the browser at each change
# You may define here keybindings that would be specific to
# a project, for example a shortcut to launch a specific job.
# Shortcuts to internal functions (scrolling, toggling, etc.)
# should go in your personal global prefs.toml file instead.
[keybindings]
# alt-m = "job:my-job"
c = "job:clippy"
shift-c = "job:clippy-all" # comment this to have 'c' run clippy on only the default target
t = "job:test"
shift-t = "job:test-all"