Cargo Features

x86 has no features set by default.

[dependencies]
x86 = { version = "0.52.0", features = ["performance-counter", "utest", "vmtest", "unstable"] }
performance-counter = csv, phf, phf_codegen, serde_json

Affects x86::perfcnt

utest

Note we have to choose between regular tests and x86test at the moment, so we use features (limitation in https://github.com/rust-lang/rust/issues/50297) Run user-space tests, i.e. regular #[test]

vmtest

Run VM tests, i.e., the #[x86test] ones

unstable

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

phf_codegen build performance-counter?

Enables phf_codegen ^0.9.0

csv build performance-counter?
serde_json build performance-counter?
phf performance-counter?

Enables phf ^0.9.0