84 lines
2.4 KiB
TOML
84 lines
2.4 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", "macro"]
|
|
|
|
[jobs.check-all]
|
|
command = ["cargo", "check", "--all-features", "--color", "always"]
|
|
need_stdout = false
|
|
default_watch = false
|
|
watch = ["src", "Cargo.toml", "macro"]
|
|
|
|
[jobs.clippy]
|
|
command = [
|
|
"cargo", "clippy", "--workspace",
|
|
"--color", "always",
|
|
]
|
|
need_stdout = false
|
|
default_watch = false
|
|
watch = ["src", "Cargo.toml", "macro"]
|
|
|
|
[jobs.clippy-all]
|
|
command = [
|
|
"cargo", "clippy", "--workspace",
|
|
"--all-features",
|
|
"--color", "always",
|
|
]
|
|
need_stdout = false
|
|
default_watch = false
|
|
watch = ["src", "Cargo.toml", "macro"]
|
|
|
|
[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", "README.md", "macro"]
|
|
|
|
[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", "README.md", "macro"]
|
|
|
|
[jobs.doc]
|
|
command = ["cargo", "doc", "--color", "always", "--no-deps", "--workspace", "--all-features"]
|
|
need_stdout = false
|
|
default_watch = false
|
|
watch = ["src", "Cargo.toml", "macro"]
|
|
|
|
# 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", "--workspace", "--all-features"]
|
|
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"
|