{"id":16278554,"url":"https://github.com/dezoito/rust-todo-list","last_synced_at":"2025-09-18T16:30:48.389Z","repository":{"id":204973117,"uuid":"713102437","full_name":"dezoito/rust-todo-list","owner":"dezoito","description":"A TODO List application in Rust, using SQLite for data persistence.","archived":false,"fork":false,"pushed_at":"2023-11-19T14:09:10.000Z","size":16,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-31T22:32:03.595Z","etag":null,"topics":["begginer-friendly","cli","rust","sql","tests"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dezoito.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-01T20:58:27.000Z","updated_at":"2024-10-29T01:04:25.000Z","dependencies_parsed_at":"2023-11-19T15:36:39.376Z","dependency_job_id":null,"html_url":"https://github.com/dezoito/rust-todo-list","commit_stats":null,"previous_names":["dezoito/rust-todo-list"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dezoito%2Frust-todo-list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dezoito%2Frust-todo-list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dezoito%2Frust-todo-list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dezoito%2Frust-todo-list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dezoito","download_url":"https://codeload.github.com/dezoito/rust-todo-list/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233498369,"owners_count":18685194,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["begginer-friendly","cli","rust","sql","tests"],"created_at":"2024-10-10T18:58:56.731Z","updated_at":"2025-09-18T16:30:42.856Z","avatar_url":"https://github.com/dezoito.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust Todo List\n\nThis is a simple command line todo list app written in Rust as an exercise with specific goals in mind:\n\n- Use a database to persist todos.\n- Minimize the use of `unwrap()` and `expect()` calls.\n- Include relevant working test cases, even if they are not 100% necessary.\n\nThe idea for this project was inspired by [Top 15 Rust Projects To Elevate Your Skills](https://zerotomastery.io/blog/rust-practice-projects/) and the suggested [CLI todo app](https://github.com/sioodmy/todo).\n\nIf you are new to Rust and would like a better understanding on some of the coding and design decisions for this project, please check my [Rust Todo SQL Example Application](https://dezoito.github.io/2023/11/01/rust-todo-example-application.html) article!\n\n## Available commands\n\n```\nAvailable commands:\n\n    - add [TASK]\n        Ads new task/s\n        Example: todo add \"Build a tree\"\n\n    - list\n        Lists all tasks\n        Example: todo list\n\n    - toggle [ID]\n        Toggles the status of a task (Done/Pending)\n        Example: todo toggle 2\n\n    - rm [ID]\n        Removes a task\n        Example: todo rm 4\n\n    - sort\n        Sorts completed and pending tasks\n\n    - reset\n        Deletes all tasks\n\n```\n\n## Development commands:\n\n```sh\n# to run once\ncargo run \u003ccommand args\u003e\n\n# to run in watch mode\ncargo watch -c -x \"run -- \u003ccommand args\u003e\"\n\n# to run tests in watch mode\ncargo watch -c -x test\n```\n\n## Notes:\n\nYou need to install [cargo-watch](https://crates.io/crates/cargo-watch).\n\n```sh\ncargo install cargo-watch\n```\n\nThe executable will attempt to create a directory called `todo_db` in your `HOME` or `PROFILE` folder, depending on the OS you are using.\n\nThis directory is used to store the SQLITE database.\n\n## Building\n\nI use Linux, so building an executable means running\n\n```sh\ncargo build --release\n```\n\nThere's also a convenience script called `./build.sh` that builds and moves the executable to `/usr/local/bin`\n\nCross-Compile for Windows:\nMake sure you have the Rust target for Windows installed. You can do this with the following command:\n\n```sh\nrustup target add x86_64-pc-windows-gnu\n```\n\nThen, build your Rust project with the Windows target specified:\n\n```sh\ncargo build --release --target x86_64-pc-windows-gnu\n```\n\nAfter you build, copy the resulting executable into your `path` and run it:\n\n```sh\ntodo list\n```\n\n## References:\n\n- https://zerotomastery.io/blog/rust-practice-projects/\n- https://github.com/sioodmy/todo\n- https://tedspence.com/investigating-rust-with-sqlite-53d1f9a41112\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdezoito%2Frust-todo-list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdezoito%2Frust-todo-list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdezoito%2Frust-todo-list/lists"}