Assuming you know nothing about Rust, through the Learn Rust by 500 lines code tutorial, step by step to build the project from scratch, you will learn:
Rust common syntax
Rust module system (package/binary crate/library crate/mod/pub/use)
Rust ownership model (Bernstein conditions)
Rust lifetime
Rust error/null handling model (Result/Option)
Rust generic
Rust pattern matching (if let , match ...)
Rust unit test
Rust file I/O (File Seek/Buffed File I/O)
Rust manipulating environment variables
Rust command line parameter parsing
Rust release package to crate.io
The general process of developing a program (requirements/design/implementation/testing/release/maintenance)
Handwritten serialization/deserialization from scratch
Implement the recycle bin function (virtualization concept)
Architecture
Storage
Use a local file $HOME/.rtd.csv store all data
After completing this tutorial or installing RTD directly, you will get:
Extremely lightweight and concise todo command line application
Cross-platform, Rust's excellent build system naturally supports cross-platform
Safe, supports recycle bin, completely local, no network, no database
All data storage uses only one local csv file, which can be switched between different machines by copying the csv file
Interesting fact: I use RTD to complete the RTD tutorial :)
If you like my tutorial, don't forget to give me a star~
Prepare
Rust is naturally cross-platform. This project is built and tested in the linux environment, and Windows/MacOS are also supported. You can choose to download the corresponding Cargo according to your own operating system.
Cargo Rust's package management and build tool, can be installed directly through the Rust official websiterustup one line command. Then, all things will be done by Cargo, so cute, right?