{"repo":"0x61nas/todo2","free":true,"listed":false,"github":"https://github.com/0x61nas/todo2","clone":"git clone https://github.com/0x61nas/todo2.git","description":"todo2(a.k.a. todo or die) - A better todo! macro inspired from searls/todo_or_die","language":"Rust","stars":11,"topics":["hacktoberfest","hacktoberfest-accepted","proc-macro","rust","rust-crate","todo"],"license":"MIT","category":"productivity","readme_excerpt":"todo2 todo2(a.k.a. todo or die) - A better todo! macro inspired from searls/todo or die This crate provides a better todo! macro, which allows you to specify the deadline and the condition when the code should be implemented. and when the condition or the deadline is met, the code will panic or emit a compile error, or just log an error. Note: this crate is still in the early development, so it may have some bugs, and the API may change in the future. If you have any suggestions or you found a bug, please open an issue or a pull request. Usage Add this to your Cargo.toml : or just run this command: Features - log - Just logs an error instead of panicking or emitting a compile error, this may useful in the serious projects, this feature respects that you have added the log crate to your dependencies - compile-error - Emits a compile error instead of panicking. - with-chrono - Enables the chrono this enables you to specify the deadline for the by condition using the chrono::Utc or chrono::DateTime types. not implemented yet - with-time - Enables the time this enables you to specify the deadline for the by condition using the time::OffsetDateTime type or the time::macros::datetime macro. not implemented yet - and-time - allows you to specify a specific time of the day in the by condition - original-compatibility - Allows you to use this macro without pass any arguments, or with only the message. - strict-syntax - Enables the strict syntax,, just too force you to put a comma or a","default_branch":null,"files":null,"tree":[],"storefront":"/r/0x61nas","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/0x61nas/todo2/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}