diff --git a/rust.txt b/rust.txt new file mode 100644 index 0000000..f243de5 --- /dev/null +++ b/rust.txt @@ -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