Skip to main content
Get a minimal Rust project building with rusty on Linux.

Prerequisites

  • A Linux host (x86_64 or aarch64 typical)
  • Network access for the first toolchain install and crate fetch
  • A linker (cc / ld) available for linking Rust binaries

1. Install rusty

Obtain a rusty binary for your machine and put it on PATH. See Install for current distribution options.
Data lives under $RUSTY_HOME (default ~/.rusty).

2. Install a toolchain

Default installs include rustc + rust-std only (no cargo):
Optional: put toolchain shims on your path after rusty env use:
rustc, rustdoc, rustfmt, and related tools are hardlinked shims that dispatch to the active toolchain. cargo is not installed or shimmed by default.

3. Create a project

Interactive (TTY) or fully flagged:
Useful flags: Project metadata and caches land in .rusty/ (including .rusty/format).

4. Lock and fetch

  • Lock writes rusty.lock or Cargo.lock depending on project format.
  • Fetch resolves (if needed) and ingests crates into the content-addressable store.

5. Build and test

Native-only for these verbs: if the project shape is outside the supported matrix, rusty exits with an error instead of silently calling cargo. Optional package and workspace flags (same spirit as Cargo):

6. Day-to-day commands

Lint and format require scripts in rusty.json:

Existing Cargo workspace?

You do not have to rewrite everything on day one:
  1. Point rusty at the tree (detects Cargo.toml / cargo-format).
  2. Use native lock/fetch/add where supported.
  3. When ready: rusty migrate to convert to rusty.json + rusty.lock.
See Migrate from Cargo.

Next

Related topics

InstallIntroduction