# bacon

> Background code checker

Source: https://talira.ai/catalog/bacon-sqn1nm4z
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / build / file watchers](https://talira.ai/categories/developer-tools/build/file-watchers), [languages / rust](https://talira.ai/categories/languages/rust)
- Platforms: linux, macos, windows, cli[^8]
- Licence: AGPL-3.0[^5][^6]
- Pricing: Free and open source[^4]
- Pricing notes: AGPL-3.0; its README says you're free to use it to compile any Rust project, commercial ones included.
- Free tier: yes[^4]
- Self-hostable: yes[^7]
- Creator: Denys Séguret (Canop)

bacon is a background code checker for Rust that you leave running in a terminal beside your editor. It finds the source directories from Cargo.toml, reruns cargo check on every change and shows errors before warnings, the first ones first, so a small pane is enough. One key switches the job to clippy, the tests (or [cargo-nextest](https://talira.ai/catalog/cargo-nextest-kbkdtjbc.md)), the docs or a job of your own from bacon.toml, and f narrows a test run to the failing test. A job can run a server and kill and restart it on each change, and analyzers read Go, C++, Python, [ESLint](https://talira.ai/catalog/eslint-0nyjt04g.md), Biome, [TypeScript](https://talira.ai/catalog/typescript-w0asrgz8.md) and Swift output too. It's the tool cargo-watch's maintainer recommends in its place.

## Links

- Website: https://dystroy.org/bacon/
- GitHub: https://github.com/Canop/bacon
- Docs: https://dystroy.org/bacon/config/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/bacon>[^1]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/source/stable/rust-bacon>[^2]

## Problems it solves

- see my Rust compiler errors in a side terminal as I edit, without typing cargo check
- cargo check output scrolls away and I have to scroll up to find the first error
- rerun only the failing Rust test each time I save
- switch between cargo check, clippy and the tests with one key while I code
- keep clippy warnings visible all the time while I write Rust
- restart my Rust web server automatically when I change the code
- a replacement for cargo watch now that it's no longer maintained
- check my Rust code for another target such as Windows on every change
- a compact list of Rust errors and warnings that fits a small terminal pane
- get background cargo check diagnostics into Neovim or my editor through a language server
- rerun pytest, ruff or eslint on save and list only the failures

## Features

- errors before warnings, first errors first
- jobs for check, clippy, test, nextest, doc and run, switched with one key
- custom jobs and key bindings in bacon.toml and prefs.toml
- f restricts the test job to the failing test
- kill_then_restart strategy and custom kill command for servers
- headless mode without the TUI
- remote control over a socket (listen, bacon --send)
- exports locations for editors: bacon-ls, nvim-bacon, emacs-bacon
- analyzers for Go, C++ (GCC, Clang, doctest), pytest, Ruff, unittest, Biome, ESLint, tsc and Swift
- summary, wrap and reverse modes
- shell completion for bash, zsh, fish, elvish and PowerShell

## Limitations

- Doesn't fully support languages other than Rust yet: its docs call the Go, C++, Python, ESLint, TypeScript and Swift analyzers young[^3]

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.28 out of 1.
Signals: backing 0.20, extensibility 0.20.

- created by Denys Séguret (Canop)

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [watchexec](https://talira.ai/catalog/watchexec-dq0r57ke.md): Executes commands in response to file modifications
- [entr](https://talira.ai/catalog/entr-tnjj7sns.md): Run arbitrary commands when files change

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
[^3]: https://dystroy.org/bacon/analyzers/ (checked 20 Nov 2026)
[^4]: https://github.com/Canop/bacon/blob/main/README.md (checked 20 Nov 2026)
[^5]: https://github.com/Canop/bacon/blob/main/LICENSE (checked 20 Nov 2026)
[^6]: https://crates.io/crates/bacon (checked 20 Nov 2026)
[^7]: https://dystroy.org/bacon/ (checked 20 Nov 2026)
[^8]: https://dystroy.org/bacon/download/ (checked 20 Nov 2026)
