26 releases (15 stable)

4.1.1 Jan 14, 2025
4.1.0 Dec 19, 2024
3.1.0 Jul 11, 2023
3.0.1 Feb 8, 2023
0.8.0 Dec 20, 2017

#279 in Parser implementations

Download history 11/week @ 2024-10-22 7/week @ 2024-10-29 53/week @ 2024-11-05 42/week @ 2024-11-12 19/week @ 2024-11-19 12/week @ 2024-11-26 28/week @ 2024-12-03 53/week @ 2024-12-10 561/week @ 2024-12-17 60/week @ 2024-12-31 43/week @ 2025-01-07 177/week @ 2025-01-14 47/week @ 2025-01-21 6/week @ 2025-01-28 121/week @ 2025-02-04

359 downloads per month
Used in 3 crates

MIT license

41KB
1K SLoC

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

  • config: Add Config struct to handle configuration like todo.txt-cli;
  • serde: (De)serialization with serde. See serialization.rs.
  • extended: Provide a non-standard extended task type who provides common extra features like recurrence.

Dependencies

~4–13MB
~150K SLoC