%general-entities; ]> Cargo-&cargo-version; Cargo Introduction to cargo Cargo is the Package Manager for Rust. Like that, during the build it uses curl to download cargo files which are actually .tar.gz source archives. This package requires internet access to build and at runtime (when rust is compiling another package). It will use all available cores. It also needs the current or previous version to compile itself, so here a binary of the previous version is used to bootstrap. &lfs80_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &cargo-md5sum; Download size: &cargo-size; Estimated disk space required: &cargo-buildsize; Estimated build time: &cargo-time; Additional Downloads Rust Installer: Installer MD5 sum: &rusti-md5sum; Installer size: &rusti-size; Binary download (x86_64): Binary x86_64 MD5 sum: &cargoprev64-md5sum; Binary x86_64 download size: &cargoprev64-size; Binary download (i686): Binary i686 MD5 sum: &cargoprev32-md5sum; Binary i686 download size: &cargoprev32-size; Cargo Dependencies Required , Optional , User Notes: Installation of cargo Install cargo by running the following commands: tar -xf ../rust-installer-&RUSTIDATE;.tar.xz \ --strip-components=1 --directory src/rust-installer && case $(uname -m) in x86_64) tar -xf ../cargo-&CARGOPREV;-x86_64-unknown-linux-gnu.tar.gz ;; i686) tar -xf ../cargo-&CARGOPREV;-i686-unknown-linux-gnu.tar.gz ;; esac && ./configure --prefix=/usr \ --sysconfdir=/etc \ --docdir=/usr/share/doc/cargo-&cargo-version; \ --cargo=./cargo-nightly*/cargo/bin/cargo && make To test the results, issue: CFG_DISABLE_CROSS_TESTS=1 ./target/*-unknown-linux-gnu/release/cargo test. Now, as the root user: make install && mv -v /usr/etc/bash_completion.d/cargo /etc/bash_completion.d Command Explanations tar -xf ../rust-installer-&RUSTIDATE;.tar.xz ...: The rust-installer is needed, but not shipped with cargo, so BLFS provides a repackaged git snapshot. --cargo=: This points to the binary of the previous version, so that the package can be bootstrapped. When upgrading, or if rebuilding, it is possible to use the current installed version without this switch, but that takes longer and uses more space. CFG_DISABLE_CROSS_TESTS=1 ...: By default the tests will try to cover cross-builds for other architectures, but BLFS only installs rust for the host architecture. This switch also points to where cargo has been created, using a wildcard to match the one target-triple directory which has been created. mv -v /usr/etc/bash_completion.d/cargo ...: Cargo accepts the sysconfdir switch but does not respect it. This fixes up the misplaced file. Contents Installed Program(s) Installed Librar(y,ies) Installed Director(y,ies) cargo None /usr/share/doc/cargo-&cargo-version; and /usr/share/zsh/site-functions. Short Descriptions cargo is the Package Manager for Rust. cargo