bacon logo

bacon

Background code checker for Rust projects that runs continuously alongside your editor

install

bacon is a background code checker specifically designed for Rust development. It runs continuously while you code, automatically detecting warnings, errors, and test failures without requiring manual intervention. The tool operates with minimal interaction, allowing developers to keep it running alongside their editor and receive real-time feedback on their code.

The tool supports multiple built-in jobs including cargo check, clippy, test, and doc generation, accessible through single-key shortcuts. You can switch between different analysis modes by pressing keys like 'c' for Clippy warnings, 't' for tests, or 'd' to open documentation. bacon also supports nextest integration and can target specific platforms or components like examples and benchmarks.

Customization is handled through a bacon.toml configuration file that can be generated with bacon --init. This file allows you to define custom jobs with specific cargo commands, watch patterns, and target configurations. The tool includes optional features for clipboard integration and sound notifications that can be enabled during installation.

bacon is particularly useful for Rust developers who want continuous feedback on their code quality without manually running cargo commands. It integrates into existing development workflows and can be configured per-project with settings committed to source control.

Installation

# via Cargo
cargo install --locked bacon
# via Cargo with features
cargo install --features "clipboard sound" bacon

bacon main interface

bacon test output

Alternatives & related tools

add a badge to your README

Maintain bacon? Show that it's featured on trmn. The badge links back to this page.

Featured on trmn
Markdown
[![Featured on trmn](https://www.trmn.sh/badge/bacon.svg)](https://www.trmn.sh/tools/bacon?utm_source=badge)
HTML
<a href="https://www.trmn.sh/tools/bacon?utm_source=badge"><img src="https://www.trmn.sh/badge/bacon.svg" alt="Featured on trmn" height="20"></a>