forked from polachok/helix-gpui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
156 lines (145 loc) · 6.08 KB
/
Copy pathCargo.toml
File metadata and controls
156 lines (145 loc) · 6.08 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
[workspace]
members = [
"crates/nucleotide-types",
"crates/nucleotide-events",
"crates/nucleotide-logging",
"crates/nucleotide-appearance",
"crates/nucleotide-core",
"crates/nucleotide-editor",
"crates/nucleotide-ui",
"crates/nucleotide-lsp",
"crates/nucleotide-project",
"crates/nucleotide-env",
"crates/nucleotide-process",
"crates/nucleotide-workspace",
"crates/nucleotide-remote",
"crates/nucleotide-vcs",
"crates/nucleotide-lsp-proxy",
"crates/nucleotide",
"crates/nucleotide-terminal",
"crates/nucleotide-terminal-view",
"crates/nucleotide-terminal-panel",
"vendor/helix-stdx",
"vendor/helix-view",
]
exclude = [
"vendor/block-0.1.6",
"vendor/velopack-1.2.0",
"vendor/zed",
]
resolver = "2"
[workspace.package]
version = "0.8.2"
authors = ["The Nucleotide Contributors"]
edition = "2024"
rust-version = "1.96"
license = "MPL-2.0"
repository = "https://github.com/iainh/nucleotide"
homepage = "https://github.com/iainh/nucleotide"
[workspace.dependencies]
# GPUI and GPUI-adjacent dependencies. These are vendored from the pinned Zed
# revision in `vendor/zed` so local platform fixes can be reviewed and upstreamed.
gpui = { path = "vendor/zed/crates/gpui", package = "gpui", features = ["test-support"] }
gpui_platform = { path = "vendor/zed/crates/gpui_platform", package = "gpui_platform", features = ["font-kit", "wayland", "x11"] }
# Helix dependencies - pinned to the upstream base revision that our vendored
# Nucleotide-specific patches are replayed against.
helix-core = { git = "https://github.com/helix-editor/helix", rev = "14d6bc0febed9c692048271a8ae2362ac969c6e0" }
helix-dap = { git = "https://github.com/helix-editor/helix", rev = "14d6bc0febed9c692048271a8ae2362ac969c6e0" }
helix-event = { git = "https://github.com/helix-editor/helix", rev = "14d6bc0febed9c692048271a8ae2362ac969c6e0" }
helix-loader = { git = "https://github.com/helix-editor/helix", rev = "14d6bc0febed9c692048271a8ae2362ac969c6e0" }
helix-lsp = { git = "https://github.com/helix-editor/helix", rev = "14d6bc0febed9c692048271a8ae2362ac969c6e0" }
helix-term = { git = "https://github.com/helix-editor/helix", rev = "14d6bc0febed9c692048271a8ae2362ac969c6e0" }
helix-tui = { git = "https://github.com/helix-editor/helix", rev = "14d6bc0febed9c692048271a8ae2362ac969c6e0" }
helix-view = { git = "https://github.com/helix-editor/helix", rev = "14d6bc0febed9c692048271a8ae2362ac969c6e0" }
helix-vcs = { git = "https://github.com/helix-editor/helix", rev = "14d6bc0febed9c692048271a8ae2362ac969c6e0" }
helix-stdx = { git = "https://github.com/helix-editor/helix", rev = "14d6bc0febed9c692048271a8ae2362ac969c6e0" }
# Common dependencies
tokio = { version = "1.32", features = ["full"] }
futures = "0.3"
futures-util = "0.3"
anyhow = "1.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
toml = "0.9"
arc-swap = "1.7"
notify = { version = "6.1", default-features = false, features = ["macos_fsevent"] }
which = "8.0"
regex = "1.10"
ignore = "0.4"
globset = "0.4"
indexmap = "2"
once_cell = "1.19"
nucleo = "0.5"
parking_lot = "0.12"
prost = "0.14"
url = "2.5"
tempfile = "3.10"
chrono = { version = "0.4", default-features = false, features = ["clock"] }
smallvec = "1.13"
ctor = "1.0"
rust-embed = { version = "8.5", features = ["include-exclude"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json", "fmt"] }
tracing-appender = "0.2"
dirs = "6.0"
thiserror = "2.0"
async-trait = "0.1"
rand = "0.10"
slotmap = "1.0"
pulldown-cmark = { version = "0.13", default-features = false }
zstd = { version = "0.13", default-features = false }
velopack = "1.2.0"
# macOS framework bindings
objc2 = "0.6"
objc2-foundation = "0.3"
objc2-app-kit = "0.3"
# Inter-crate dependencies
nucleotide-types = { path = "crates/nucleotide-types" }
nucleotide-events = { path = "crates/nucleotide-events" }
nucleotide-logging = { path = "crates/nucleotide-logging" }
nucleotide-appearance = { path = "crates/nucleotide-appearance" }
nucleotide-core = { path = "crates/nucleotide-core" }
nucleotide-editor = { path = "crates/nucleotide-editor" }
nucleotide-ui = { path = "crates/nucleotide-ui" }
nucleotide-lsp = { path = "crates/nucleotide-lsp" }
nucleotide-project = { path = "crates/nucleotide-project" }
nucleotide-env = { path = "crates/nucleotide-env" }
nucleotide-process = { path = "crates/nucleotide-process" }
nucleotide-workspace = { path = "crates/nucleotide-workspace" }
nucleotide-remote = { path = "crates/nucleotide-remote" }
nucleotide-vcs = { path = "crates/nucleotide-vcs" }
[patch."https://github.com/helix-editor/helix"]
helix-lsp = { path = "vendor/helix-lsp" }
helix-lsp-types = { path = "vendor/helix-lsp-types" }
helix-stdx = { path = "vendor/helix-stdx" }
helix-view = { path = "vendor/helix-view" }
[patch.crates-io]
# Use system trust so enterprise TLS interception certificates are honored.
velopack = { path = "vendor/velopack-1.2.0" }
# Zed workspace crates rely on these patched async primitives. Patches in
# dependency workspaces are ignored by Cargo, so mirror the required entries here.
async-process = { git = "https://github.com/zed-industries/async-process.git", rev = "0b6d6713570af61806e1e5cb40e0f757cb93fd9d" }
async-task = { git = "https://github.com/smol-rs/async-task.git", rev = "b4486cd71e4e94fbda54ce6302444de14f4d190e" }
# `block` has no newer crates.io release and v0.1.6 trips Rust's
# `uninhabited_static` future-incompat lint. Keep the package/version stable
# for GPUI's transitive macOS dependencies while patching the marker type.
block = { path = "vendor/block-0.1.6" }
[profile.dev]
opt-level = 1
debug = "line-tables-only" # Faster builds with minimal debug info
split-debuginfo = "unpacked" # Faster linking on macOS
incremental = true
[profile.release]
opt-level = 3
lto = "thin" # Much faster linking than "true", slightly larger binary
codegen-units = 1
strip = "debuginfo"
split-debuginfo = "packed" # Faster linking on macOS
incremental = false # Disable for release builds for maximum optimization
[profile.remote-helper]
inherits = "release"
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"