diff --git a/vhost/CHANGELOG.md b/vhost/CHANGELOG.md index d4e62dd6..aa13a7be 100644 --- a/vhost/CHANGELOG.md +++ b/vhost/CHANGELOG.md @@ -6,6 +6,7 @@ ### Changed ### Deprecated ### Fixed +- [[#304]](https://github.com/rust-vmm/vhost/pull/304) Fix building docs. ## v0.14.0 diff --git a/vhost/src/lib.rs b/vhost/src/lib.rs index 74eece9b..b3822afd 100644 --- a/vhost/src/lib.rs +++ b/vhost/src/lib.rs @@ -54,7 +54,7 @@ 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(feature = "postcopy", feature = "xen"))] +#[cfg(all(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