Skip to content

Commit

Permalink
Upgrade deps
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Saveau <[email protected]>
  • Loading branch information
SUPERCILEX committed Jan 28, 2024
1 parent fbc87d1 commit 78d8a67
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 75 deletions.
115 changes: 50 additions & 65 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ license = "Apache-2.0"
bytesize = "1.3.0"
cfg-if = "1.0.0"
clap = { version = "4.4.18", features = ["derive", "wrap_help"] }
clap-num = "1.1.0"
clap-num = "1.1.1"
clap-verbosity-flag2 = "2.1.1"
error-stack = "0.4.1"
io-adapters = "0.3.0"
Expand All @@ -30,8 +30,8 @@ tokio = { version = "1.35.1", features = ["rt"] }
tracing = { version = "0.1.40", features = ["release_max_level_off", "log"], optional = true }
tracing-log = { version = "0.2.0", optional = true }
tracing-subscriber = { version = "0.3.18", optional = true }
tracing-tracy = { version = "0.10.5", optional = true }
tracy-client = { version = "0.16.5", optional = true }
tracing-tracy = { version = "0.11.0", features = ["flush-on-exit"], optional = true }
tracy-client = { version = "0.17.0", optional = true }
typed-builder = "0.18.1"

[target.'cfg(unix)'.dependencies]
Expand Down
1 change: 0 additions & 1 deletion api.golden
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ pub fn ftzz::NumFilesWithRatio::fmt(&self, f: &mut core::fmt::Formatter<'_>) ->
impl core::hash::Hash for ftzz::NumFilesWithRatio
pub fn ftzz::NumFilesWithRatio::hash<__H: core::hash::Hasher>(&self, state: &mut __H)
impl core::marker::Copy for ftzz::NumFilesWithRatio
impl core::marker::StructuralEq for ftzz::NumFilesWithRatio
impl core::marker::StructuralPartialEq for ftzz::NumFilesWithRatio
impl core::marker::Send for ftzz::NumFilesWithRatio
impl core::marker::Sync for ftzz::NumFilesWithRatio
Expand Down
29 changes: 23 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,31 @@ fn main() -> ExitCode {
#[cfg(feature = "trace")]
{
use tracing_log::AsTrace;
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
use tracing_subscriber::{
fmt::format::DefaultFields, layer::SubscriberExt, util::SubscriberInitExt,
};

#[derive(Default)]
struct Config(DefaultFields);

impl tracing_tracy::Config for Config {
type Formatter = DefaultFields;

fn formatter(&self) -> &Self::Formatter {
&self.0
}

fn stack_depth(&self, _: &tracing::Metadata<'_>) -> u16 {
32
}

fn format_fields_in_zone_name(&self) -> bool {
false
}
}

tracing_subscriber::registry()
.with(
tracing_tracy::TracyLayer::new()
.with_stackdepth(32)
.with_fields_in_zone_name(false),
)
.with(tracing_tracy::TracyLayer::new(Config::default()))
.with(tracing::level_filters::LevelFilter::from(level.as_trace()))
.init();
};
Expand Down

0 comments on commit 78d8a67

Please sign in to comment.