From 8e20f12347269c9b64ca073619b4527bad36a3ed Mon Sep 17 00:00:00 2001 From: Finn Evers Date: Tue, 15 Sep 2026 12:52:48 +0000 Subject: [PATCH] Remove `ztracing` dependency from GPUI (#64237) Release Notes: - N/A --- Cargo.lock | 2 -- crates/gpui/Cargo.toml | 3 --- crates/gpui/src/svg_renderer.rs | 2 -- 3 files changed, 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4e5c2eabbc..12e299d226 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7542,7 +7542,6 @@ dependencies = [ "sum_tree", "taffy", "thiserror 2.0.17", - "tracing", "ttf-parser", "unicode-segmentation", "url", @@ -7556,7 +7555,6 @@ dependencies = [ "windows 0.62.2", "zed-font-kit", "zed-scap", - "ztracing", ] [[package]] diff --git a/crates/gpui/Cargo.toml b/crates/gpui/Cargo.toml index 8797066d2c..b07cab6a60 100644 --- a/crates/gpui/Cargo.toml +++ b/crates/gpui/Cargo.toml @@ -94,7 +94,6 @@ strum.workspace = true sum_tree.workspace = true taffy = "=0.13.0" thiserror.workspace = true -tracing.workspace = true gpui_util.workspace = true hdrhistogram = { workspace = true, optional = true } waker-fn = "1.2.0" @@ -106,7 +105,6 @@ url.workspace = true uuid.workspace = true web-time.workspace = true heapless.workspace = true -ztracing.workspace = true [target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies] # Workspace inheritance would re-enable defaults, including blocking channel synchronization. @@ -170,7 +168,6 @@ ignored = [ "getrandom", "objc2", "objc2-metal", - "tracing", ] ignored-paths = ["src/_ownership_and_data_flow.rs"] diff --git a/crates/gpui/src/svg_renderer.rs b/crates/gpui/src/svg_renderer.rs index d06a4b0a13..798fb2a965 100644 --- a/crates/gpui/src/svg_renderer.rs +++ b/crates/gpui/src/svg_renderer.rs @@ -187,13 +187,11 @@ impl SvgRenderer { } /// Parses SVG data into a [`ParsedSvg`] that can be rasterized at any scale. - #[ztracing::instrument(skip_all)] pub fn parse_svg(&self, bytes: &[u8]) -> Result { usvg::Tree::from_data(bytes, &self.usvg_options).map(ParsedSvg) } /// Rasterizes a previously parsed SVG into an image buffer. - #[ztracing::instrument(skip_all)] pub fn render_parsed( &self, svg: &ParsedSvg,