Never forget your in-code Todos
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
.gitignore
Cargo.toml
LICENSE-APACHE.txt
LICENSE-MIT.txt
README.md

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.