An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Cupid

Native Rust access to the x86 and x86_64 CPUID instruction.

[![Linux Build Status](https://travis-ci.org/shepmaster/cupid.svg)](https://travis-ci.org/shepmaster/cupid)
[![Windows Build Status](https://ci.appveyor.com/api/projects/status/github/shepmaster/cupid?svg=true&branch=master)](https://ci.appveyor.com/project/shepmaster/cupid)
[![Current Version](https://img.shields.io/crates/v/cupid.svg)](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