···11+# This is a configuration file for the bacon tool
22+#
33+# Complete help on configuration: https://dystroy.org/bacon/config/
44+#
55+# You may check the current default at
66+# https://github.com/Canop/bacon/blob/main/defaults/default-bacon.toml
77+88+default_job = "check"
99+env.CARGO_TERM_COLOR = "always"
1010+1111+[jobs.check]
1212+command = ["cargo", "check"]
1313+need_stdout = false
1414+1515+[jobs.check-all]
1616+command = ["cargo", "check", "--all-targets"]
1717+need_stdout = false
1818+1919+# Run clippy on the default target
2020+[jobs.clippy]
2121+command = ["cargo", "clippy"]
2222+need_stdout = false
2323+2424+# Run clippy on all targets
2525+# To disable some lints, you may change the job this way:
2626+# [jobs.clippy-all]
2727+# command = [
2828+# "cargo", "clippy",
2929+# "--all-targets",
3030+# "--",
3131+# "-A", "clippy::bool_to_int_with_if",
3232+# "-A", "clippy::collapsible_if",
3333+# "-A", "clippy::derive_partial_eq_without_eq",
3434+# ]
3535+# need_stdout = false
3636+[jobs.clippy-all]
3737+command = ["cargo", "clippy", "--all-targets"]
3838+need_stdout = false
3939+4040+# This job lets you run
4141+# - all tests: bacon test
4242+# - a specific test: bacon test -- config::test_default_files
4343+# - the tests of a package: bacon test -- -- -p config
4444+[jobs.test]
4545+command = ["cargo", "test"]
4646+need_stdout = true
4747+4848+[jobs.nextest]
4949+command = [
5050+ "cargo", "nextest", "run",
5151+ "--hide-progress-bar", "--failure-output", "final"
5252+]
5353+need_stdout = true
5454+analyzer = "nextest"
5555+5656+[jobs.doc]
5757+command = ["cargo", "doc", "--no-deps"]
5858+need_stdout = false
5959+6060+# If the doc compiles, then it opens in your browser and bacon switches
6161+# to the previous job
6262+[jobs.doc-open]
6363+command = ["cargo", "doc", "--no-deps", "--open"]
6464+need_stdout = false
6565+on_success = "back" # so that we don't open the browser at each change
6666+6767+# You can run your application and have the result displayed in bacon,
6868+# if it makes sense for this crate.
6969+[jobs.run]
7070+command = [
7171+ "cargo", "run",
7272+ # put launch parameters for your program behind a `--` separator
7373+]
7474+need_stdout = true
7575+allow_warnings = true
7676+background = true
7777+7878+# Run your long-running application (eg server) and have the result displayed in bacon.
7979+# For programs that never stop (eg a server), `background` is set to false
8080+# to have the cargo run output immediately displayed instead of waiting for
8181+# program's end.
8282+# 'on_change_strategy' is set to `kill_then_restart` to have your program restart
8383+# on every change (an alternative would be to use the 'F5' key manually in bacon).
8484+# If you often use this job, it makes sense to override the 'r' key by adding
8585+# a binding `r = job:run-long` at the end of this file .
8686+# A custom kill command such as the one suggested below is frequently needed to kill
8787+# long running programs (uncomment it if you need it)
8888+[jobs.run-long]
8989+command = [
9090+ "cargo", "run",
9191+ # put launch parameters for your program behind a `--` separator
9292+]
9393+need_stdout = true
9494+allow_warnings = true
9595+background = false
9696+on_change_strategy = "kill_then_restart"
9797+# kill = ["pkill", "-TERM", "-P"]
9898+9999+# This parameterized job runs the example of your choice, as soon
100100+# as the code compiles.
101101+# Call it as
102102+# bacon ex -- my-example
103103+[jobs.ex]
104104+command = ["cargo", "test", "--example"]
105105+need_stdout = true
106106+allow_warnings = true
107107+108108+# You may define here keybindings that would be specific to
109109+# a project, for example a shortcut to launch a specific job.
110110+# Shortcuts to internal functions (scrolling, toggling, etc.)
111111+# should go in your personal global prefs.toml file instead.
112112+[keybindings]
113113+# alt-m = "job:my-job"
114114+c = "job:clippy-all" # comment this to have 'c' run clippy on only the default target