presentation-rust-webapps/rust_web.org
2020-12-21 11:04:02 +01:00

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

What are we going to use?

Definitely

Maybe

  • anyhow
  • lettre
  • sha3
  • serde
  • chrono

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

Rocket

What is Rocket?

Diesel

What is an ORM?

What is diesel capable of?

Lets code something

Conclusion

What did we do?

What did you hopefully learn!

Some projects

The End

#+LaTeX:∈cludegraphics[width = 0.3\textwidth]{img/goodbye.jpg}

\Huge Thanks for your attention!!1!

This is the end..