#todo

macro todo-or-die

TODOs checked at compile time

4 releases

0.1.2 Sep 17, 2021
0.1.1 Sep 6, 2021
0.1.0 Sep 5, 2021
0.0.0 Jul 8, 2021

#82 in #todo

Download history 94/week @ 2022-11-27 116/week @ 2022-12-04 91/week @ 2022-12-11 188/week @ 2022-12-18 132/week @ 2022-12-25 94/week @ 2023-01-01 153/week @ 2023-01-08 187/week @ 2023-01-15 46/week @ 2023-01-22 84/week @ 2023-01-29 72/week @ 2023-02-05 59/week @ 2023-02-12 72/week @ 2023-02-19 140/week @ 2023-02-26 80/week @ 2023-03-05 45/week @ 2023-03-12

341 downloads per month
Used in 2 crates

MIT license

26KB
534 lines

todo-or-die

todo-or-die provides procedural macros that act as checked reminders.

Build status Crates.io Documentation

Examples

// trigger a compile error if we're past a certain date
todo_or_die::after_date!(3000, 1, 1); // its the year 3000!

// or a GitHub issue has closed
todo_or_die::issue_closed!("rust-lang", "rust", 44265); // GATs are here!

// or the latest version of a crate matches some expression
todo_or_die::crates_io!("serde", ">1.0.9000"); // its over 9000!

More information about this crate can be found in the crate documentation.

The name was shamelessly stolen from the ruby gem todo_or_die.

License

This project is licensed under the MIT license.

Dependencies

~0.8–9MB
~164K SLoC