Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/hyperlight_host/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#![deny(dead_code, missing_docs, unused_mut)]
#![warn(dead_code, missing_docs, unused_mut)]
//! This crate contains an SDK that is used to execute specially-
// compiled binaries within a very lightweight hypervisor environment.

Expand Down
6 changes: 6 additions & 0 deletions src/hyperlight_host/src/sandbox/hypervisor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,9 @@ pub(crate) enum HypervisorType {
#[cfg(target_os = "windows")]
Whp,
}

// Compiler error if no hypervisor type is available
#[cfg(not(any(kvm, mshv, target_os = "windows")))]
compile_error!(
"No hypervisor type is available for the current platform. Please enable either the `kvm` or `mshv` cargo feature."
);
Loading