diff options
author | Joey Sacchini <joey@sacchini.net> | 2020-10-19 13:02:37 -0400 |
---|---|---|
committer | Joey Sacchini <joey@sacchini.net> | 2020-10-19 13:02:37 -0400 |
commit | b1630cb4decff257085ea1e55ba72c7dcfbdfd4b (patch) | |
tree | 26dd13da128f2be4f9bbcf379ce3ea457a9c1f94 /src/lib.rs | |
parent | 5817bb92e1e32ec767ad11abd49f2c7153703ea8 (diff) | |
download | mcproto-rs-b1630cb4decff257085ea1e55ba72c7dcfbdfd4b.tar.gz mcproto-rs-b1630cb4decff257085ea1e55ba72c7dcfbdfd4b.tar.bz2 mcproto-rs-b1630cb4decff257085ea1e55ba72c7dcfbdfd4b.zip |
make benchmarks an optional feature so we don't require nightly rust to use this crate
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,9 +1,9 @@ -#![feature(test)] +#![cfg_attr(feature = "bench", feature(test))] #![cfg_attr(not(feature = "std"), no_std)] extern crate alloc; -#[cfg(all(test, feature = "std"))] +#[cfg(all(test, feature = "std", feature = "bench"))] extern crate test; mod deserialize; |