aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Gerd Zellweger <mail@gerdzellweger.com> 2016-01-15 08:27:07 +0100
committerGravatar Gerd Zellweger <mail@gerdzellweger.com> 2016-01-15 08:27:07 +0100
commitef357e448e66f16144c783b6d8485571c3b9a2a5 (patch)
tree2b09b8518a9167703155eecf96174e1b343fd6bc /src
parent5dfbd4bdf2c9cc66e6e1b2ffe8259f8b806adcd3 (diff)
parent0d211db84e0a3b4e5931fa6848d3b2692aa52d1f (diff)
downloadrust-x86-ef357e448e66f16144c783b6d8485571c3b9a2a5.tar.gz
rust-x86-ef357e448e66f16144c783b6d8485571c3b9a2a5.tar.zst
rust-x86-ef357e448e66f16144c783b6d8485571c3b9a2a5.zip
Merge pull request #10 from phil-opp/make-perfcnt-optional
Make `perfcnt` module optional
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::*;