Daily Learnings: Tue, Aug 15, 2023
It is the neglect of timely repair that makes rebuilding necessary. — Richard Whately
Today I spent some time learning more about rust by building a small email signature generator. To be honest, I feel like I didn’t really learn much syntax-wise, as I used ChatGPT + Github Copilot to generate the script based on my comments (which it did incredibly well). That said, I did learn a couple of small things to file away:
- Rust-based programs are incredibly fast
- If you want to compile a small, single-file script, then all you need to do is run
rustc my-script.rs- This will produce an executable file to run on your machine
- You can generate full Rust projects that will take advantage of the Cargo environment (where all of the dev tooling for Rust is, I believe) by using Cargo itself to generate the project boilerplate
- If you’re not in a project with a
cargo.tomlfile, then a lot of the Rust dev tooling won’t work
- If you’re not in a project with a