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"]
3131with-time = [" time" ]
3232with-uuid = [" uuid" ]
3333
34+ no-logging = []
35+
3436[dependencies ]
3537bufstream = " 0.1"
3638fallible-iterator = " 0.1.3"
Original file line number Diff line number Diff line change 7373extern crate bufstream;
7474extern crate fallible_iterator;
7575extern crate hex;
76+ #[ cfg( not( feature = "no-logging" ) ) ]
7677#[ macro_use]
7778extern crate log;
7879extern crate phf;
Original file line number Diff line number Diff line change @@ -25,3 +25,13 @@ macro_rules! bad_response {
2525 return Err ( :: error:: Error :: Io ( :: bad_response( ) ) ) ;
2626 } )
2727}
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