Includes series of rust programs through my rust journey.
-
ToDo cli app that lets us add task to a json file, and keep track of status of completion.
- Change directory to todo using
cd todo
- To add a task, we need to run
cargo run -- add <TASK NAME>
- To mark a task as complete, we need to run
cargo run -- complete <TASK NAME>
- Change directory to todo using
-
GrepLite is another cli app that searches for a pattern in a file or text passed through stdin.
- Change directory to todo using
cd grep-lite
- To search for a pattern, we need to run
cargo run -- <PATTERN> <FILE>
- Change directory to todo using
-
DieselDemo is sample cli app to test CRUD using ORM in postgres.
- Change directory to todo using
cd diesel_demo
- To search for posts, we need to run
cargo run -bin show_posts
- To write a new post, we need to run
cargo run -bin write_post
- To update a post, we need to run
cargo run -bin update_post <ID>
- To delete a post, we need to run
cargo run -bin delete_post <PATTERN>
- Change directory to todo using