cupid 0.1.0

Native access to the x86 and x86_64 CPUID instruction
Documentation

Cupid

Native Rust access to the x86 and x86_64 CPUID instruction.

Overview

extern crate cupid;

fn main() {
    let info = cupid::feature_information();
    if (info.sse4_2()) { println!("Yay! SSE 4.2 detected!") }
    println!("{:?}", info);
}

See also

  • libcpuid - A C library providing access the 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