Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
122 lines (111 loc) · 6.26 KB
/
Copy pathCargo.toml
File metadata and controls
122 lines (111 loc) · 6.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
[workspace]
members = ["crates/*"]
# `cargo build` also builds `ternarycode-hook`, which must sit next to the app binary.
default-members = [".", "crates/tc-agent"]
resolver = "3"
[package]
name = "ternarycode"
version = "0.3.39"
edition = "2024"
description = "Terminal-first workspace for running many projects and AI coding agents in one window"
license = "MIT"
publish = false
[dependencies]
chrono = { version = "0.4.45", default-features = false, features = ["clock", "std"] }
dirs = "7.0.0"
# Metal (wgpu) on macOS, OpenGL elsewhere, as in TernaryShell.
eframe = { version = "0.36.2", default-features = false, features = ["accesskit", "default_fonts"] }
libc = "0.2.190"
notify = "8.2.2"
parking_lot = "0.12.5"
rfd = "0.17.2"
serde = { version = "1.0.229", features = ["derive"] }
serde_json = { version = "1.0.154", features = ["preserve_order"] }
# The checksum of a downloaded update (src/update.rs).
sha2 = "0.11.1"
# Syntax colours in the editor, pure Rust (fancy-regex instead of Oniguruma; PRD section 16).
syntect = { version = "5.3.0", default-features = false, features = ["default-syntaxes", "default-themes", "regex-fancy"] }
tc-agent = { path = "crates/tc-agent" }
tc-core = { path = "crates/tc-core" }
tc-doc = { path = "crates/tc-doc" }
tc-git = { path = "crates/tc-git" }
tc-lsp = { path = "crates/tc-lsp" }
tc-term = { path = "crates/tc-term" }
tokio = { version = "1.53.3", features = ["rt-multi-thread", "macros", "sync", "time", "net", "io-util", "signal"] }
tokio-tungstenite = { version = "0.26", features = ["rustls-tls-webpki-roots"] }
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
futures-util = "0.3"
[target.'cfg(target_os = "macos")'.dependencies]
eframe = { version = "0.36.2", default-features = false, features = ["wgpu"] }
muda = "0.21.2"
winit = "0.30"
objc2 = "0.6.5"
objc2-foundation = { version = "0.3.2", default-features = false, features = ["std", "NSString", "NSGeometry", "NSArray", "NSBundle", "NSDictionary", "NSError", "NSSet", "NSFileManager", "NSURL", "NSData", "NSDate", "NSValue", "NSNotification", "NSProcessInfo", "NSUUID"] }
objc2-user-notifications = { version = "0.3.2", default-features = false, features = ["std", "bitflags", "block2", "UNNotification", "UNNotificationContent", "UNNotificationRequest", "UNNotificationResponse", "UNNotificationTrigger", "UNUserNotificationCenter"] }
block2 = "0.6"
objc2-app-kit = { version = "0.3.2", default-features = false, features = ["std", "block2", "NSEvent", "NSApplication", "NSResponder", "NSWindow", "NSView", "NSGraphicsContext", "NSDockTile", "NSRunningApplication", "NSWorkspace", "NSImage", "NSImageRep", "NSBitmapImageRep", "NSScreen", "NSGraphics", "NSMenu", "NSMenuItem", "NSAlert", "NSButton", "NSControl", "NSTextField", "NSPrintInfo", "NSPrintOperation", "NSPasteboard", "NSPasteboardItem"] }
# Browser panes: the system's web view (WebKit), laid over the window.
wry = { version = "0.57.2", default-features = false, features = ["devtools"] }
# The page as a picture (agents' screenshots, tests).
objc2-web-kit = { version = "0.3.2", default-features = false, features = ["std", "block2", "objc2-app-kit", "WKWebView", "WKSnapshotConfiguration", "WKWebsiteDataStore", "WKContentWorld", "WKFrameInfo", "WKUIDelegate", "WKNavigationDelegate", "WKNavigation", "WKNavigationAction", "WKWindowFeatures", "WKWebViewConfiguration", "WKUserContentController"] }
raw-window-handle = "0.6.2"
[target.'cfg(target_os = "linux")'.dependencies]
eframe = { version = "0.36.2", default-features = false, features = ["glow", "x11", "wayland"] }
# The window (X11) the page helper lays its pages in (src/browser_linux.rs).
raw-window-handle = "0.6.2"
# An X11 window under Wayland (XWayland), where the page helper can lay pages (src/main.rs).
winit = { version = "0.30", default-features = false, features = ["x11"] }
# OpenGL, and Direct3D 12 (only that wgpu backend) for machines without OpenGL 2 (virtual
# machines, Remote Desktop, no graphics driver), as in TernaryShell. windows-sys: the Recycle
# Bin, where the pointer is while files are dragged in, the window's corners and system menu.
# getrandom: the token of the single-instance port (src/instance.rs).
[target.'cfg(windows)'.dependencies]
eframe = { version = "0.36.2", default-features = false, features = ["glow", "wgpu_no_default_features"] }
wgpu = { version = "30", default-features = false, features = ["std", "parking_lot", "dx12"] }
windows-sys = { version = "0.61", features = ["Win32_Foundation", "Win32_Graphics_Dwm", "Win32_UI_Shell", "Win32_UI_WindowsAndMessaging"] }
getrandom = "0.4.3"
# The window (HWND) for its rounded corners and system menu (no system caption, src/platform.rs).
raw-window-handle = "0.6.2"
[target.'cfg(windows)'.dependencies.wry]
version = "0.57.2"
default-features = false
features = ["devtools", "os-webview"]
# Browser panes on Windows: WebView2's own calls wry does not make (scripts' answers, the page's
# picture, dialogs, an agent's input by the DevTools Protocol).
[target.'cfg(windows)'.dependencies.webview2-com]
version = "0.39"
[target.'cfg(windows)'.dependencies.windows]
version = "0.62"
features = ["Win32_Foundation", "Win32_System_Com", "Win32_System_Com_StructuredStorage", "Win32_System_LibraryLoader", "Win32_UI_HiDpi", "Win32_UI_Shell", "Win32_UI_Input_KeyboardAndMouse", "Win32_UI_WindowsAndMessaging"]
# The icon and version information of ternarycode.exe (Explorer, the taskbar, Start menu).
[target.'cfg(windows)'.build-dependencies]
winresource = "0.1"
[dev-dependencies]
tempfile = "3.27.0"
# Dependencies are built optimized even in dev builds: the terminal parser and the renderer are
# far too slow unoptimized.
[profile.dev.package."*"]
opt-level = 2
[profile.release]
lto = "fat"
codegen-units = 1
strip = true
# Keep unwinding: a panic while drawing one frame must not take every pane down.
panic = "unwind"
# Release build with the scripted UI checks enabled (debug assertions), for measuring Gate B with
# `TERNARYCODE_DEV_SCRIPT`: `cargo build --profile measure`.
[profile.measure]
inherits = "release"
debug-assertions = true
lto = "thin"
codegen-units = 16
[profile.release.package.winit]
opt-level = "s"
[profile.release.package.muda]
opt-level = "s"
[profile.release.package.rfd]
opt-level = "s"
[profile.release.package.objc2-app-kit]
opt-level = "s"
[profile.release.package.objc2-foundation]
opt-level = "s"