-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Docs and CI to note MSRV #355
Conversation
61316a8
to
072de2e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks!
@@ -1336,6 +1336,7 @@ macro_rules! set_general_handler_entry { | |||
mod test { | |||
use super::*; | |||
|
|||
#[allow(dead_code)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#[allow(dead_code)] | |
#[cfg(not(windows))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like the downside here is that this change causes cargo test
to emit warning on some of our runs, see https://github.com/rust-osdev/x86_64/runs/5705768152
I think it's easier to just have #[allow(dead_code)]
then trying to keep the helper method's cfg
s in sync with the test below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Signed-off-by: Joe Richey <joerichey@google.com>
This uses the `rust-version` feature added in Rust 1.56 Signed-off-by: Joe Richey <joerichey@google.com>
Signed-off-by: Joe Richey <joerichey@google.com>
27e726d
to
43965df
Compare
This change updates our
README
to note what our Minimum Supported Rust Version (MSRV) is for each feature configuration. It also uses therust-version
cargo feature to make this information consumable by cargo.Our MSRVs are:
not(instructions)
andnot(nightly)
- Rust 1.57instructions
andnot(nightly)
- Rust 1.59nightly
- Rust Nightly (sufficiently recent)I also updated some of our tests so that things would build/test on stable without errors or warnings. Finally, I updated the CI to actually test our MSRV (by moving some of our tests to a different "stable" job).
Signed-off-by: Joe Richey joerichey@google.com