Learning Rust
Table of content
Why Rust?
Like many before me, I have gained interest in the rust programming language. My main interest comes from the fact that it can be used for embedded programming. There is a lot of activity on the topic, see Embedded Rust for more information. Before I feel comfortable diving into this world, I want to learn the basics.
100 part challenge
Initially I had written here to do this in 100 days. I have had times on and off of increased and decreased motivation and dedication to this project. However, in 2024, three years after I started this project, I have decided to finish it. I have 4 challenges left to do.
- 1 unique code snippet per day for 100 days
- Come up with a challenge
- Solve the challenge
- Upload and present
- ???
- Profit
First challenge
Challenge
Screen scrape a random recipe name from chefkoch.de
and display its name on the terminal
From the site random recipes are displayed, so what I must do is
Lets test with bash, what needs to be done to screen scrape the right stuff
Will give us a menu suggestion
Gefuellte Muschelnudeln
Do this in rust.
Solution
First we need to download the web page reqwest
crate seems suitable for this job. Next the document is parsed with select
and filtered.
Next question, where can I have live demos of my code? For now I’ll upload it to my github page, see