Skip to content

Commit

Permalink
feature flag log/tracing modules and re-exports
Browse files Browse the repository at this point in the history
  • Loading branch information
joshka committed Nov 14, 2024
1 parent 662bf47 commit 7c910fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,15 @@

use std::fmt;

#[cfg(feature = "log")]
pub mod log;
#[cfg(feature = "tracing")]
pub mod tracing;

/// Backwards compatibility re-exports for previous versions of this crate
#[doc(hidden)]
pub use log::{DebugLevel, ErrorLevel, InfoLevel, OffLevel, TraceLevel, WarnLevel};
#[cfg(feature = "log")]
pub use self::log::{DebugLevel, ErrorLevel, InfoLevel, OffLevel, TraceLevel, WarnLevel};

/// Logging flags to `#[command(flatten)]` into your CLI
#[derive(clap::Args, Debug, Clone, Default)]
Expand Down

0 comments on commit 7c910fb

Please sign in to comment.