mod cargo

module cargo

Offline Cargo.toml / crates.io adapter.

Same leftover model as PyPI: existing robot Rust / maturin modules are provides. A crate that is not in the robot becomes its own recipe (PythonPackage when it binds Python via PyO3/maturin, otherwise Crate). The adapter never invents a SHA-256.

Functions

fn eessi_cargo_host_isolation() -> &'static str

Shell prelude that isolates host Cargo/rustc when EasyBuild runs cargo inside EESSI-extend.

Host sccache, clang, and mold are not in the EESSI module graph. foss wrappers can drop the compat ld that collect2 needs. The cargo target triple and compat arch come from the build host (rustc -vV, uname -m), not from a plan-time x86_64 literal. Cargo leftovers and mesonpy wraps that invoke cargo both emit this string.

fn parse_cargo_str(text: &str) -> Result<ForeignRecipe, ForeignError>

Parse a Cargo.toml document or a crates.io API JSON document.