Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 543 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 543 Bytes

Basic VM detection for x86 and x86_64

Latest version Documentation License

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!");
    }
}