Crates.io | cargo-issue-lib |
lib.rs | cargo-issue-lib |
version | 0.1.4 |
source | src |
created_at | 2021-07-21 12:33:07.547384 |
updated_at | 2021-07-21 12:58:47.420913 |
description | Tracks open issues during compile time and emits warnings if issues are closed |
homepage | |
repository | https://github.com/kaiserkarel/issue |
max_upload_size | |
id | 425499 |
size | 6,157 |
Ever added a todo based on an open issue (perhaps in one of your dependencies)? Track the issue and be warned when it is closed!
// Our trait implementation never returns an error, but until the `nevertype`
// is stabilized, we need to use the unit type.
#[issue::track(url="https://github.com/rust-lang/rust/issues/35121")]
type Result<T> = core::result::Result<T, ()>;
Once the tracked issue is resolved, a warning will be emitted during compile time.
Locally it is recommended to always run the tracked issue. Alternatively, setting the environment variable
ISSUE_RS_IGNORE
to any value will disable it entirely.
For reproducible builds, set ISSUE_RS_IGNORE
and use the cargo-issue subcommand
as a separate step in CI. This will still require network connectivity however. cargo-issue
offers higher performance
by concurrently tracking issues, which for large codebases, with many tracked issues, can significantly improve
performance as well.