vm-detect 0.1.0

Detect if your rust code is running under a virtual machine (only for x86_64 and x86)
Documentation
  • Coverage
  • 90%
    27 out of 30 items documented0 out of 24 items with examples
  • Size
  • Source code size: 6.55 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 882.09 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • polloloco/vm-detect
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • polloloco

Basic VM detection for x86 and x86_64

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