Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
xtask: Remove transitive GPUI dependency (#47748)
Finn Evers4866861f07e5
diff --git a/Cargo.lock b/Cargo.lockindex 4ba0b3e04ac..2faee6057d2 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -20695,7 +20695,6 @@ dependencies = ["cargo_metadata","cargo_toml","clap",- "extension","gh-workflow","indexmap","indoc",diff --git a/crates/extension/src/extension_builder.rs b/crates/extension/src/extension_builder.rsindex 252c8f00b44..6d7c3206e88 100644--- a/crates/extension/src/extension_builder.rs+++ b/crates/extension/src/extension_builder.rs@@ -19,7 +19,7 @@ use wasm_encoder::{ComponentSectionId, Encode as _, RawSection, Section as _};use wasmparser::Parser;/// Currently, we compile with Rust's `wasm32-wasip2` target, which works with WASI `preview2` and the component model.-pub const RUST_TARGET: &str = "wasm32-wasip2";+const RUST_TARGET: &str = "wasm32-wasip2";/// Compiling Tree-sitter parsers from C to WASM requires Clang 17, and a WASM build of libc/// and clang's runtime library. The `wasi-sdk` provides these binaries.diff --git a/tooling/xtask/Cargo.toml b/tooling/xtask/Cargo.tomlindex 8f775b44038..13179b2eb69 100644--- a/tooling/xtask/Cargo.toml+++ b/tooling/xtask/Cargo.toml@@ -14,7 +14,6 @@ backtrace.workspace = truecargo_metadata.workspace = truecargo_toml.workspace = trueclap = { workspace = true, features = ["derive"] }-extension.workspace = truetoml.workspace = trueindoc.workspace = trueindexmap.workspace = truediff --git a/tooling/xtask/src/tasks/workflows/extension_tests.rs b/tooling/xtask/src/tasks/workflows/extension_tests.rsindex 5c419fc358c..3e48b238b49 100644--- a/tooling/xtask/src/tasks/workflows/extension_tests.rs+++ b/tooling/xtask/src/tasks/workflows/extension_tests.rs@@ -10,6 +10,9 @@ use crate::tasks::workflows::{pub(crate) const ZED_EXTENSION_CLI_SHA: &str = "7cfce605704d41ca247e3f84804bf323f6c6caaf";+// This should follow the set target in crates/extension/src/extension_builder.rs+const EXTENSION_RUST_TARGET: &str = "wasm32-wasip2";+// This is used by various extensions repos in the zed-extensions org to run automated tests.pub(crate) fn extension_tests() -> Workflow {let should_check_rust = PathCondition::new("check_rust", r"^(Cargo.lock|Cargo.toml|.*\.rs)$");@@ -33,10 +36,7 @@ pub(crate) fn extension_tests() -> Workflow {.add_env(("CARGO_INCREMENTAL", 0)).add_env(("ZED_EXTENSION_CLI_SHA", ZED_EXTENSION_CLI_SHA)).add_env(("RUSTUP_TOOLCHAIN", "stable"))- .add_env((- "CARGO_BUILD_TARGET",- extension::extension_builder::RUST_TARGET,- ))+ .add_env(("CARGO_BUILD_TARGET", EXTENSION_RUST_TARGET)).map(|workflow| {jobs.into_iter().chain([tests_pass])@@ -47,10 +47,7 @@ pub(crate) fn extension_tests() -> Workflow {}fn install_rust_target() -> Step<Run> {- named::bash(format!(- "rustup target add {rust_target}",- rust_target = extension::extension_builder::RUST_TARGET- ))+ named::bash(format!("rustup target add {EXTENSION_RUST_TARGET}",))}fn run_clippy() -> Step<Run> {