11 releases
0.0.11 | Dec 13, 2024 |
---|---|
0.0.10 | Dec 6, 2024 |
0.0.5 | Nov 28, 2024 |
#100 in Cargo plugins
731 downloads per month
14KB
238 lines
crunch-cli
Turbocharge your Rust workflow.
crunch
seamlessly integrates cutting-edge hardware into your local development environment. Cut compile times and iterate faster.
Usage
Get started with no new commands or flags to learn, just replace cargo
with crunch
.
c̶a̶r̶g̶o̶crunch check
c̶a̶r̶g̶o̶crunch clippy --workspace
c̶a̶r̶g̶o̶crunch t -p sys-internals
Installation
cargo install crunch-app
Setup
Bring-Your-Own-Hardware
- Install Rust on a Debian-based machine
- Add a
crunch
host to your~/.ssh/config
Host crunch
HostName your-machine-ip
User your-machine-user
IdentityFile ~/.ssh/your-key.pem
ControlMaster auto
ControlPath ~/.ssh/control-%r@%h:%p
ControlPersist 5m
Provisioned Hardware
Coming soon!
rust-analyzer
Using crunch
with rust-analyzer
frees up local resources and can enable faster LSP hint feedback.
Just set rust-analyzer.check.overrideCommand
in your LSP configuration to your preferred crunch
command.
e.g. for VSCode, set
"rust-analyzer.check.overrideCommand": [
"crunch",
"check",
"--quiet",
"--workspace",
"--message-format=json",
"--all-targets",
--all-features
],
in your settings.json
.
Advanced Usage
See crunch --help
for advanced usage options and examples.
cargo-remote
crunch
was inspired by cargo-remote.
The largest difference at the moment is crunch
aims to be as simple to use as possible:
- Just replace
cargo
withcrunch
- Zero configuration (aside from a
~/.ssh/config
host when bringing your own hardware)
Dependencies
~2.1–3MB
~61K SLoC