From 51519443320e79adabb0684ff6f314a3b1325822 Mon Sep 17 00:00:00 2001 From: git Date: Thu, 11 Apr 2024 14:33:27 +0200 Subject: [PATCH] rust --- rust.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 rust.txt 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