mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-27 11:02:33 +01:00
5e40758731
The Zed Agent's sandbox on Windows now runs terminal commands in a native Windows AppContainer, using the new [Process Security Environment](https://learn.microsoft.com/en-us/windows/win32/api/_processmodel/) (PSEC) API, instead of under Bubblewrap in WSL. The WSL-based sandbox is removed. The AppContainer sandbox supports the same policies as Linux and macOS and closes the WSL-based sandbox's filesystem-isolation gaps. Host-restricted network access through the HTTP/HTTPS proxy is now supported on Windows too. Some tools aren't yet compatible with AppContainer. Most notably, Cygwin- and MSYS2-based tools, such as the Unix tools that come with Git for Windows (`bash`, `perl`, and so on), don't currently run inside it. When sandboxing is enabled on Windows, the Zed Agent runs terminal commands in PowerShell. PSEC requires a recently patched version of Windows 11 24H2, 25H2, 26H1, or 26H2. The sandbox isn't supported on Windows 10. Release Notes: - On Windows, the Zed Agent now runs commands through a native Windows AppContainer sandbox instead of through WSL. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Richard Feldman <oss@rtfeldman.com>
85 lines
2.3 KiB
TOML
85 lines
2.3 KiB
TOML
[package]
|
|
name = "cli"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
publish.workspace = true
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
path = "src/cli.rs"
|
|
doctest = false
|
|
|
|
[[bin]]
|
|
name = "cli"
|
|
path = "src/main.rs"
|
|
required-features = ["cli"]
|
|
|
|
[features]
|
|
no-bundled-uninstall = ["cli"]
|
|
default = ["cli"]
|
|
cli = [
|
|
"dep:askpass",
|
|
"dep:clap",
|
|
"dep:clap_complete",
|
|
"dep:clap_complete_nushell",
|
|
"dep:console",
|
|
"dep:core-foundation",
|
|
"dep:core-services",
|
|
"dep:dialoguer",
|
|
"dep:exec",
|
|
"dep:fork",
|
|
"dep:parking_lot",
|
|
"dep:paths",
|
|
"dep:plist",
|
|
"dep:rayon",
|
|
"dep:release_channel",
|
|
"dep:sandbox",
|
|
"dep:tempfile",
|
|
"dep:util",
|
|
"dep:walkdir",
|
|
"dep:windows",
|
|
"dep:windows_resources",
|
|
]
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
askpass = { workspace = true, optional = true }
|
|
clap = { workspace = true, optional = true }
|
|
clap_complete = { workspace = true, optional = true }
|
|
clap_complete_nushell = { workspace = true, optional = true }
|
|
collections.workspace = true
|
|
console = { workspace = true, optional = true }
|
|
dialoguer = { workspace = true, optional = true }
|
|
ipc-channel = "0.19"
|
|
parking_lot = { workspace = true, optional = true }
|
|
paths = { workspace = true, optional = true }
|
|
release_channel = { workspace = true, optional = true }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
util = { workspace = true, optional = true }
|
|
tempfile = { workspace = true, optional = true }
|
|
rayon = { workspace = true, optional = true }
|
|
walkdir = { workspace = true, optional = true }
|
|
|
|
[dev-dependencies]
|
|
serde_json.workspace = true
|
|
util = { workspace = true, features = ["test-support"] }
|
|
|
|
[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies]
|
|
exec = { workspace = true, optional = true }
|
|
fork = { workspace = true, optional = true }
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
core-foundation = { workspace = true, optional = true }
|
|
core-services = { workspace = true, optional = true }
|
|
plist = { workspace = true, optional = true }
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
sandbox = { workspace = true, optional = true }
|
|
windows = { workspace = true, optional = true }
|
|
|
|
[target.'cfg(target_os = "windows")'.build-dependencies]
|
|
windows_resources = { workspace = true, optional = true }
|