Skip to content

Visual Studio Code, rebuilt in Rust

Rust
4.4 KB
Raw Blame
[package]
name = "app"
version = "0.1.0"
edition.workspace = true
license.workspace = true

[[bin]]
name = "vsrustium"
path = "src/main.rs"

[lints]
workspace = true

[dependencies]
ghostty_vt = { path = "../ghostty_vt" }
libc = "0.2"
anyhow.workspace = true
base64 = "0.22"
chrono = { version = "0.4", default-features = false, features = ["clock"] }
config = { path = "../config" }
diff = { path = "../diff" }
exthost = { path = "../exthost" }
files = { path = "../files" }
futures = "0.3"
getrandom = "0.3"
icu_collator = "2"
icu_locale_core = "2"
icu_segmenter = "2"
ttf-parser = "0.25"
wuff = "0.2"
raw-window-handle = "0.6"
gpui.workspace = true
gpui_platform = { workspace = true, features = ["font-kit", "wayland", "x11"] }
icu_normalizer = { version = "2.4", default-features = false, features = ["compiled_data"] }
serde.workspace = true
pulldown-cmark = { version = "0.13", default-features = false, features = ["html"] }
semver = "1"
sha2 = "0.10"
serde_json.workspace = true
storage = { path = "../storage" }
regex = "1"
onig = { version = "6.5", default-features = false }
search = { path = "../search" }
textmate = { path = "../textmate" }
image = { version = "0.25", default-features = false, features = ["png"] }
url = "2"

[target.'cfg(target_os = "macos")'.dependencies]
block2 = "0.6"
core-foundation = "0.10"
objc2 = "0.6"
objc2-app-kit = { version = "0.3.2", default-features = false, features = ["NSAccessibility", "NSAlert", "NSApplication", "NSButton", "NSCell", "NSControl", "NSEvent", "NSImage", "NSMenu", "NSMenuItem", "NSOpenPanel", "NSPanel", "NSPasteboard", "NSPopUpButton", "NSResponder", "NSSavePanel", "NSSound", "NSTextField", "NSView", "NSWindow", "NSWorkspace", "block2", "objc2-core-foundation"] }
objc2-foundation = { version = "0.3.2", default-features = false, features = ["NSArray", "NSData", "NSDate", "NSDateFormatter", "NSDictionary", "NSDistributedNotificationCenter", "NSError", "NSFormatter", "NSGeometry", "NSKeyValueCoding", "NSLocale", "NSNotification", "NSOperation", "NSProcessInfo", "NSString", "NSTimeZone", "NSURL", "NSURLRequest", "NSURLResponse", "NSURLSession", "NSUserDefaults", "NSValue", "block2", "objc2-core-foundation"] }
objc2-web-kit = { version = "0.3.2", default-features = false, features = ["WKContentRuleList", "WKContentRuleListStore", "WKNavigation", "WKPreferences", "WKScriptMessage", "WKScriptMessageHandler", "WKURLSchemeHandler", "WKURLSchemeTask", "WKUserContentController", "WKUserScript", "WKWebView", "WKWebViewConfiguration", "block2", "objc2-app-kit", "objc2-core-foundation"] }
security-framework = "3"

[target.'cfg(target_os = "windows")'.dependencies]
# GPUI's version, for the COM interfaces windows-sys lacks.
windows = { version = "0.61", features = [
    "Win32_Foundation",
    "Win32_Graphics_Gdi",
    "Win32_System_Com",
    "Win32_System_LibraryLoader",
    "Win32_UI_Controls",
    "Win32_UI_Input_KeyboardAndMouse",
    "Win32_UI_Shell",
    "Win32_UI_Shell_Common",
    "Win32_UI_WindowsAndMessaging",
] }
# 0.38 is the last on windows 0.61, GPUI's.
webview2-com = "0.38"
windows-sys = { version = "0.61", features = [
    "Win32_Foundation",
    "Win32_Security",
    "Win32_Storage_FileSystem",
    "Win32_System_Console",
    "Win32_System_Diagnostics_ToolHelp",
    "Win32_System_Pipes",
    "Win32_System_Power",
    "Win32_System_SystemServices",
    "Win32_System_Threading",
    "Win32_UI_WindowsAndMessaging",
] }

[target.'cfg(target_os = "linux")'.dependencies]
# The zbus gpui_linux's ashpd and oo7 use.
zbus = { version = "5", default-features = false, features = ["async-io", "blocking-api"] }
ashpd = { version = "0.13", default-features = false, features = ["async-io", "file_chooser", "global_shortcuts", "raw_handle", "wayland"] }
async-openssl = "0.2"
gdkx11 = "0.18"
gtk = "0.18"
openssl = "0.10"
rcgen = { version = "0.14", default-features = false, features = ["crypto", "pem", "ring"] }
webkit2gtk = { version = "2.0", features = ["v2_40"] }
x11 = { version = "2", features = ["xlib"] }
# The x11rb and xkbcommon gpui_linux's X11 backend uses.
x11rb = { version = "0.13", features = ["allow-unsafe-code", "xkb", "xtest"] }
xkbcommon = { version = "0.8", features = ["x11"] }

[build-dependencies]
regex = "1"
serde_json.workspace = true

[dev-dependencies]
exthost = { path = "../exthost", features = ["test-support"] }
gpui = { workspace = true, features = ["test-support"] }
gpui_platform = { workspace = true, features = ["font-kit", "test-support"] }

[features]
screenshot = ["gpui/test-support", "gpui_platform/test-support"]