16 releases (7 stable)

2.1.0 Feb 28, 2021
2.0.0 Jul 10, 2020
2.0.0-rc1 Jun 21, 2020
1.4.0 Feb 14, 2020
0.8.0 Dec 20, 2017

#117 in Parser implementations

Download history 66/week @ 2021-01-16 38/week @ 2021-01-23 92/week @ 2021-01-30 85/week @ 2021-02-06 144/week @ 2021-02-13 73/week @ 2021-02-20 78/week @ 2021-02-27 43/week @ 2021-03-06 60/week @ 2021-03-13 151/week @ 2021-03-20 120/week @ 2021-03-27 45/week @ 2021-04-03 60/week @ 2021-04-10 65/week @ 2021-04-17 48/week @ 2021-04-24 35/week @ 2021-05-01

298 downloads per month

MIT license

24KB
665 lines

Todo-txt

Build Status Build Status

Parser for the todo.txt format.

Usage

Add it to your dependencies:

[dependencies]
todo-txt = "2.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.5MB
~93K SLoC