Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Rust Tools


First of all, install rustup

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup update
rustup component add rust-analyzer

Security

cargo install cargo-audit
cargo install cargo-update
cargo install cargo-download

How to check with cargo audit

cargo download pkg | save pkg.gz # > in bash
tar -xvf pkg.gz
cd pkg*
cargo audit

How to use cargo-update

cargo install-update -l

Install Packages

# Find dependencies if necesary
cargo install paquete
cargo install --locked paquete