From f410491e0488c7feca05b6e35df7b8478eec30f2 Mon Sep 17 00:00:00 2001 From: OMGeeky Date: Fri, 14 Jul 2023 16:12:10 +0200 Subject: [PATCH] remove tracing feature and just use tracing it provides log with the needed stuff anyway --- Cargo.toml | 8 ++------ src/lib.rs | 1 - src/prelude.rs | 5 ----- tests/tests.rs | 1 + 4 files changed, 3 insertions(+), 12 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 760277c..fcf6fb4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,9 +17,5 @@ async-trait = "0.1.68" -log = { version = "0.4" } -tracing = { version = "0.1", optional = true } - -[features] -default = [] -tracing = ["dep:tracing"] +log = "0.4" +tracing = "0.1" diff --git a/src/lib.rs b/src/lib.rs index a919f31..2e7cb77 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,6 +5,5 @@ pub mod utils; pub mod re_exports { pub use async_trait; - pub use log; pub use serde_json; } diff --git a/src/prelude.rs b/src/prelude.rs index fc22f1f..abf7c26 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -5,9 +5,4 @@ pub use crate::data::{BigQueryTable, BigQueryTableBase, OrderDirection}; pub type Result = std::result::Result>; -#[cfg(not(feature = "tracing"))] -pub use log::{debug, error, info, trace, warn}; -#[cfg(feature = "tracing")] pub use tracing::{debug, error, info, trace, warn}; - -pub use log::LevelFilter; diff --git a/tests/tests.rs b/tests/tests.rs index 9708433..2a0285d 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -1,3 +1,4 @@ +use log::LevelFilter; use nameof::name_of; use google_bigquery_v2::data::query_builder::QueryResultType;