1DOLLY 82PACKAGE cargo3REQUIRES HOST runtime@04REQUIRES HOST dso@05REQUIRES HOST http@06REQUIRES HOST threads@0789COPY /demos/rust/Dollyfile-rust-build c2f254bba5149a1add4b0c9d58aae358c284ec17b9de930e08ac392143958e20 /usr/bin/cargo /usr/bin/cargo10COPY /demos/rust/Dollyfile-rust-build c2f254bba5149a1add4b0c9d58aae358c284ec17b9de930e08ac392143958e20 /usr/share/licenses/cargo /usr/share/licenses/cargo11COPY /demos/rust/Dollyfile-rust-build c2f254bba5149a1add4b0c9d58aae358c284ec17b9de930e08ac392143958e20 /usr/share/dolly/builds/cargo.lock /usr/share/dolly/builds/cargo.lock1213INSTALL /demos/rust/Dollyfile-rust 0d3de37faec73d25bff1ef9127c8699b24136aadaae5ef94b920bd0809d1b7951415EXPORTS ENV CRATE_CC_NO_DEFAULTS 1161718EXPORTS ENV CARGO_NET_GIT_FETCH_WITH_CLI true19EXPORTS TOOL cargo20EXPORTS FOLDER cargo-licenses /usr/share/licenses/cargo21FILE /usr/share/dolly/builds/cargo.lock2223FILE /usr/share/man/cat1/cargo.124 cargo: Cargo 1.98.1, built inside Dolly; the rust package is its compiler.25 26 cargo build builds a crate: path and vendored dependencies,27 build scripts and procedural macros28 cargo test runs its tests and doc tests29 target/debug/NAME runs what it built30 31 cargo run builds and replaces Cargo with the program (exec). Crate archives32 come through the page's HTTP broker; crates.io's index sends no CORS headers,33 so a project's crates are vendored: amy install vendor-crates, then34 vendor-crates in the project and cargo build --offline. A crate that uses35 libc needs the SDK's copy, which vendor-crates patches in. A Git dependency36 is fetched by git (amy install git git-http), from a host that sends CORS headers.37 There is no cargo search, publish or login.38 Upstream's book: https://doc.rust-lang.org/cargo/39