todo_by

Checks if a “todo by” date has passed at compile time.

To use this macro, you can add a date and a comment (such as above a function or statement) like so:

rs todo_by!("2023-06-01"); fn my_function() { // TODO: Implement this function by June 1st, 2023 }

If the current date is after June 1st, 2023, the macro will generate a compile error with the message “TODO by 2023-06-01 has already passed”. If the current date is on or before June 1st, 2023, the macro will do nothing and the code will compile normally.

TODOs