diff options
author | 2016-01-09 17:29:29 +0100 | |
---|---|---|
committer | 2016-01-10 13:18:44 +0100 | |
commit | 38f533c3f6aeecc112641012e4898e2e5bb8879a (patch) | |
tree | 12256790daa516f13b99d79aea3810ca22b8c85f /src | |
parent | 5dfbd4bdf2c9cc66e6e1b2ffe8259f8b806adcd3 (diff) | |
download | rust-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.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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::*; |