aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJoey Sacchini <joey@sacchini.net>2020-10-19 13:02:37 -0400
committerJoey Sacchini <joey@sacchini.net>2020-10-19 13:02:37 -0400
commitb1630cb4decff257085ea1e55ba72c7dcfbdfd4b (patch)
tree26dd13da128f2be4f9bbcf379ce3ea457a9c1f94 /src/lib.rs
parent5817bb92e1e32ec767ad11abd49f2c7153703ea8 (diff)
downloadmcproto-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.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 6342c41..1a41cce 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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;