You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's designed for minimal interaction so that you can just let it run, alongside your editor, and be notified of warnings, errors, or test failures in your Rust code.
Run this command too if you want to update bacon. Configuration has always been backward compatible so you won't lose anything.
Some features are disabled by default. You may enable them with
cargo install --features "clipboard sound"
check the current project
bacon
That's how you'll usually launch bacon, because other jobs like test, clippy, doc, your own ones, are just a key away: You'll hit c to see Clippy warnings, t for the tests, d to open the documentation, etc.
check another project
bacon --path ../broot
or
bacon ../broot
check all targets (tests, examples, benches, etc)
bacon --job check-all
When there's no ambiguity, you may omit the --job part:
bacon check-all
run clippy instead of cargo check
bacon clippy
This will run against all targets like check-all does.
run tests
bacon test
or bacon nextest if you're a nextest user.
When there's a failure, hit f to restrict the job to the failing test.
Hit esc to get back to all tests.
define your own jobs
First create a bacon.toml file by running
bacon --init
This file already contains some standard jobs. Add your own, for example