Cupid
Native Rust access to the x86 and x86_64 CPUID instruction.
Overview
extern crate cupid;
Cupid currently requires a Rust nightly build as it makes use of inline assembly. Chances are good that if you want to use the functionality provided, you are also doing some low-level trickery, so hopefully this won't be too inconvenient.
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
- Fork it ( https://github.com/shepmaster/cupid/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Add a failing test.
- Add code to pass the test.
- Commit your changes (
git commit -am 'Add some feature'
) - Ensure tests pass.
- Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request