A clean, modular Rust library for comprehensive x86_64 CPU feature detection with a beautiful command-line interface.
cargo build --release --libThis produces:
libcpudetect.rlib(Rust static library)libcpudetect.so(dynamic library on Linux)libcpudetect.a(C-compatible static library)
cargo build --release --bin lscpucargo build --release- ✅ SIMD Extensions: SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX, AVX2, AVX-512 (all variants), AMX
- ✅ Cryptography: AES-NI, SHA, PCLMULQDQ, GFNI, VAES, VPCLMULQDQ
- ✅ Security:
- Speculation control (IBRS, IBPB, STIBP, SSBD)
- Memory protection (SMEP, SMAP, PKU, PKS, CET, UMIP)
- Security extensions (SGX, TME, Key Locker)
- Vulnerability mitigations (L1D_FLUSH, MD_CLEAR, etc.)
- ✅ Virtualization: VMX (Intel VT-x), SVM (AMD-V), hypervisor detection
- ✅ Performance: BMI1/2, ADX, POPCNT, ERMS, FSRM, FMA, hardware prefetchers
- ✅ Memory Management: 5-level paging (LA57), 1GB pages, PCID, INVPCID
- ✅ Modern Extensions:
- Intel: AMX, AVX-512 FP16, UINTR, SERIALIZE, WAITPKG, ENQCMD
- AMD: CLZERO, WBNOINVD, SSE4a, XOP, FMA4, TBM
- ✅ Debug & Power: Intel PT, Architectural LBR, HWP, MONITOR/MWAIT
- ✅ Hybrid Architecture: P-core/E-core detection (Intel 12th gen+)
- Color-coded output by feature category
- Clean, organized presentation
- Unicode box drawing characters
- Feature grouping (SIMD, Cryptography, Security, etc.)
- Modular design following Unix philosophy
- Each module does one thing well`
- Zero-cost abstractions
- Minimal dependencies
Apache-2.0