mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-13 05:42:59 +00:00
87ba5fd7bc
Closes #ISSUE This refactors SSH installation to require less shell stuff. We'd like to support arbitrary remote hosts, and unfortunately csh/tcsh have quoting rules that make it impossible to run multi-line scripts. The primary changes are: * The target path now contains the version: `./zed_server/zed-remote-server-{release_channel}-{version}` * We do all our processing in a temporary file and `mv` it into place. * We do fewer calls to `ssh_command` overall. With the previous two changes we can avoid lock files, and fuser calls. Instead cleanup of old binaries now happens in `execute_run`. * We only try to install the remote server when the connection is established, not on each project open. This should also put us in a good position if we want to pre-emptively install new versions when the auto-updater detects an update for the running version of zed (but that's not wired up yet) Release Notes: - Remoting: Fixed remoting when the remote runs `tcsh` - Remoting: Improved latency of connecting
84 lines
2.1 KiB
TOML
84 lines
2.1 KiB
TOML
[package]
|
|
name = "remote_server"
|
|
description = "Daemon used for remote editing"
|
|
edition = "2021"
|
|
version = "0.1.0"
|
|
publish = false
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
path = "src/remote_server.rs"
|
|
doctest = false
|
|
|
|
[[bin]]
|
|
name = "remote_server"
|
|
|
|
[features]
|
|
default = []
|
|
debug-embed = ["dep:rust-embed"]
|
|
test-support = ["fs/test-support"]
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
async-watch.workspace = true
|
|
backtrace = "0.3"
|
|
chrono.workspace = true
|
|
clap.workspace = true
|
|
client.workspace = true
|
|
env_logger.workspace = true
|
|
fs.workspace = true
|
|
futures.workspace = true
|
|
git.workspace = true
|
|
git_hosting_providers.workspace = true
|
|
gpui.workspace = true
|
|
http_client.workspace = true
|
|
language.workspace = true
|
|
languages.workspace = true
|
|
log.workspace = true
|
|
lsp.workspace = true
|
|
node_runtime.workspace = true
|
|
paths = { workspace = true }
|
|
project.workspace = true
|
|
proto.workspace = true
|
|
release_channel.workspace = true
|
|
remote.workspace = true
|
|
reqwest_client.workspace = true
|
|
rpc.workspace = true
|
|
rust-embed = { workspace = true, optional = true, features = ["debug-embed"] }
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
settings.workspace = true
|
|
shellexpand.workspace = true
|
|
smol.workspace = true
|
|
sysinfo.workspace = true
|
|
telemetry_events.workspace = true
|
|
util.workspace = true
|
|
worktree.workspace = true
|
|
|
|
[target.'cfg(not(windows))'.dependencies]
|
|
fork.workspace = true
|
|
libc.workspace = true
|
|
|
|
[dev-dependencies]
|
|
client = { workspace = true, features = ["test-support"] }
|
|
clock = { workspace = true, features = ["test-support"] }
|
|
fs = { workspace = true, features = ["test-support"] }
|
|
gpui = { workspace = true, features = ["test-support"] }
|
|
http_client = { workspace = true, features = ["test-support"] }
|
|
language = { workspace = true, features = ["test-support"] }
|
|
node_runtime = { workspace = true, features = ["test-support"] }
|
|
project = { workspace = true, features = ["test-support"] }
|
|
remote = { workspace = true, features = ["test-support"] }
|
|
lsp = { workspace = true, features=["test-support"] }
|
|
|
|
serde_json.workspace = true
|
|
|
|
[build-dependencies]
|
|
cargo_toml.workspace = true
|
|
toml.workspace = true
|
|
|
|
[package.metadata.cargo-machete]
|
|
ignored = ["rust-embed", "paths"]
|