File tree 4 files changed +2
-12
lines changed
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"]
98
98
[[bench ]]
99
99
name = " spdlog_rs"
100
100
path = " benches/spdlog-rs/spdlog_rs.rs"
101
+ required-features = [" multi-thread" ]
101
102
[[bench ]]
102
103
name = " spdlog_rs_compare_with_cpp_spdlog"
103
104
path = " benches/spdlog-rs/compare_with_cpp_spdlog.rs"
@@ -106,6 +107,7 @@ harness = false
106
107
name = " spdlog_rs_compare_with_cpp_spdlog_async"
107
108
path = " benches/spdlog-rs/compare_with_cpp_spdlog_async.rs"
108
109
harness = false
110
+ required-features = [" multi-thread" ]
109
111
[[bench ]]
110
112
name = " spdlog_rs_pattern"
111
113
path = " benches/spdlog-rs/pattern.rs"
Original file line number Diff line number Diff line change @@ -45,14 +45,6 @@ macro_rules! unavailable_bench {
45
45
} ;
46
46
}
47
47
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
-
56
48
#[ macro_export]
57
49
macro_rules! aggregate_bench_main {
58
50
( ) => {
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ use spdlog::{
17
17
} ;
18
18
use test:: black_box;
19
19
20
- required_multi_thread_feature ! ( ) ;
21
-
22
20
fn bench (
23
21
policy : OverflowPolicy ,
24
22
file_name : & str ,
Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ include!(concat!(
21
21
) ) ;
22
22
use test_utils:: * ;
23
23
24
- required_multi_thread_feature ! ( ) ;
25
-
26
24
enum Mode {
27
25
Sync ,
28
26
Async ,
You can’t perform that action at this time.
0 commit comments