| Crates.io | vm-detect |
| lib.rs | vm-detect |
| version | 0.1.0 |
| created_at | 2023-09-01 12:57:58.178146+00 |
| updated_at | 2023-09-01 12:57:58.178146+00 |
| description | Detect if your rust code is running under a virtual machine (only for x86_64 and x86) |
| homepage | |
| repository | https://gitlab.com/polloloco/vm-detect |
| max_upload_size | |
| id | 960882 |
| size | 7,024 |
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!");
}
}