aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2021-11-29 14:08:02 +0100
committerMax Audron <audron@cocaine.farm>2021-11-29 14:08:02 +0100
commit81862f5c0ee9676626bb30d8138598c122a2ed1f (patch)
treea04bfa405de0a0fa6683c760f4f3be1169b8c185
parentstatetracker: rewrite sync handling (diff)
remove no longer needed feature flag so we can compile on rust stable
-rw-r--r--Cargo.toml2
-rw-r--r--src/lib.rs6
2 files changed, 6 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 69f0628..92c4ba2 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -53,6 +53,8 @@ sender-prefixes = []
# Support for exchangeable auth backends
authenticators = []
+# Enable the test crate/feature for running benchmarks
+bench = []
default = ["client"]
diff --git a/src/lib.rs b/src/lib.rs
index 070ec35..2e3d3e0 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,5 +1,7 @@
-#![feature(test)]
-#![feature(doc_cfg)]
+#![cfg_attr(all(test, feature = "bench"), feature(test))]
+#[cfg(all(test, feature = "bench"))]
+extern crate test;
+
#[doc = include_str!("../README.md")]
#[cfg_attr(docsrs, feature(doc_cfg))]
extern crate self as libquassel;