3.3 KiB
3.3 KiB
rust, rocket and diesel
Rust
What is Rust?
#+LaTeX:∈cludegraphics[width = 0.65\textwidth]{img/Bruine_roest_op_tarwe_(Puccinia_recondita_f.sp._tritici_on_Triticum_aestivum).jpg}
Rust: the language
- About 10 years old (2010)
- Memory safe without gcing, optional ref counting
- Ownership, lifetimes, traits
- Variables are immutable by default and can be shadowed
- Performance of idiomatic Rust is comparable to the performance of idiomatic cpp
Where to get infos
Some links
- The rust book (
$ rustup docs --book
), Rust by example - The Rust Standard Library
- cheats.rs
- cargo.io/lib.rs
How to install
Install Rust
$ curl --proto '=https' --tlsv1.2 -sSf \
https://sh.rustup.rs | sh
Install nightly Rust
$ rustup toolchain install nightly
Install rustfmt
$ rustup component add rustfmt
Install clippy (Linter and static code analysis)
$ rustup component add clippy