aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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::*;