-
Notifications
You must be signed in to change notification settings - Fork 83
Update rust-vmm-ci to start using cargo-all-features, and drop downstream test definitions. #326
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
a650a7c
ee8de6a
021606e
be29efb
d3cfd78
d900ee9
1f6aafb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,10 +36,15 @@ pub use self::vring::{ | |
VringMutex, VringRwLock, VringState, VringStateGuard, VringStateMutGuard, VringT, | ||
}; | ||
|
||
/// Due to the way `xen` handles memory mappings we can not combine it with | ||
/// `postcopy` feature which relies on persistent memory mappings. Thus we | ||
/// disallow enabling both features at the same time. | ||
#[cfg(all(feature = "postcopy", feature = "xen"))] | ||
// Due to the way `xen` handles memory mappings we can not combine it with | ||
// `postcopy` feature which relies on persistent memory mappings. Thus we | ||
// disallow enabling both features at the same time. | ||
#[cfg(all( | ||
not(RUTSDOC_disable_feature_compat_errors), | ||
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. s/RUTSDOC/RUSTDOC |
||
not(doc), | ||
feature = "postcopy", | ||
feature = "xen" | ||
))] | ||
compile_error!("Both `postcopy` and `xen` features can not be enabled at the same time."); | ||
|
||
/// An alias for `GuestMemoryAtomic<GuestMemoryMmap<B>>` to simplify code. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,9 @@ vm-memory = { workspace = true, features=["backend-mmap"] } | |
tempfile = "3.2.0" | ||
serial_test = "3.0" | ||
|
||
[lints.rust] | ||
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(RUTSDOC_disable_feature_compat_errors)'] } | ||
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. s/RUTSDOC/RUSTDOC |
||
|
||
[package.metadata.cargo-all-features] | ||
skip_feature_sets = [ | ||
["xen", "postcopy"] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,10 +51,15 @@ pub mod vhost_user; | |
#[cfg(feature = "vhost-vsock")] | ||
pub mod vsock; | ||
|
||
/// Due to the way `xen` handles memory mappings we can not combine it with | ||
/// `postcopy` feature which relies on persistent memory mappings. Thus we | ||
/// disallow enabling both features at the same time. | ||
#[cfg(all(not(doc), feature = "postcopy", feature = "xen"))] | ||
// Due to the way `xen` handles memory mappings we can not combine it with | ||
// `postcopy` feature which relies on persistent memory mappings. Thus we | ||
// disallow enabling both features at the same time. | ||
#[cfg(all( | ||
not(RUTSDOC_disable_feature_compat_errors), | ||
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. s/RUTSDOC/RUSTDOC |
||
not(doc), | ||
feature = "postcopy", | ||
feature = "xen" | ||
))] | ||
compile_error!("Both `postcopy` and `xen` features can not be enabled at the same time."); | ||
|
||
/// Error codes for vhost operations | ||
|
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.
s/RUTSDOC/RUSTDOC