microsoft/openvmm

Public

mirrored from https://github.com/microsoft/openvmmAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
release/1.7.2511

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

hyperv/tools/hypestv/src/main.rs

19lines · modecode

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4//! Interactive CLI for Hyper-V VMs.
5
6#![forbid(unsafe_code)]
7
8mod windows;
9
10#[cfg(windows)]
11fn main() -> anyhow::Result<()> {
12 pal_async::DefaultPool::run_with(windows::main)
13}
14
15#[cfg(not(windows))]
16fn main() {
17 eprintln!("not supported on this platform");
18 std::process::exit(1);
19}
20