@@ -31,43 +31,25 @@ extern crate regex;
31
31
#[ macro_use]
32
32
extern crate lazy_static;
33
33
34
+ #[ cfg( feature = "logging" ) ]
35
+ #[ macro_use]
36
+ extern crate log;
37
+
38
+ #[ cfg( not( feature = "logging" ) ) ]
39
+ #[ macro_use]
40
+ mod log_stubs;
41
+
42
+ /*
34
43
cfg_if! {
35
44
if #[cfg(feature = "logging")] {
36
45
#[macro_use]
37
46
extern crate log;
38
47
} else {
39
- macro_rules! log {
40
- ( target: $target: expr, $lvl: expr, $( $arg) +) => {
41
- let _ = $target;
42
- let _ = log!( $lvl, $( $arg) +) ;
43
- } ;
44
- ( $lvl: expr, $( $arg: tt) +) => {
45
- let _ = $lvl;
46
- let _ = format_args!( $( $arg) +) ;
47
- } ;
48
- }
49
- macro_rules! error {
50
- ( target: $target: expr, $( $arg: tt) * ) => { log!( $target, $( $arg) * ) ; } ;
51
- ( $( $arg: tt) * ) => { log!( "" , $( $arg) * ) ; } ;
52
- }
53
- macro_rules! warn {
54
- ( target: $target: expr, $( $arg: tt) * ) => { log!( $target, $( $arg) * ) ; } ;
55
- ( $( $arg: tt) * ) => { log!( "" , $( $arg) * ) ; } ;
56
- }
57
- macro_rules! info {
58
- ( target: $target: expr, $( $arg: tt) * ) => { log!( $target, $( $arg) * ) ; } ;
59
- ( $( $arg: tt) * ) => { log!( "" , $( $arg) * ) ; } ;
60
- }
61
- macro_rules! debug {
62
- ( target: $target: expr, $( $arg: tt) * ) => { log!( $target, $( $arg) * ) ; } ;
63
- ( $( $arg: tt) * ) => { log!( "" , $( $arg) * ) ; } ;
64
- }
65
- macro_rules! trace {
66
- ( target: $target: expr, $( $arg: tt) * ) => { log!( $target, $( $arg) * ) ; } ;
67
- ( $( $arg: tt) * ) => { log!( "" , $( $arg) * ) ; } ;
68
- }
48
+ #[macro_use]
49
+ mod log_stubs;
69
50
}
70
51
}
52
+ */
71
53
72
54
// A macro to declare an internal module for which we *must* provide
73
55
// documentation for. If we are building with the "_docs" feature, then the
0 commit comments