Recently, I built a simple file conversion CLI while studying Rust.
During the design phase, I decided to use structopt and serde. The hardest part during implementation was error handling, but the Result type and the ? operator turned out to be very convenient.
Also, thanks to Rust's ownership system, I was able to develop without worrying about memory leaks.
Lessons learned:
- The cargo ecosystem is richer than I thought.
- Actively using pattern matching makes the code cleaner.
- I spent a lot of time catching build errors at first, but after getting used to it, it became stable.
I hope this helps those working on similar projects.