Skip to content
프로젝트

소개

백그라운드 코드 검사기

개발 도구

이 수치를 측정하는 방법

What you can do

  • "clipboard" - disabled by default : necessary for the copy-unstyled-output action
  • "sound" - disabled by default : necessary for the play-sound action

측정된 스타 증가

in 24h
0
in 7 days
+3
in 15 days
+9
in 1 month
+17

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

bacon

Latest Version site Chat on Miaou License: AGPL v3

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.

screenshot

Documentation

The bacon website is a complete guide.

Below is only a short overview.

install

cargo install --locked bacon

Run this command too if you want to update bacon. Configuration has always been backward compatible so you won't lose anything.

Some features are disabled by default. You may enable them with

cargo install --locked bacon --features "clipboard sound"

Precompiled binaries are also available on the download page: the macOS and Windows ones include clipboard and sound, the Linux ones only clipboard.

GitHub releases also hold one archive per target (eg bacon-v<version>-x86_64-unknown-linux-musl.tar.gz), with a sha256sums file.

Shell completion

Bacon completes its arguments and the jobs defined for the current project. Source the completion script once, for example in your .profile:

source <(COMPLETE=bash bacon)

Replace bash with zsh, fish, elvish or powershell for other shells.

check the current project

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.

check another project

bacon --path ../broot

or

bacon ../broot

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

bacon --job check-all

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

bacon check-all

run clippy instead of cargo check

bacon clippy

This will run against all targets like check-all does.

run tests

bacon test

or bacon nextest if you're a nextest user.

bacon test

When there's a failure, hit f to restrict the job to the failing test. Hit esc to get back to all tests.

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

[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.

Optional features

Some bacon features can be disabled or enabled at compilation:

  • "clipboard" - disabled by default : necessary for the copy-unstyled-output action
  • "sound" - disabled by default : necessary for the play-sound action

Licences

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

관련 프로젝트 살펴보기

불러오는 중…