Never forget your in-code Todos
Switch branches/tags
Nothing to show
Clone or download
Latest commit 2b74954 Dec 21, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src updated to rust 2018 Dec 21, 2018
tests
.gitignore
Cargo.toml updated to rust 2018 Dec 21, 2018
LICENSE-APACHE.txt initial commit Nov 24, 2018
LICENSE-MIT.txt initial commit Nov 24, 2018
README.md initial commit Nov 24, 2018

README.md

Todo Macro

Todo macro ensures you never forget about your in-code todos.

Usage

// todo fix this
let x = 5 - 4;

The todo above can simply be forgotten or ignored. Using Todo macro looks like this:

todo!("Convert this to let x = 1; by the end of the year", "2018-12-31");
let x = 5 - 4;

The todo macro ensures todos are fixed by their deadline, or the code will not compile (and the developer will see a helpful error message). If the deadline has not passed, the check is stripped out and there is no trace of it in the compiled code.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.