aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Philipp Oppermann <dev@phil-opp.com> 2016-01-09 17:29:29 +0100
committerGravatar Philipp Oppermann <dev@phil-opp.com> 2016-01-10 13:18:44 +0100
commit38f533c3f6aeecc112641012e4898e2e5bb8879a (patch)
tree12256790daa516f13b99d79aea3810ca22b8c85f /src
parent5dfbd4bdf2c9cc66e6e1b2ffe8259f8b806adcd3 (diff)
downloadrust-x86-38f533c3f6aeecc112641012e4898e2e5bb8879a.tar.gz
rust-x86-38f533c3f6aeecc112641012e4898e2e5bb8879a.tar.zst
rust-x86-38f533c3f6aeecc112641012e4898e2e5bb8879a.zip
Make the perfcnt module optional (opt-in)
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index a6283db..7640900 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -18,6 +18,7 @@ macro_rules! bit {
#[macro_use]
extern crate raw_cpuid;
+#[cfg(feature = "performance-counter")]
#[macro_use]
extern crate phf;
@@ -38,6 +39,7 @@ pub mod segmentation;
pub mod task;
pub mod dtables;
pub mod syscall;
+#[cfg(feature = "performance-counter")]
pub mod perfcnt;
pub mod cpuid {
pub use raw_cpuid::*;