https://github.com/shepmaster/cupid
Get information about the x86 and x86_64 processor
https://github.com/shepmaster/cupid
Last synced: 11 months ago
JSON representation
Get information about the x86 and x86_64 processor
- Host: GitHub
- URL: https://github.com/shepmaster/cupid
- Owner: shepmaster
- License: mit
- Created: 2015-07-07T04:46:00.000Z (almost 11 years ago)
- Default Branch: main
- Last Pushed: 2021-10-16T21:12:51.000Z (over 4 years ago)
- Last Synced: 2025-06-22T18:53:37.833Z (12 months ago)
- Language: Rust
- Size: 664 KB
- Stars: 35
- Watchers: 2
- Forks: 9
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Cupid
Native Rust access to the x86 and x86_64 CPUID instruction.
[](https://travis-ci.org/shepmaster/cupid)
[](https://ci.appveyor.com/project/shepmaster/cupid)
[](https://crates.io/crates/cupid)
[Documentation](https://docs.rs/cupid/)
## Overview
```rust
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](http://libcpuid.sourceforge.net/) - A C library providing
access to the CPUID instruction.
* [cpuid](https://crates.io/crates/cpuid) - Rust bindings to the
libcpuid library.
* [rust-x86](https://github.com/gz/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