Aller au contenu

Installation de Cargo / Rust

Cargo est un gestionnaire de paquets comme APT ou PAMAC. Il distribue et compile des paquets et les uploade sur crates.io. Il repose sur la communauté RUST.

I. Téléchargement et installation de Cargo

1. Télécharger le script suivant
curl https://sh.rustup.rs -sSf | sh
2. Répondre Y
curl https://sh.rustup.rs -sSf | sh

info: downloading installer
warning: it looks like you have an existing installation of Rust at:
warning: /usr/bin
warning: It is recommended that rustup be the primary Rust installation.
warning: Otherwise you may have confusion unless you are careful with your PATH
warning: If you are sure that you want both rustup and your already installed Rust
warning: then please reply `y' or `yes' or set RUSTUP_INIT_SKIP_PATH_CHECK to yes
warning: or pass `-y' to ignore all ignorable checks.
error: cannot install while Rust is installed

Continue? (y/N) y


Welcome to Rust!
3. Répondre 1
Current installation options:


   default host triple: x86_64-unknown-linux-gnu
     default toolchain: stable (default)
               profile: default
  modify PATH variable: yes

1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
>1
sudo apt install build-essential