Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Remove `ztracing` dependency from GPUI (#64237)

Finn Evers07df4386262d
diff --git a/Cargo.lock b/Cargo.lock
index 4e5c2eabbca..12e299d226d 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 8797066d2c0..b07cab6a607 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 d06a4b0a135..798fb2a9657 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<ParsedSvg, usvg::Error> {
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,