23 releases (12 stable)

3.1.0 Jul 11, 2023
3.0.1 Feb 8, 2023
3.0.0-beta.2 Jul 22, 2022
3.0.0-beta.1 Mar 27, 2022
0.8.0 Dec 20, 2017

#716 in Parser implementations

Download history 45/week @ 2024-07-21 146/week @ 2024-07-28 7/week @ 2024-08-18 8/week @ 2024-08-25 36/week @ 2024-09-01 15/week @ 2024-09-15 42/week @ 2024-09-22 30/week @ 2024-09-29 5/week @ 2024-10-06 2/week @ 2024-10-13 10/week @ 2024-10-20 7/week @ 2024-10-27 36/week @ 2024-11-03

55 downloads per month
Used in 3 crates

MIT license

29KB
803 lines

Todo-txt

Github actions Build Status

Parser for the todo.txt format.

Usage

Add it to your dependencies:

[dependencies]
todo-txt = "3.0"

And use it:

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

  • serde-support: (De)serialization with serde. See serialization.rs.
  • extended: Provide a non-standard extended task type who provides common extra features like recurrence.

Dependencies

~4–11MB
~117K SLoC