Macro todo_or_die::issue_closed[][src]

issue_closed!() { /* proc-macro */ }
Expand description

Trigger a compile error if an issue has been closed.

Note that this will make network requests during compile which may make your builds flaky at times.

Requires the github feature to be enabled.

Example

todo_or_die::issue_closed!("tokio-rs", "axum", 1);

Authentication

issue_closed will first look for the environment variable TODO_OR_DIE_GITHUB_TOKEN and then GITHUB_TOKEN, if either are found its value will be used as the auth token when making requests to the GitHub API. This allows you to access private repos and get more generous rate limits.