-
-
Notifications
You must be signed in to change notification settings - Fork 170
Add unstable
feature and improve CI for feature flags
#590
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
Merged
phip1611
merged 3 commits into
rust-osdev:main
from
nicholasbishop:bishop-add-unstable-feat
Nov 27, 2022
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,12 @@ | |
//! is not a high-performance logger. | ||
//! - `panic-on-logger-errors` (enabled by default): Panic if a text | ||
//! output error occurs in the logger. | ||
//! - `unstable`: Enable functionality that depends on [unstable | ||
//! features] in the nightly compiler. Note that currently the `uefi` | ||
//! crate _always_ requires unstable features even if the `unstable` | ||
//! feature is not enabled, but once a couple more required features | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: there is a small risk that we may not update this comment here when uefi works on stable eventually. |
||
//! are stabilized we intend to make the `uefi` crate work on the | ||
//! stable channel by default. | ||
//! | ||
//! The `global_allocator` and `logger` features require special | ||
//! handling to perform initialization and tear-down. The | ||
|
@@ -48,13 +54,14 @@ | |
//! | ||
//! [`GlobalAlloc`]: alloc::alloc::GlobalAlloc | ||
//! [`uefi-services`]: https://crates.io/crates/uefi-services | ||
//! [unstable features]: https://doc.rust-lang.org/unstable-book/ | ||
|
||
#![feature(abi_efiapi)] | ||
#![feature(maybe_uninit_slice)] | ||
#![feature(negative_impls)] | ||
#![feature(ptr_metadata)] | ||
#![feature(error_in_core)] | ||
#![cfg_attr(feature = "alloc", feature(vec_into_raw_parts))] | ||
#![cfg_attr(feature = "unstable", feature(error_in_core))] | ||
#![cfg_attr(docsrs, feature(doc_auto_cfg))] | ||
#![no_std] | ||
// Enable some additional warnings and lints. | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Unfortunately, this will increase our CI times :/
But for what it's worth, this is a good thing to have, I think
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 might not increase the time actually since the jobs are run in parallel. The times vary from one run to another, but for example in https://github.com/rust-osdev/uefi-rs/actions/runs/3557618653/ the new job took 3m26s, but the aarch64 job took 3m39s, the lint job took 3m40s, and the Windows job took 3m50s. So CI times seem likely to remain about the same as before.
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.
Okay, then forget what I've said. Probably, it is not a big problem then :)