cargo-bootstrap
cargo-bootstrap copied to clipboard
Bootstrapping script for Rust Cargo when cross-compilation is difficult or impossible.
im building on ubuntu 18 my build line is per readme, ./bootstrap.py --crate-index /tmp/index --target-dir /tmp/out --no-clone --no-clean --target x86_64-unknown-bitrig ``` ========================== ===== BUILDING CARGO ===== ========================== cargo:jobserver:log:cfg-if: Building cfg-if-0.1.4...
Bootstrapping any cargo version >= 0.11.0 fails with ``` rand: Resolving dependencies for: rand-0.5.0-pre.2 rand: Skipping optional dep serde rand: Skipping optional dep serde_derive rand: Looking up info for rand_core...
``` sh cargo: Looking up info for tar 0.4 cargo: opening crate info: /tmp/cargo/crates.io-index/3/t/tar cargo: best match is tar-0.4.7 cargo: failed to load toml file for: /tmp/cargo/tar-0.4.7 (/tmp/cargo/tar-0.4.7/Cargo.toml(27, 1): msg)...
``` sh ... cargo:crates-io: Building crates-io-0.2.0 (needed by: cargo-0.11.0) cargo:crates-io: PROFILE="release" TARGET="x86_64-unknown-linux-musl" CARGO_MANIFEST_DIR="/tmp/cargo/crates-io-0.2.0" OUT_DIR="/tmp/cargo" CARGO_PKG_VERSION_MAJOR="0" CARGO_PKG_VERSION="0.2.0" CARGO_PKG_VERSION_PATCH="0" HOST="x86_64-unknown-linux-musl" PATH="/home/jirutjak/rustc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" DEBUG="0" OPT_LEVEL="0" CARGO_PKG_VERSION_MINOR="2" NUM_JOBS="1" CARGO_PKG_VERSION_PRE="" rustc /tmp/cargo/crates-io-0.2.0/lib.rs --crate-name crates_io --crate-type lib...
Building url-0.5.9 fails: ``` cargo:curl:url: Building url-0.5.9 (needed by: curl-0.2.18) cargo:curl:url: PROFILE="release" TARGET="x86_64-unknown-openbsd" CARGO_MANIFEST_DIR="/home/zofrex/cargo-out/url-0.5.9" OUT_DIR="/home/zofrex/cargo-out" CARGO_PKG_VERSION_MAJOR="0" CARGO_PKG_VERSION="0.5.9" CARGO_PKG_VERSION_PATCH="9" HOST="x86_64-unknown-openbsd" PATH="/home/zofrex/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games:." DEBUG="0" OPT_LEVEL="0" CARGO_PKG_VERSION_MINOR="5" NUM_JOBS="1" CARGO_PKG_VERSION_PRE="" /usr/local/bin/rustc /home/zofrex/cargo-out/url-0.5.9/src/lib.rs --crate-name url --crate-type...
$ ./bootstrap.py --cargo-root /home/javan/apps/cargo --crate-index ./index --target-dir ./out --target x86_64-unknown-openbsd cargo: Looking up info for url ^0.5.7 cargo: opening crate info: ./index/3/u/url cargo: best match is url-0.5.7 > /home/javan/apps/cargo-bootstrap/bootstrap.py(1148)crate_info_from_toml() >...
First, thanks a lot for this, it's great! I've voiced for it to get more consideration by upstream, and we plan to actively use it for bootstrap purposes in Debian....