Skip to content

Commit 4ac83ac

Browse files
committed
test: Gate benchmarks on a feature.
1 parent 8112c51 commit 4ac83ac

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ serde = {version = ">=0.6.6, <0.9", optional = true}
2525
[features]
2626
serde-serialization = [ "serde" ]
2727
heap_size = [ "heapsize" ]
28+
bench = []

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#![crate_name = "cssparser"]
66
#![crate_type = "rlib"]
77

8-
#![feature(test)]
8+
#![cfg_attr(feature = "bench", feature(test))]
99
#![deny(missing_docs)]
1010

1111
/*!

src/tests.rs

+5
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)