WIP: Rust CI 5
- Sep 09, 2020
-
-
Thomas Guillem authored0727b784
-
Co-Authored-By: Thomas Guillem <thomas@gllm.fr>
4e7daa4b -
29e5869c
-
Thomas Guillem authored
This script can be used to package a cargo vendor archive containing all dependencies of a Rust project. If this archive is uploaded to the VideoLAN FTP, the contrib's cargo will try to use it instead of using crates.io. This will also allow us to keep all Rust dependencies.
df64c745 -
Thomas Guillem authored8063245f
-
This will install rustup, cargo, and cargo-c into contrib/bin/.cargo This installation will be used by default for all rust contrib builds. The correct cargo target will be automatically installed when needed.
b82bd480 -
Thomas Guillem authored
This adds CARGO_INSTALL and CARGOC_INSTALL, using the correct cargo path (from contribs) and using the correct install arguments. cf. https://doc.rust-lang.org/cargo/commands/cargo-vendor.html 'cargo vendor' fetch all dependencies required by a Rust project. Administrators will be able to create an archive (via the upcoming cargo-vendor-archive.sh script) containing all dependencies of a Rust project and upload it to the VideoLAN FTP. *-vendor packages will try to use such archive as the only crates source. In case of failure (checksum failed, archive not uploaded), CARGO_INSTALL will fallback to crates.io (by not using the --frozen --offline arguments). A warning is displayed when the crates.io source is used. This is like our download_pkg mechanism (try first VideoLAN FTP, or print a warning and use the original source).
b878c3ab -
Thomas Guillem authored
This will allow to use the checksum function for other targets.
39a002d3 -
Thomas Guillem authoredfd5a2b4a
-
1b65cfc0
-