Rust

Install Rust on RHEL

dnf -y install gcc
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Install Rust on Mac(Homebrew)

brew install rustup-init
rustup-init -y --profile default --no-modify-path
#rustup-init

PATH

source $HOME/.cargo/env
rustup self update
rustup update
rustup component add clippy

with docker

new

docker run --rm -v $(pwd):/m -w /m rust:latest cargo init . 

build

docker run --rm -v $(pwd):/m -w /m rust:latest cargo build

run

docker run --rm -v $(pwd):/m -w /m rust:latest cargo run
alias ccargo='docker run --rm -v $(pwd):/m -w /m rust:latest cargo'