Visual Studio Code, rebuilt in Rust
Rust
[workspace]
resolver = "3"
members = ["crates/*"]
# vendor/gpui-fast is its own small workspace the vendored GPUI crates inherit from.
exclude = ["vendor"]
[workspace.package]
edition = "2024"
license = "Apache-2.0"
# The memory safety gates of docs/memory-safety.md. rustc checks the first on every build; the second is a clippy lint:
# cargo gc clippy --workspace --all-targets --locked -- -A clippy::all
[workspace.lints.rust]
unsafe_op_in_unsafe_fn = "deny"
[workspace.lints.clippy]
undocumented_unsafe_blocks = "deny"
[workspace.dependencies]
anyhow = "1"
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", features = ["preserve_order"] }
# GPUI from gpui-fast, a Zed GPUI fork with Retained Mode (port/notes.md "GPUI on gpui-fast"); each crate used is Apache-2.0 (port/tools/check-licenses).
gpui = { git = "https://github.com/longbridge/gpui-fast", rev = "f0a91cf952678e4d205da1ec189b6d134e975bcd" }
gpui_platform = { git = "https://github.com/longbridge/gpui-fast", rev = "f0a91cf952678e4d205da1ec189b6d134e975bcd" }
# The GPUI crates the port changes, copied from that commit (vendor/README.md); every gpui-fast crate uses them.
[patch."https://github.com/longbridge/gpui-fast"]
gpui = { path = "vendor/gpui-fast/crates/gpui" }
gpui_apple = { path = "vendor/gpui-fast/crates/gpui_apple" }
gpui_windows = { path = "vendor/gpui-fast/crates/gpui_windows" }
# Dependencies (GPUI included) at opt-level 1, the port's crates at 0: settings_editor tests 21.5 s -> 4.3 s (port/notes.md "Build speed").
[profile.dev.package."*"]
opt-level = 1
[profile.release]
debug = "limited"