File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ with-serde_json = ["serde_json"]
31
31
with-time = [" time" ]
32
32
with-uuid = [" uuid" ]
33
33
34
+ no-logging = []
35
+
34
36
[dependencies ]
35
37
bufstream = " 0.1"
36
38
fallible-iterator = " 0.1.3"
Original file line number Diff line number Diff line change 73
73
extern crate bufstream;
74
74
extern crate fallible_iterator;
75
75
extern crate hex;
76
+ #[ cfg( not( feature = "no-logging" ) ) ]
76
77
#[ macro_use]
77
78
extern crate log;
78
79
extern crate phf;
Original file line number Diff line number Diff line change @@ -25,3 +25,13 @@ macro_rules! bad_response {
25
25
return Err ( :: error:: Error :: Io ( :: bad_response( ) ) ) ;
26
26
} )
27
27
}
28
+
29
+ #[ cfg( feature = "no-logging" ) ]
30
+ macro_rules! debug {
31
+ ( $( $t: tt) * ) => { }
32
+ }
33
+
34
+ #[ cfg( feature = "no-logging" ) ]
35
+ macro_rules! info {
36
+ ( $( $t: tt) * ) => { }
37
+ }
You can’t perform that action at this time.
0 commit comments