40 releases (22 stable)

Uses new Rust 2021

2.2.1 Jun 7, 2022
2.1.0 Mar 26, 2022
1.2.5 Jan 29, 2022
1.2.4 Nov 27, 2021
0.6.0 Nov 15, 2020

#52 in Development tools

Download history 77/week @ 2022-03-09 169/week @ 2022-03-16 251/week @ 2022-03-23 72/week @ 2022-03-30 65/week @ 2022-04-06 45/week @ 2022-04-13 60/week @ 2022-04-20 164/week @ 2022-04-27 288/week @ 2022-05-04 722/week @ 2022-05-11 243/week @ 2022-05-18 246/week @ 2022-05-25 398/week @ 2022-06-01 277/week @ 2022-06-08 70/week @ 2022-06-15 64/week @ 2022-06-22

817 downloads per month




Latest Version Chat on Miaou

bacon is a background rust code checker.

It's designed for minimal interaction so that you can just let it running, side to your editor, and be notified of warnings and errors in your Rust code.



The bacon website is a complete guide.

Below is a short overview.

check the current project


check another project

bacon --path ../broot


bacon ../broot

check all targets (tests, examples, benches, etc)

bacon --job check-all

When there's no ambiguity, you may ommit the --job part:

bacon check-all

run clippy instead of cargo check

bacon clippy

or, if you want it to run against all targets (tests, examples, benches etc):

bacon clippy-all

run tests

bacon test

bacon test

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

command = ["cargo", "check", "--target", "x86_64-pc-windows-gnu", "--color", "always"]


command = ["cargo", "check", "--examples", "--color", "always"]
watch = ["examples"] # src is implicitly included

Don't forget the --color always part: bacon uses style information to recognize warnings and errors.

and run

bacon check-win


bacon check-examples

The bacon.toml file may evolve with the features and settings of your project and should be added to source control.


Bacon is licenced under AGPL-3.0. You're free to use it to compile the Rust projects of your choice, even commercial.

The logo is designed by Peter Varo and licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. license


~287K SLoC