Skip to content

MarcelDev/vmaware-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vmaware-rs

Rust bindings for VMAware, a cross-platform C++ framework for virtual machine detection.

The package is published as vmaware-rs, while the Rust library is imported as vmaware.

Installation

[dependencies]
vmaware-rs = { git = "https://github.com/MarcelDev/vmaware-rs.git" }

This crate builds a small C++17 wrapper around the vendored VMAware header. A working C++ compiler is required.

Usage

fn main() -> Result<(), vmaware::Error> {
    println!("is vm: {}", vmaware::detect()?);
    println!("brand: {}", vmaware::brand()?);
    println!("type: {}", vmaware::vm_type()?);
    println!("conclusion: {}", vmaware::conclusion()?);
    println!("percentage: {}%", vmaware::percentage()?);

    Ok(())
}

You can run a small example:

cargo run --example basic

License

Licensed under the MIT License, matching upstream VMAware. The vendored VMAware source is included under deps/vmaware as a Git submodule.

About

Rust bindings for VMAware, a cross-platform library for VM detection

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors