1 2 3 4 5 6 7 8 9 10 11
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!"); } }