Closed m4rch3n1ng closed 1 month ago
bacon is meant to be configured, you can add the jobs of your choice.
For example:
[jobs.build]
command = [
"cargo", "build",
"--color", "always",
]
need_stdout = false
With this job added, you can launch bacon build
.
Please have a look at the documentation: https://dystroy.org/bacon/config/
You can define any jobs you want in your config:
[jobs.build]
command = ["cargo", "build"]
You can also as keybindings to jump to the job. There are examples linked from the home page.
ah, somehow didn't think of that. makes sense.
i use
cargo-watch
mostly withcargo watch -x build
to build my project in the background, so that if i want to run itcargo run
is instantaneous. i looked and, to me, it doesn't seem possible to do this withbacon
currently, as$ bacon build
gives me anError: job not found: "build"
alternatives considered:
cargo watch
still works so i'll keep using thatbacon check
does not compile the project fully, so i still have to wait when i want tocargo run
bacon run
does work, but it also launches a gui application on every compile and waits until it closes to recompile, which is extremely annoying