Registry / utility / cpufeatures

cpufeatures

JSON →
library0.3.0rscratesunverified

Lightweight runtime CPU feature detection for aarch64, loongarch64, and x86/x86_64 targets, with no_std support.

# Cargo.toml [dependencies] cpufeatures = "0.3.0"
INSTALL
IMPORT
SIG · CPUFEATURES
C
cpufeatures
utilityrustv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

aes
use cpufeatures::aes;

Checks if AES CPU feature is available.

use cpufeatures::aes; fn main() { if aes::get() { println!("AES instructions supported"); } else { println!("AES not supported"); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
cpufeatures — cargo add cpufeatures · libregistry