rust
This commit is contained in:
22
rust.txt
Normal file
22
rust.txt
Normal 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
|
||||
Reference in New Issue
Block a user