vm-detect 0.1.0

Detect if your rust code is running under a virtual machine (only for x86_64 and x86)
Documentation
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!");
    }
}