Skip to content

Commit

Permalink
Merge branch 'main' into tonic-v0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
hds authored Jul 11, 2024
2 parents 229df4f + b01631a commit 21b06da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions console-subscriber/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ keywords = [

[features]
default = ["env-filter"]
parking_lot = ["parking_lot_crate", "tracing-subscriber/parking_lot"]
parking_lot = ["dep:parking_lot", "tracing-subscriber/parking_lot"]
env-filter = ["tracing-subscriber/env-filter"]
grpc-web = ["tonic-web"]
grpc-web = ["dep:tonic-web"]

[dependencies]
crossbeam-utils = "0.8.7"
Expand All @@ -42,9 +42,7 @@ tracing = "0.1.26"
tracing-subscriber = { version = "0.3.17", default-features = false, features = ["fmt", "registry"] }
futures-task = { version = "0.3", default-features = false }
hdrhistogram = { version = "7.3.0", default-features = false, features = ["serialization"] }
# The parking_lot dependency is renamed, because we want our `parking_lot`
# feature to also enable `tracing-subscriber`'s parking_lot feature flag.
parking_lot_crate = { package = "parking_lot", version = "0.12", optional = true }
parking_lot = { version = "0.12", optional = true }
humantime = "2.1.0"
prost = "0.13.1"
prost-types = "0.13.1"
Expand Down
2 changes: 1 addition & 1 deletion console-subscriber/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![allow(dead_code, unused_imports)]

#[cfg(feature = "parking_lot")]
pub(crate) use parking_lot_crate::{Mutex, MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard};
pub(crate) use parking_lot::{Mutex, MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard};

#[cfg(not(feature = "parking_lot"))]
pub(crate) use self::std_impl::*;
Expand Down

0 comments on commit 21b06da

Please sign in to comment.