https://www.rust-lang.org/tools/install
$ clang --version
# out: c-lang version
# Apple clang version 13.0.0 (clang-1300.0.29.30)
# Target: x86_64-apple-darwin20.6.0
# Thread model: posix
# InstalledDir: /Library/Developer/CommandLineTools/usr/bin
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# select, 1) Proceed with installation (default)
$ source "$HOME/.cargo/env"
$ rustc --version
$ rustc hello_word.rs
# on mac-os
$ ./hello_word
# on widows
$ ./hello_word.exe
$ cargo --version
$ cargo new hello_cargo
// #[allow] attribute
#[allow(unused_assignments)]
#[allow(non_snake_case)]
// allow multi attributes
#[allow(unused_assignments, non_snake_case)]
// + - * / % (mod)
// == != > < >= <=
// println! ve print! makroları
// println! makrosu ekrana yazdırır ve alt satıra geçer
// print! makrosu ekrana yazdırır ve alt satıra geçmez
let x: u8 = 5;
let y: u8 = 10;
println!("x = {}, y = {}", x, y);
println!("x = {0}, y = {1}, x = {0}", x, y);
println!("x = {x}, y = {y}");
println!("x = {x}, y = {y}", x = 1, y = 2);
$ rustup doc
$ rustup doc --book
$ rustup doc --reference
$ rustup update
$ rustup show