diff options
author | 2016-01-18 09:24:58 +0100 | |
---|---|---|
committer | 2016-01-18 09:24:58 +0100 | |
commit | f232011fe0ef21fbfe9fefc063501da53e4c1d74 (patch) | |
tree | f644a1848a1070d66a09be39654bc812de31fe35 | |
parent | a152e54a9df95a557db7171982a72a9cd73a5e78 (diff) | |
download | rust-x86-f232011fe0ef21fbfe9fefc063501da53e4c1d74.tar.gz rust-x86-f232011fe0ef21fbfe9fefc063501da53e4c1d74.tar.zst rust-x86-f232011fe0ef21fbfe9fefc063501da53e4c1d74.zip |
Include performance counters in default build.
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | README.md | 9 | ||||
-rw-r--r-- | src/lib.rs | 2 |
3 files changed, 10 insertions, 3 deletions
@@ -20,7 +20,7 @@ license = "MIT" build = "build.rs" [features] -default = [] +default = ["performance-counter"] performance-counter = ["phf", "phf_codegen", "csv", "serde_json"] [[test]] @@ -16,5 +16,12 @@ Currently supports This library depends on libcore so it can be used in kernel level code. +## Features + + * performance-counter: Includes the performance counter information. Note this feature + can increase compilation time significantly due to large statically generated hash-tables + that are included in the source. In case you do not need performance-counter information + you can disable it using: `cargo build --no-default-features` + ## Documentation - * [API Documentation](http://gz.github.io/rust-x86/x86/)
\ No newline at end of file + * [API Documentation](http://gz.github.io/rust-x86/x86/) @@ -1,4 +1,4 @@ -#![feature(no_std, core_str_ext, core_slice_ext, const_fn)] +#![feature(const_fn)] #![feature(asm)] #![no_std] #![cfg_attr(test, allow(unused_features))] |