#issue #github #issue-tracking #gitlab #compile-time

build cargo-issue-lib

Tracks open issues during compile time and emits warnings if issues are closed

2 releases

0.1.4 Jul 21, 2021
0.1.2 Jul 21, 2021

#682 in Build Utils

Download history 6/week @ 2024-02-17 11/week @ 2024-02-24 7/week @ 2024-03-02 6/week @ 2024-03-09 1/week @ 2024-03-16 8/week @ 2024-03-23 46/week @ 2024-03-30 12/week @ 2024-04-06

68 downloads per month
Used in 3 crates (2 directly)

Custom license

6KB
85 lines

Issue-rs

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.

CI and Configuration

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.

TODO

  • Support Gitlab
  • Support arbitrary URLS/private instances
  • Authentication for private repos

Dependencies

~4–19MB
~267K SLoC