mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
2263caff45
And use cargo install --locked Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7326>
26 lines
621 B
Bash
26 lines
621 B
Bash
#! /bin/bash
|
|
|
|
set -eux
|
|
|
|
# Install Rust
|
|
RUSTUP_VERSION=1.27.1
|
|
RUST_VERSION=1.80.1
|
|
RUST_ARCH="x86_64-unknown-linux-gnu"
|
|
|
|
RUSTUP_URL=https://static.rust-lang.org/rustup/archive/$RUSTUP_VERSION/$RUST_ARCH/rustup-init
|
|
curl -o rustup-init $RUSTUP_URL
|
|
|
|
export RUSTUP_HOME="/usr/local/rustup"
|
|
export CARGO_HOME="/usr/local/cargo"
|
|
export PATH="/usr/local/cargo/bin:$PATH"
|
|
|
|
chmod +x rustup-init;
|
|
./rustup-init -y --no-modify-path --default-toolchain $RUST_VERSION;
|
|
rm rustup-init;
|
|
chmod -R a+w $RUSTUP_HOME $CARGO_HOME
|
|
|
|
cargo install --locked cargo-c --version 0.10.3+cargo-0.81.0
|
|
|
|
rustup --version
|
|
cargo --version
|
|
rustc --version
|