What is Rust? My short description is that it's a better C or C++. And it's better in the sense that it's safer and has learned a lot from programming languges that have come before it.
We see Rust everywhere. Where can we use it?
- Terminal programs
- Embedded software
- Gaming
- IoT
- Web Development
- Any computationally intensive tasks
Not so good for:
- Rapid prototying
- Machine learning
You could use brew install rust
but better to use rustup.rs
rustup is like rvm or nvm but can do so much omre
- Solve a simple problem
- Wrap it in a web service
This is a problem for exercism.io
Simple problem but the Option
type might take some getting used to.
Explain cargo when running tests.
With if/else
With ordering - show $ rustup docs
$ cargo new webservice
Start with this and install rocket as it takes time.
While installing, discuss:
- Several web framework for rust - actix web, tower, warp, serverless
- Talk through source code