Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
remote ssh: Fix asset embedding in cross-compilation (#19180)
Thorsten Ball71a878aa3998
diff --git a/Cargo.lock b/Cargo.lockindex 14b9f254037..a76e7e5a6d7 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -9153,6 +9153,7 @@ dependencies = ["project","remote","rpc",+ "rust-embed","serde","serde_json","settings",diff --git a/crates/recent_projects/src/ssh_connections.rs b/crates/recent_projects/src/ssh_connections.rsindex 318c2aec6a9..a78a1dbcdf8 100644--- a/crates/recent_projects/src/ssh_connections.rs+++ b/crates/recent_projects/src/ssh_connections.rs@@ -461,7 +461,7 @@ impl SshClientDelegate {} else if let Some(triple) = platform.triple() {smol::fs::create_dir_all("target/remote-server").await?;- self.update_status(Some("Installing cross.rs"), cx);+ self.update_status(Some("Installing cross.rs for cross-compilation"), cx);log::info!("installing cross");run_cmd(Command::new("cargo").args(["install",@@ -485,6 +485,8 @@ impl SshClientDelegate {"build","--package","remote_server",+ "--features",+ "debug-embed","--target-dir","target/remote_server","--target",diff --git a/crates/remote_server/Cargo.toml b/crates/remote_server/Cargo.tomlindex bd619191514..25c5860a009 100644--- a/crates/remote_server/Cargo.toml+++ b/crates/remote_server/Cargo.toml@@ -18,6 +18,7 @@ name = "remote_server"[features]default = []+debug-embed = ["dep:rust-embed"]test-support = ["fs/test-support"][dependencies]@@ -36,6 +37,7 @@ node_runtime.workspace = trueproject.workspace = trueremote.workspace = truerpc.workspace = true+rust-embed = { workspace = true, optional = true, features = ["debug-embed"] }serde.workspace = trueserde_json.workspace = truesettings.workspace = true@@ -61,3 +63,6 @@ serde_json.workspace = true[build-dependencies]cargo_toml.workspace = truetoml.workspace = true++[package.metadata.cargo-machete]+ignored = ["rust-embed"]