rust
Recipe card from the charly-coder plugin (Images — the deployable catalog).
rust – Rust compiler and Cargo
Section titled “rust – Rust compiler and Cargo”Candy Properties
Section titled “Candy Properties”| Property | Value |
|---|---|
| Install files | charly.yml (packages only) |
PATH additions: ~/.cargo/bin
Packages
Section titled “Packages”RPM: rust, cargo
DEB: rustc, cargo
my-image: candy: - rustUsed In Boxes
Section titled “Used In Boxes”- No enabled boxes use this candy directly
- Transitive dependency of
language-runtimes
When to use the rust candy vs the build-toolchain rust+cargo packages
Section titled “When to use the rust candy vs the build-toolchain rust+cargo packages”Two places now ship a Rust toolchain. Choose based on where you need it:
| Need | Use |
|---|---|
| Rustc/cargo at runtime in the final container (developer shells, CI runners, on-the-fly cargo builds) | Add /charly-coder:rust to the runtime candies list of the box |
| Rustc/cargo at build time only, for compiling a cdylib that’s copied into the final image (e.g., pixelflux_wayland) | Already provided by /charly-distros:fedora-builder via /charly-coder:build-toolchain’s system rust+cargo packages — no extra candy needed |
Builder-stage cargo (the build-toolchain path) keeps the runtime image small because the toolchain stays in the multi-stage builder and never lands in the final layers.
Related Candies
Section titled “Related Candies”/charly-coder:language-runtimes– includes rust as a dependency/charly-coder:build-toolchain– now also shipsrust+cargofor builder-stage compilation
When to Use This Skill
Section titled “When to Use This Skill”Use when the user asks about:
- Rust compiler in containers
- Cargo builds or Rust development
- The
rustcandy
Author + Test References
Section titled “Author + Test References”/charly-image:layer— candy authoring reference (tasks, vars, env_provide, tests block syntax)/charly-check:check— declarative testing framework for thecheck:block