cupid

Crates.iocupid
lib.rscupid
version0.6.1
sourcesrc
created_at2015-07-12 03:14:14.175921
updated_at2018-10-07 22:57:53.581704
descriptionNative access to the x86 and x86_64 CPUID instruction
homepage
repositoryhttps://github.com/shepmaster/cupid
max_upload_size
id2583
size43,289
Jake Goulding (shepmaster)

documentation

https://docs.rs/cupid/

README

Cupid

Native Rust access to the x86 and x86_64 CPUID instruction.

Linux Build Status Windows Build Status Current Version

Documentation

Overview

extern crate cupid;

fn main() {
    let information = cupid::master();
    println!("{:#?}", information);
    if let Some(information) = information {
        if information.sse4_2() {
             println!("SSE 4.2 Available");
        }
    }
}

See also

  • libcpuid - A C library providing access to the CPUID instruction.
  • cpuid - Rust bindings to the libcpuid library.
  • rust-x86 - Another native crate that includes CPUID and more.

Contributing

  1. Fork it ( https://github.com/shepmaster/cupid/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Add a failing test.
  4. Add code to pass the test.
  5. Commit your changes (git commit -am 'Add some feature')
  6. Ensure tests pass.
  7. Push to the branch (git push origin my-new-feature)
  8. Create a new Pull Request
Commit count: 97

cargo fmt