|
| 1 | +# This is a configuration file for the bacon tool |
| 2 | +# |
| 3 | +# Bacon repository: https://github.com/Canop/bacon |
| 4 | +# Complete help on configuration: https://dystroy.org/bacon/config/ |
| 5 | +# You can also check bacon's own bacon.toml file |
| 6 | +# as an example: https://github.com/Canop/bacon/blob/main/bacon.toml |
| 7 | + |
| 8 | +default_job = "check" |
| 9 | + |
| 10 | +[jobs.check] |
| 11 | +command = ["cargo", "check", "--color", "always"] |
| 12 | +need_stdout = false |
| 13 | + |
| 14 | +[jobs.check-all] |
| 15 | +command = ["cargo", "check", "--all-targets", "--color", "always"] |
| 16 | +need_stdout = false |
| 17 | + |
| 18 | +[jobs.clippy] |
| 19 | +command = [ |
| 20 | + "cargo", "clippy", |
| 21 | + "--all-targets", |
| 22 | + "--color", "always", |
| 23 | + "--", |
| 24 | + "-A", "clippy::manual_range_contains", |
| 25 | + "-A", "clippy::match_like_matches_macro", |
| 26 | + "-A", "clippy::manual_clamp", |
| 27 | +] |
| 28 | +need_stdout = false |
| 29 | + |
| 30 | +[jobs.test] |
| 31 | +command = [ |
| 32 | + "cargo", "test", "--color", "always", |
| 33 | + "--", "--color", "always", # see https://github.com/Canop/bacon/issues/124 |
| 34 | +] |
| 35 | +need_stdout = true |
| 36 | + |
| 37 | +[jobs.doc] |
| 38 | +command = ["cargo", "doc", "--color", "always", "--no-deps"] |
| 39 | +need_stdout = false |
| 40 | + |
| 41 | +# If the doc compiles, then it opens in your browser and bacon switches |
| 42 | +# to the previous job |
| 43 | +[jobs.doc-open] |
| 44 | +command = ["cargo", "doc", "--color", "always", "--no-deps", "--open"] |
| 45 | +need_stdout = false |
| 46 | +on_success = "back" # so that we don't open the browser at each change |
| 47 | + |
| 48 | +# You can run your application and have the result displayed in bacon, |
| 49 | +# *if* it makes sense for this crate. You can run an example the same |
| 50 | +# way. Don't forget the `--color always` part or the errors won't be |
| 51 | +# properly parsed. |
| 52 | +[jobs.run] |
| 53 | +command = [ |
| 54 | + "cargo", "run", |
| 55 | + "--color", "always", |
| 56 | + # put launch parameters for your program behind a `--` separator |
| 57 | +] |
| 58 | +need_stdout = true |
| 59 | +allow_warnings = true |
| 60 | + |
| 61 | +# You may define here keybindings that would be specific to |
| 62 | +# a project, for example a shortcut to launch a specific job. |
| 63 | +# Shortcuts to internal functions (scrolling, toggling, etc.) |
| 64 | +# should go in your personal global prefs.toml file instead. |
| 65 | +[keybindings] |
| 66 | +# alt-m = "job:my-job" |
0 commit comments