Crates.io | bacon |
lib.rs | bacon |
version | |
source | src |
created_at | 2020-10-29 13:47:24.100791 |
updated_at | 2024-12-05 18:52:56.175071 |
description | background rust compiler |
homepage | |
repository | https://github.com/Canop/bacon |
max_upload_size | |
id | 306646 |
Cargo.toml error: | TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
bacon is a background code checker.
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.
The bacon website is a complete guide.
Below is only a short overview.
cargo install --locked bacon
Run this command too if you want to update bacon. Configuration has always been retro-compatible so you won't lose anything.
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.
bacon --path ../broot
or
bacon ../broot
bacon --job check-all
When there's no ambiguity, you may omit the --job
part:
bacon check-all
bacon clippy
This will run against all targets like check-all
does.
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.
First create a bacon.toml
file by running
bacon --init
This file already contains some standard jobs. Add your own, for example
[jobs.check-win]
command = ["cargo", "check", "--target", "x86_64-pc-windows-gnu"]
or
[jobs.check-examples]
command = ["cargo", "check", "--examples"]
watch = ["examples"] # src is implicitly included
and run
bacon check-win
or
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.