https://github.com/todotxt-rs/parser
Parser for the todo.txt format
https://github.com/todotxt-rs/parser
todotxt
Last synced: 6 months ago
JSON representation
Parser for the todo.txt format
- Host: GitHub
- URL: https://github.com/todotxt-rs/parser
- Owner: todotxt-rs
- License: mit
- Created: 2017-12-04T12:26:08.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2025-04-04T13:05:30.000Z (6 months ago)
- Last Synced: 2025-04-12T20:07:41.333Z (6 months ago)
- Topics: todotxt
- Language: Rust
- Homepage:
- Size: 314 KB
- Stars: 34
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Todo-txt
[](https://github.com/sanpii/todo-txt/actions?query=workflow%3A.github%2Fworkflows%2Fci.yml)
[](https://gitlab.com/sanpi/todo-txt/commits/main)Parser for the [todo.txt](https://github.com/todotxt/todo.txt) format.
## Usage
Add it to your dependencies:
```toml
[dependencies]
todo-txt = "3.0"
```And use it:
```rust
use std::str::FromStr;fn main()
{
let line = "x (A) 2016-05-20 2016-04-30 measure space for +chapelShelving @chapel due:2016-05-30";
let task = todo_txt::Task::from_str(line);println!("{:#?}", task);
}
```## Features
* `config`: Add `Config` struct to handle configuration like todo.txt-cli;
* `serde`: (De)serialization with serde. See
[serialization.rs](examples/serialization.rs).
* `extended`: Provide a non-standard extended task type who provides common
extra features like recurrence.