can't put tracing behind a feature without an extra crate :(

This commit is contained in:
Pat Hickey
2020-06-02 15:56:13 -07:00
parent 02c0c68ed2
commit 820b283cf8
3 changed files with 5 additions and 18 deletions

View File

@@ -15,7 +15,9 @@ mod borrow;
mod error;
mod guest_type;
mod region;
pub mod tracing;
pub mod tracing {
pub use tracing::*;
}
pub use borrow::BorrowChecker;
use borrow::BorrowHandle;

View File

@@ -1,11 +0,0 @@
#[cfg(feature = "tracing")]
pub use tracing_crate::*;
#[cfg(not(feature = "tracing"))]
mod noop_tracing {
// TODO fill in rest of the noop interface
// idk how to do this because macro_rules! / #[macro_export] doesn't follow the usual module
// visibility rules.
}
#[cfg(not(feature = "tracing"))]
pub use noop_tracing::*;