HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

bacon — A background code checker for Rust. More information: <https://github.com/Canop/bacon>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandrustcheckerclicodebaconbackgroundfor

Problem

How to use the bacon command: A background code checker for Rust. More information: <https://github.com/Canop/bacon>.

Solution

bacon — A background code checker for Rust. More information: <https://github.com/Canop/bacon>.

Run cargo check whenever a change is detected in the current directory:
bacon


Run cargo test whenever a change is detected in the given directory:
bacon test {{path/to/directory}}


Run cargo check against all targets whenever a change is detected in the current directory:
bacon check-all


Run a specific job whenever a change is detected in the current directory:
bacon {{run|test|clippy|doc|...}}


List all currently available jobs:
bacon --list-jobs


Initialize a bacon.toml configuration file in the current directory:
bacon --init

Code Snippets

Run `cargo check` whenever a change is detected in the current directory

bacon

Run `cargo test` whenever a change is detected in the given directory

bacon test {{path/to/directory}}

Run `cargo check` against all targets whenever a change is detected in the current directory

bacon check-all

Run a specific job whenever a change is detected in the current directory

bacon {{run|test|clippy|doc|...}}

List all currently available jobs

bacon --list-jobs

Context

tldr-pages: common/bacon

Revisions (0)

No revisions yet.