A simple tool to build, cache, and run binaries scoped in Cargo.toml
rather than installing globally. This acts similarly to npm run
and gomodrun
.
Disclaimer: This tool was built out of a desired missing piece in the Rust development experience when initially learning the language, and is not likely to be optimal or feature complete just yet.
sh
cargo install cargo-run-bin
Cargo.toml
like any dependencysh
cargo add --dev flamegraph
cargo bin
. Note first runs will build your binary silently first before executing, all future runs will be instant.sh
cargo bin flamegraph --help
sh
echo ".bin/" >> .gitignore
MIT.