microsoft/openvmm
Publicmirrored fromhttps://github.com/microsoft/openvmmAvailable
hyperv/tools/hypestv/src/main.rs
17lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | //! Interactive CLI for Hyper-V VMs. |
| 5 | |
| 6 | mod windows; |
| 7 | |
| 8 | #[cfg(windows)] |
| 9 | fn main() -> anyhow::Result<()> { |
| 10 | pal_async::DefaultPool::run_with(windows::main) |
| 11 | } |
| 12 | |
| 13 | #[cfg(not(windows))] |
| 14 | fn main() { |
| 15 | eprintln!("not supported on this platform"); |
| 16 | std::process::exit(1); |
| 17 | } |
| 18 | |