File tree Expand file tree Collapse file tree 2 files changed +31
-12
lines changed Expand file tree Collapse file tree 2 files changed +31
-12
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -71,8 +71,37 @@ macro_rules! doc_comment {
7171#[ cfg( test) ]
7272doc_comment ! ( include_str!( "../README.md" ) ) ;
7373
74- #[ cfg( not( feature = "log" ) ) ]
75- #[ macro_use] mod dummy_log;
74+ #[ allow( unused) ]
75+ macro_rules! trace { ( $( $x: tt) * ) => (
76+ #[ cfg( feature = "log" ) ] {
77+ log:: trace!( $( $x) * )
78+ }
79+ ) }
80+ #[ allow( unused) ]
81+ macro_rules! debug { ( $( $x: tt) * ) => (
82+ #[ cfg( feature = "log" ) ] {
83+ log:: debug!( $( $x) * )
84+ }
85+ ) }
86+ #[ allow( unused) ]
87+ macro_rules! info { ( $( $x: tt) * ) => (
88+ #[ cfg( feature = "log" ) ] {
89+ log:: info!( $( $x) * )
90+ }
91+ ) }
92+ #[ allow( unused) ]
93+ macro_rules! warn { ( $( $x: tt) * ) => (
94+ #[ cfg( feature = "log" ) ] {
95+ log:: warn!( $( $x) * )
96+ }
97+ ) }
98+ #[ allow( unused) ]
99+ macro_rules! error { ( $( $x: tt) * ) => (
100+ #[ cfg( feature = "log" ) ] {
101+ log:: error!( $( $x) * )
102+ }
103+ ) }
104+
76105#[ cfg( feature = "std" ) ]
77106mod platform;
78107mod error;
You can’t perform that action at this time.
0 commit comments