|
| 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 = "clippy" |
| 9 | + |
| 10 | +[jobs.check] |
| 11 | +command = ["cargo", "check", "--all-features", "--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 = ["cargo", "clippy", "--all-targets", "--all-features", "--color", "always"] |
| 20 | +need_stdout = false |
| 21 | + |
| 22 | +# This job lets you run |
| 23 | +# - all tests: bacon test |
| 24 | +# - a specific test: bacon test -- config::test_default_files |
| 25 | +# - the tests of a package: bacon test -- -- -p config |
| 26 | +[jobs.test] |
| 27 | +command = [ |
| 28 | + "cargo", |
| 29 | + "test", |
| 30 | + "--all-features", |
| 31 | + "--color", |
| 32 | + "always", |
| 33 | + "--", |
| 34 | + "--color", |
| 35 | + "always", # see https://github.com/Canop/bacon/issues/124 |
| 36 | +] |
| 37 | +need_stdout = true |
| 38 | + |
| 39 | +[jobs.doc] |
| 40 | +command = ["cargo", "doc", "--color", "always", "--no-deps"] |
| 41 | +need_stdout = false |
| 42 | + |
| 43 | +# If the doc compiles, then it opens in your browser and bacon switches |
| 44 | +# to the previous job |
| 45 | +[jobs.doc-open] |
| 46 | +command = ["cargo", "doc", "--color", "always", "--no-deps", "--open"] |
| 47 | +need_stdout = false |
| 48 | +on_success = "back" # so that we don't open the browser at each change |
| 49 | + |
| 50 | +# You can run your application and have the result displayed in bacon, |
| 51 | +# *if* it makes sense for this crate. |
| 52 | +# Don't forget the `--color always` part or the errors won't be |
| 53 | +# properly parsed. |
| 54 | +# If your program never stops (eg a server), you may set `background` |
| 55 | +# to false to have the cargo run output immediately displayed instead |
| 56 | +# of waiting for program's end. |
| 57 | +# [jobs.run] |
| 58 | +# command = [ |
| 59 | +# "cargo", |
| 60 | +# "run", |
| 61 | +# "--color", |
| 62 | +# "always", |
| 63 | +# # put launch parameters for your program behind a `--` separator |
| 64 | +# ] |
| 65 | +# need_stdout = true |
| 66 | +# allow_warnings = true |
| 67 | +# background = true |
| 68 | + |
| 69 | +# This parameterized job runs the example of your choice, as soon |
| 70 | +# as the code compiles. |
| 71 | +# Call it as |
| 72 | +# bacon ex -- my-example |
| 73 | +# [jobs.ex] |
| 74 | +# command = ["cargo", "run", "--color", "always", "--example"] |
| 75 | +# need_stdout = true |
| 76 | +# allow_warnings = true |
| 77 | + |
| 78 | +# You may define here keybindings that would be specific to |
| 79 | +# a project, for example a shortcut to launch a specific job. |
| 80 | +# Shortcuts to internal functions (scrolling, toggling, etc.) |
| 81 | +# should go in your personal global prefs.toml file instead. |
| 82 | +[keybindings] |
| 83 | +# alt-m = "job:my-job" |
0 commit comments