mod cargo¶
- module cargo¶
Offline Cargo.toml / crates.io adapter.
Same leftover model as PyPI: existing robot
Rust/maturinmodules are provides. A crate that is not in the robot becomes its own recipe (PythonPackagewhen it binds Python via PyO3/maturin, otherwiseCrate). 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, andmoldare not in the EESSI module graph. foss wrappers can drop the compatldthatcollect2needs. 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.