diff --git a/Cargo.toml b/Cargo.toml index 752a1cd..180fbbe 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,10 +12,9 @@ chrono = "0.4.23" google-youtube3 = "5.0.2" serde_json = "1.0.91" rand = "0.8.5" -log = { version = "0.4" , optional=true} -tracing = { version = "0.1.37" , optional=true} +log = { version = "0.4" } +tracing = { version = "0.1" , optional=true} [features] -default = ["tracing"] -log = ["dep:log"] +default = [] tracing = ["dep:tracing"] diff --git a/src/prelude.rs b/src/prelude.rs index 5ca7d6d..aa693b5 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -1,4 +1,4 @@ -#[cfg(feature = "log")] +#[cfg(not(feature = "tracing"))] pub use log::{debug, error, info, trace, warn}; #[cfg(feature = "tracing")] pub use tracing::{debug, error, info, trace, warn};