Rust установка install
wget https://sh.rustup.rs -O rustup-init.sh
chmod +x rustup-init.sh
./rustup-init.sh
1
source $HOME/.cargo/env
rustup install stable
rustc --version
nano rust_hello.rs
fn main() { println!("hi"); }
rustc rust_hello.rs
./rust_hello
Если жалобы на cc
То
sudo apt install build-essential
ИЛИ
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Для termux android
pkg update
pkg install rust
rustc --version
Создаём проект
cargo new app_rust
cd app_rust/
cargo run
cargo build
cargo build --release
./target/release/app_rust