From d3d2a9ee49f03945a623a13571f0e81ae34d555b Mon Sep 17 00:00:00 2001 From: Floyd Wang Date: Fri, 19 Sep 2025 17:28:16 +0800 Subject: [PATCH] chore: Remove gpui `test-support` feature --- Cargo.lock | 51 -------------------------------------------- crates/ui/Cargo.toml | 24 ++++++++++----------- 2 files changed, 12 insertions(+), 63 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8a871110..83562a52 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2979,19 +2979,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "git2" -version = "0.20.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2deb07a133b1520dc1a5690e9bd08950108873d7ed5de38dcc74d3b5ebffa110" -dependencies = [ - "bitflags 2.9.1", - "libc", - "libgit2-sys", - "log", - "url", -] - [[package]] name = "glib" version = "0.18.5" @@ -3131,7 +3118,6 @@ dependencies = [ "as-raw-xcb-connection", "ashpd 0.11.0", "async-task", - "backtrace", "bindgen 0.71.1", "blade-graphics", "blade-macros", @@ -4298,18 +4284,6 @@ dependencies = [ "cc", ] -[[package]] -name = "libgit2-sys" -version = "0.18.2+1.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c42fe03df2bd3c53a3a9c7317ad91d80c81cd1fb0caec8d7cc4cd2bfa10c222" -dependencies = [ - "cc", - "libc", - "libz-sys", - "pkg-config", -] - [[package]] name = "libloading" version = "0.8.8" @@ -4337,18 +4311,6 @@ dependencies = [ "redox_syscall 0.5.17", ] -[[package]] -name = "libz-sys" -version = "1.1.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b70e7a7df205e92a1a4cd9aaae7898dac0aa555503cc0a649494d0d60e7651d" -dependencies = [ - "cc", - "libc", - "pkg-config", - "vcpkg", -] - [[package]] name = "linux-raw-sys" version = "0.3.8" @@ -9253,13 +9215,11 @@ dependencies = [ "dunce", "futures", "futures-lite 1.13.0", - "git2", "globset", "itertools 0.14.0", "libc", "log", "nix 0.29.0", - "rand 0.9.2", "regex", "rust-embed", "schemars", @@ -9272,21 +9232,10 @@ dependencies = [ "tempfile", "tendril", "unicase", - "util_macros", "walkdir", "workspace-hack", ] -[[package]] -name = "util_macros" -version = "0.1.0" -source = "git+https://github.com/zed-industries/zed.git#53b2f37452189870c93d4514604f903d5ed885d9" -dependencies = [ - "quote", - "syn 2.0.105", - "workspace-hack", -] - [[package]] name = "uuid" version = "1.18.0" diff --git a/crates/ui/Cargo.toml b/crates/ui/Cargo.toml index 39642760..abd05bbc 100644 --- a/crates/ui/Cargo.toml +++ b/crates/ui/Cargo.toml @@ -1,12 +1,12 @@ [package] -name = "gpui-component" description = "UI components for building fantastic desktop application by using GPUI." -version = "0.1.0" edition = "2021" homepage = "https://github.com/longbridge/gpui-component" keywords = ["GPUI", "application", "desktop", "ui"] license-file = "LICENSE-APACHE" +name = "gpui-component" publish = true +version = "0.1.0" [lib] doctest = false @@ -44,25 +44,25 @@ tree-sitter-languages = [ "dep:tree-sitter-toml-ng", "dep:tree-sitter-typescript", "dep:tree-sitter-yaml", - "dep:tree-sitter-zig" + "dep:tree-sitter-zig", ] [dependencies] -gpui = { workspace = true, "features" = ["test-support"] } -sum_tree.workspace = true -gpui_macros.workspace = true -rope.workspace = true +anyhow.workspace = true +gpui = { workspace = true } gpui-component-macros.workspace = true +gpui_macros.workspace = true +notify.workspace = true +rope.workspace = true rust-i18n.workspace = true schemars.workspace = true serde.workspace = true -serde_repr.workspace = true serde_json.workspace = true +serde_repr.workspace = true smallvec.workspace = true smol.workspace = true +sum_tree.workspace = true tracing.workspace = true -anyhow.workspace = true -notify.workspace = true enum-iterator = "2.1.0" itertools = "0.13.0" @@ -90,10 +90,9 @@ markup5ever_rcdom = "0.3.0" chrono = "0.4.38" # Code Editor -lsp-types.workspace = true aho-corasick = "1.1.3" +lsp-types.workspace = true tree-sitter = "0.25.4" -tree-sitter-json = "0.24.8" tree-sitter-bash = { version = "0.23.3", optional = true } tree-sitter-c = { version = "0.24.1", optional = true } tree-sitter-c-sharp = { version = "0.23.1", optional = true } @@ -109,6 +108,7 @@ tree-sitter-html = { version = "0.23.2", optional = true } tree-sitter-java = { version = "0.23.5", optional = true } tree-sitter-javascript = { version = "0.23.1", optional = true } tree-sitter-jsdoc = { version = "0.23.2", optional = true } +tree-sitter-json = "0.24.8" tree-sitter-make = { version = "1.1.1", optional = true } tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", tag = "v0.5.0", optional = true } tree-sitter-proto = { version = "0.2.0", optional = true }