File tree Expand file tree Collapse file tree 4 files changed +2
-12
lines changed Expand file tree Collapse file tree 4 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ required-features = ["multi-thread"]
9898[[bench ]]
9999name = " spdlog_rs"
100100path = " benches/spdlog-rs/spdlog_rs.rs"
101+ required-features = [" multi-thread" ]
101102[[bench ]]
102103name = " spdlog_rs_compare_with_cpp_spdlog"
103104path = " benches/spdlog-rs/compare_with_cpp_spdlog.rs"
@@ -106,6 +107,7 @@ harness = false
106107name = " spdlog_rs_compare_with_cpp_spdlog_async"
107108path = " benches/spdlog-rs/compare_with_cpp_spdlog_async.rs"
108109harness = false
110+ required-features = [" multi-thread" ]
109111[[bench ]]
110112name = " spdlog_rs_pattern"
111113path = " benches/spdlog-rs/pattern.rs"
Original file line number Diff line number Diff line change @@ -45,14 +45,6 @@ macro_rules! unavailable_bench {
4545 } ;
4646}
4747
48- #[ macro_export]
49- macro_rules! required_multi_thread_feature {
50- ( ) => {
51- #[ cfg( not( feature = "multi-thread" ) ) ]
52- compile_error!( "please rerun `cargo bench` with `--features multi-thread`" ) ;
53- } ;
54- }
55-
5648#[ macro_export]
5749macro_rules! aggregate_bench_main {
5850 ( ) => {
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ use spdlog::{
1717} ;
1818use test:: black_box;
1919
20- required_multi_thread_feature ! ( ) ;
21-
2220fn bench (
2321 policy : OverflowPolicy ,
2422 file_name : & str ,
Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ include!(concat!(
2121) ) ;
2222use test_utils:: * ;
2323
24- required_multi_thread_feature ! ( ) ;
25-
2624enum Mode {
2725 Sync ,
2826 Async ,
You can’t perform that action at this time.
0 commit comments