crunch-app

Crates.iocrunch-app
lib.rscrunch-app
version0.0.11
created_at2024-11-27 08:58:20.085023+00
updated_at2024-12-13 15:13:45.686397+00
descriptionTurbocharge your Rust workflow with crunch
homepage
repository
max_upload_size
id1462799
size26,164
(liamaharon)

documentation

README

crunch-cli

Crates.io Version

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

  1. Install Rust on a Debian-based machine
  2. 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 with crunch
  • Zero configuration (aside from a ~/.ssh/config host when bringing your own hardware)
Commit count: 0

cargo fmt