Usage:
use vm_detect::{vm_detect, Detection};
fn main() {
// Run detection
let detection = vm_detect();
// Inspect detections
if detection.contains(Detection::HYPERVISOR_BIT) {
println!("Hypervisor bit set!");
}
}
import from https://gitlab.com/polloloco/vm-detect
Usage:
use vm_detect::{vm_detect, Detection};
fn main() {
// Run detection
let detection = vm_detect();
// Inspect detections
if detection.contains(Detection::HYPERVISOR_BIT) {
println!("Hypervisor bit set!");
}
}
import from https://gitlab.com/polloloco/vm-detect
MIT License