diff options
author | 2016-01-15 08:27:07 +0100 | |
---|---|---|
committer | 2016-01-15 08:27:07 +0100 | |
commit | ef357e448e66f16144c783b6d8485571c3b9a2a5 (patch) | |
tree | 2b09b8518a9167703155eecf96174e1b343fd6bc /src | |
parent | 5dfbd4bdf2c9cc66e6e1b2ffe8259f8b806adcd3 (diff) | |
parent | 0d211db84e0a3b4e5931fa6848d3b2692aa52d1f (diff) | |
download | rust-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.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::*; |