This commit is contained in:
git
2024-04-11 14:33:27 +02:00
parent 3a841c6424
commit 5151944332

22
rust.txt Normal file
View File

@@ -0,0 +1,22 @@
#Zdroje:
https://doc.rust-lang.org/stable/rust-by-example/
curl -L https://raw.githubusercontent.com/rust-lang/rustlings/main/install.sh | bash
#Aktualizace
rustup update
#Kompilace kódu bez balíčkovacího systému
rustc main.rs
#Balíčkovací systém
#Nový projekt
cargo new hello_cargo
#Kompilace
cargo build
#Delší, ale pečlivěší Kompilace
cargo build --release
#Spuštění
cargo run