todo-txt 4.2.1

Parser for the todo.txt format
Documentation
1
2
3
4
5
6
7
8
9
10
11
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::Simple::from_str(line).unwrap();

    let json = serde_json::to_string(&task);

    println!("{}", json.expect("Unable to serialize task"));
}