From dbafa176700673c31ad5a3b306aeb520b2258438 Mon Sep 17 00:00:00 2001 From: Xevion Date: Mon, 11 Aug 2025 15:25:53 -0500 Subject: [PATCH] chore: add bacon.toml config file --- bacon.toml | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 bacon.toml diff --git a/bacon.toml b/bacon.toml new file mode 100644 index 0000000..420531f --- /dev/null +++ b/bacon.toml @@ -0,0 +1,61 @@ +# This is a configuration file for the bacon tool +# +# Complete help on configuration: https://dystroy.org/bacon/config/ +# +# You may check the current default at +# https://github.com/Canop/bacon/blob/main/defaults/default-bacon.toml + +default_job = "check" +env.CARGO_TERM_COLOR = "always" + +[jobs.check] +command = ["cargo", "check"] +need_stdout = false + +[jobs.check-all] +command = ["cargo", "check", "--all-targets"] +need_stdout = false + +# Run clippy on the default target +[jobs.clippy] +command = ["cargo", "clippy"] +need_stdout = false + +# Run clippy on all targets +[jobs.clippy-all] +command = ["cargo", "clippy", "--all-targets"] +need_stdout = false + +[jobs.test] +command = [ + "cargo", "nextest", "run", + "--hide-progress-bar", "--failure-output", "final" +] +need_stdout = true +analyzer = "nextest" + +[jobs.doc] +command = ["cargo", "doc", "--no-deps"] +need_stdout = false + +# If the doc compiles, then it opens in your browser and bacon switches to the previous job +[jobs.doc-open] +command = ["cargo", "doc", "--no-deps", "--open"] +need_stdout = false +on_success = "back" # so that we don't open the browser at each change + +[jobs.run] +command = [ + "cargo", "run", +] +need_stdout = true +allow_warnings = true +background = false +on_change_strategy = "kill_then_restart" +# kill = ["pkill", "-TERM", "-P"]' + +[keybindings] +c = "job:clippy" +shift-c = "job:check" +ctrl-shift-c = "job:check-all" +ctrl-c = "job:clippy-all"