8 releases (5 breaking)
Uses old Rust 2015
0.6.1 | Oct 7, 2018 |
---|---|
0.6.0 | Jun 4, 2018 |
0.5.0 | Nov 21, 2017 |
0.4.0 | Nov 9, 2017 |
0.1.0 | Jul 12, 2015 |
#603 in Hardware support
8,254 downloads per month
Used in 5 crates
(3 directly)
41KB
1K
SLoC
Cupid
Native Rust access to the x86 and x86_64 CPUID instruction.
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
- 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
No runtime deps
~32KB