this post was submitted on 11 Oct 2024
33 points (100.0% liked)

Rust

5930 readers
32 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

[email protected]

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS
33
Bacon v3 released (dystroy.org)
submitted 3 weeks ago* (last edited 3 weeks ago) by Deebster to c/rust
 

Bacon is a Rust code checker designed for minimal interaction, allowing users to run it alongside their editor to receive real-time notifications about warnings, errors, or test failures (I like having it show clippy's hints).

It prioritizes displaying errors before warnings, making it easier to identify critical issues without excessive scrolling.

Screenshot (from an old version I think):

v3 adds support for cargo-nextest, plus some QoL improvements.

v3.0.0 release notes

top 4 comments
sorted by: hot top controversial new old
[–] onlinepersona 5 points 2 weeks ago (1 children)

Not sure I understand this. Is it a watch clippy? Or a completely new tool? If it's new, what does it provide over clippy?

Anti Commercial-AI license

[–] Deebster 1 points 2 weeks ago

You can set it to show what you want; if I'm doing TDD I'll set it to show the test output, and then it'll show the warnings beneath it.

You can switch between the views with a key (T for tests (or N for nextest), C for clippy, etc

But yes, it's pretty similar to using watch.

[–] [email protected] 2 points 2 weeks ago (1 children)

Shouldn't errors be in the bottom of the output if you don't want to scroll?

[–] Deebster 1 points 2 weeks ago

It shows the top line, so you just read top to bottom (and can scroll if you want).