1[workspace]
2members = [
3 "crates/activity_indicator",
4 "crates/ai",
5 "crates/assets",
6 "crates/assistant",
7 "crates/audio",
8 "crates/auto_update",
9 "crates/breadcrumbs",
10 "crates/call",
11 "crates/channel",
12 "crates/cli",
13 "crates/client",
14 "crates/clock",
15 "crates/collab",
16 "crates/collab_ui",
17 "crates/collections",
18 "crates/command_palette",
19 "crates/command_palette_hooks",
20 "crates/copilot",
21 "crates/copilot_ui",
22 "crates/db",
23 "crates/diagnostics",
24 "crates/editor",
25 "crates/extension",
26 "crates/extension_api",
27 "crates/extensions_ui",
28 "crates/feature_flags",
29 "crates/feedback",
30 "crates/file_finder",
31 "crates/fs",
32 "crates/fsevent",
33 "crates/fuzzy",
34 "crates/git",
35 "crates/go_to_line",
36 "crates/gpui",
37 "crates/gpui_macros",
38 "crates/install_cli",
39 "crates/journal",
40 "crates/language",
41 "crates/language_selector",
42 "crates/language_tools",
43 "crates/languages",
44 "crates/live_kit_client",
45 "crates/live_kit_server",
46 "crates/lsp",
47 "crates/markdown_preview",
48 "crates/media",
49 "crates/menu",
50 "crates/multi_buffer",
51 "crates/node_runtime",
52 "crates/notifications",
53 "crates/outline",
54 "crates/picker",
55 "crates/prettier",
56 "crates/project",
57 "crates/project_core",
58 "crates/project_panel",
59 "crates/project_symbols",
60 "crates/quick_action_bar",
61 "crates/recent_projects",
62 "crates/refineable",
63 "crates/refineable/derive_refineable",
64 "crates/release_channel",
65 "crates/rich_text",
66 "crates/rope",
67 "crates/rpc",
68 "crates/task",
69 "crates/tasks_ui",
70 "crates/search",
71 "crates/semantic_index",
72 "crates/settings",
73 "crates/snippet",
74 "crates/sqlez",
75 "crates/sqlez_macros",
76 "crates/story",
77 "crates/storybook",
78 "crates/sum_tree",
79 "crates/terminal",
80 "crates/terminal_view",
81 "crates/text",
82 "crates/theme",
83 "crates/theme_importer",
84 "crates/theme_selector",
85 "crates/telemetry_events",
86 "crates/time_format",
87 "crates/ui",
88 "crates/util",
89 "crates/vcs_menu",
90 "crates/vim",
91 "crates/welcome",
92 "crates/workspace",
93 "crates/zed",
94 "crates/zed_actions",
95 "extensions/gleam",
96 "tooling/xtask",
97]
98default-members = ["crates/zed"]
99resolver = "2"
100
101[workspace.dependencies]
102activity_indicator = { path = "crates/activity_indicator" }
103ai = { path = "crates/ai" }
104assets = { path = "crates/assets" }
105assistant = { path = "crates/assistant" }
106audio = { path = "crates/audio" }
107auto_update = { path = "crates/auto_update" }
108base64 = "0.13"
109breadcrumbs = { path = "crates/breadcrumbs" }
110call = { path = "crates/call" }
111channel = { path = "crates/channel" }
112cli = { path = "crates/cli" }
113client = { path = "crates/client" }
114clock = { path = "crates/clock" }
115collab = { path = "crates/collab" }
116collab_ui = { path = "crates/collab_ui" }
117collections = { path = "crates/collections" }
118color = { path = "crates/color" }
119command_palette = { path = "crates/command_palette" }
120command_palette_hooks = { path = "crates/command_palette_hooks" }
121copilot = { path = "crates/copilot" }
122copilot_ui = { path = "crates/copilot_ui" }
123db = { path = "crates/db" }
124diagnostics = { path = "crates/diagnostics" }
125editor = { path = "crates/editor" }
126extension = { path = "crates/extension" }
127extensions_ui = { path = "crates/extensions_ui" }
128feature_flags = { path = "crates/feature_flags" }
129feedback = { path = "crates/feedback" }
130file_finder = { path = "crates/file_finder" }
131fs = { path = "crates/fs" }
132fsevent = { path = "crates/fsevent" }
133fuzzy = { path = "crates/fuzzy" }
134git = { path = "crates/git" }
135go_to_line = { path = "crates/go_to_line" }
136gpui = { path = "crates/gpui" }
137gpui_macros = { path = "crates/gpui_macros" }
138install_cli = { path = "crates/install_cli" }
139journal = { path = "crates/journal" }
140language = { path = "crates/language" }
141language_selector = { path = "crates/language_selector" }
142language_tools = { path = "crates/language_tools" }
143languages = { path = "crates/languages" }
144live_kit_client = { path = "crates/live_kit_client" }
145live_kit_server = { path = "crates/live_kit_server" }
146lsp = { path = "crates/lsp" }
147markdown_preview = { path = "crates/markdown_preview" }
148media = { path = "crates/media" }
149menu = { path = "crates/menu" }
150multi_buffer = { path = "crates/multi_buffer" }
151node_runtime = { path = "crates/node_runtime" }
152notifications = { path = "crates/notifications" }
153outline = { path = "crates/outline" }
154picker = { path = "crates/picker" }
155plugin = { path = "crates/plugin" }
156plugin_macros = { path = "crates/plugin_macros" }
157prettier = { path = "crates/prettier" }
158project = { path = "crates/project" }
159project_core = { path = "crates/project_core" }
160project_panel = { path = "crates/project_panel" }
161project_symbols = { path = "crates/project_symbols" }
162quick_action_bar = { path = "crates/quick_action_bar" }
163recent_projects = { path = "crates/recent_projects" }
164release_channel = { path = "crates/release_channel" }
165rich_text = { path = "crates/rich_text" }
166rope = { path = "crates/rope" }
167rpc = { path = "crates/rpc" }
168task = { path = "crates/task" }
169tasks_ui = { path = "crates/tasks_ui" }
170search = { path = "crates/search" }
171semantic_index = { path = "crates/semantic_index" }
172settings = { path = "crates/settings" }
173snippet = { path = "crates/snippet" }
174sqlez = { path = "crates/sqlez" }
175sqlez_macros = { path = "crates/sqlez_macros" }
176story = { path = "crates/story" }
177storybook = { path = "crates/storybook" }
178sum_tree = { path = "crates/sum_tree" }
179terminal = { path = "crates/terminal" }
180terminal_view = { path = "crates/terminal_view" }
181text = { path = "crates/text" }
182theme = { path = "crates/theme" }
183theme_importer = { path = "crates/theme_importer" }
184theme_selector = { path = "crates/theme_selector" }
185telemetry_events = { path = "crates/telemetry_events" }
186time_format = { path = "crates/time_format" }
187ui = { path = "crates/ui" }
188util = { path = "crates/util" }
189vcs_menu = { path = "crates/vcs_menu" }
190vim = { path = "crates/vim" }
191welcome = { path = "crates/welcome" }
192workspace = { path = "crates/workspace" }
193zed = { path = "crates/zed" }
194zed_actions = { path = "crates/zed_actions" }
195
196anyhow = "1.0.57"
197async-compression = { version = "0.4", features = ["gzip", "futures-io"] }
198async-tar = "0.4.2"
199async-trait = "0.1"
200bitflags = "2.4.2"
201blade-graphics = { git = "https://github.com/kvark/blade", rev = "43721bf42d298b7cbee2195ee66f73a5f1c7b2fc" }
202blade-macros = { git = "https://github.com/kvark/blade", rev = "43721bf42d298b7cbee2195ee66f73a5f1c7b2fc" }
203blade-rwh = { package = "raw-window-handle", version = "0.5" }
204chrono = { version = "0.4", features = ["serde"] }
205clap = "4.4"
206clickhouse = { version = "0.11.6" }
207ctor = "0.2.6"
208core-foundation = { version = "0.9.3" }
209core-foundation-sys = "0.8.6"
210derive_more = "0.99.17"
211emojis = "0.6.1"
212env_logger = "0.9"
213futures = "0.3"
214git2 = { version = "0.15", default-features = false }
215globset = "0.4"
216hex = "0.4.3"
217ignore = "0.4.22"
218indoc = "1"
219# We explicitly disable http2 support in isahc.
220isahc = { version = "1.7.2", default-features = false, features = [
221 "static-curl",
222 "text-decoding",
223] }
224itertools = "0.11.0"
225lazy_static = "1.4.0"
226linkify = "0.10.0"
227log = { version = "0.4.16", features = ["kv_unstable_serde"] }
228ordered-float = "2.1.1"
229palette = { version = "0.7.5", default-features = false, features = ["std"] }
230parking_lot = "0.11.1"
231profiling = "1"
232postage = { version = "0.5", features = ["futures-traits"] }
233pretty_assertions = "1.3.0"
234prost = "0.8"
235pulldown-cmark = { version = "0.10.0", default-features = false }
236rand = "0.8.5"
237refineable = { path = "./crates/refineable" }
238regex = "1.5"
239rusqlite = { version = "0.29.0", features = ["blob", "array", "modern_sqlite"] }
240rust-embed = { version = "8.0", features = ["include-exclude"] }
241schemars = "0.8"
242semver = "1.0"
243serde = { version = "1.0", features = ["derive", "rc"] }
244serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
245serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
246serde_json_lenient = { version = "0.1", features = [
247 "preserve_order",
248 "raw_value",
249] }
250serde_repr = "0.1"
251sha2 = "0.10"
252shellexpand = "2.1.0"
253smallvec = { version = "1.6", features = ["union"] }
254smol = "1.2"
255strum = { version = "0.25.0", features = ["derive"] }
256subtle = "2.5.0"
257sysinfo = "0.29.10"
258tempfile = "3.9.0"
259thiserror = "1.0.29"
260tiktoken-rs = "0.5.7"
261time = { version = "0.3", features = [
262 "serde",
263 "serde-well-known",
264 "formatting",
265] }
266toml = "0.8"
267tower-http = "0.4.4"
268tree-sitter = { version = "0.20", features = ["wasm"] }
269tree-sitter-astro = { git = "https://github.com/virchau13/tree-sitter-astro.git", rev = "e924787e12e8a03194f36a113290ac11d6dc10f3" }
270tree-sitter-bash = { git = "https://github.com/tree-sitter/tree-sitter-bash", rev = "7331995b19b8f8aba2d5e26deb51d2195c18bc94" }
271tree-sitter-c = "0.20.1"
272tree-sitter-clojure = { git = "https://github.com/prcastro/tree-sitter-clojure", branch = "update-ts" }
273tree-sitter-c-sharp = { git = "https://github.com/tree-sitter/tree-sitter-c-sharp", rev = "dd5e59721a5f8dae34604060833902b882023aaf" }
274tree-sitter-cpp = { git = "https://github.com/tree-sitter/tree-sitter-cpp", rev = "f44509141e7e483323d2ec178f2d2e6c0fc041c1" }
275tree-sitter-css = { git = "https://github.com/tree-sitter/tree-sitter-css", rev = "769203d0f9abe1a9a691ac2b9fe4bb4397a73c51" }
276tree-sitter-dockerfile = { git = "https://github.com/camdencheek/tree-sitter-dockerfile", rev = "33e22c33bcdbfc33d42806ee84cfd0b1248cc392" }
277tree-sitter-dart = { git = "https://github.com/agent3bood/tree-sitter-dart", rev = "48934e3bf757a9b78f17bdfaa3e2b4284656fdc7" }
278tree-sitter-elixir = { git = "https://github.com/elixir-lang/tree-sitter-elixir", rev = "a2861e88a730287a60c11ea9299c033c7d076e30" }
279tree-sitter-elm = { git = "https://github.com/elm-tooling/tree-sitter-elm", rev = "692c50c0b961364c40299e73c1306aecb5d20f40" }
280tree-sitter-embedded-template = "0.20.0"
281tree-sitter-erlang = "0.4.0"
282tree-sitter-gleam = { git = "https://github.com/gleam-lang/tree-sitter-gleam", rev = "58b7cac8fc14c92b0677c542610d8738c373fa81" }
283tree-sitter-glsl = { git = "https://github.com/theHamsta/tree-sitter-glsl", rev = "2a56fb7bc8bb03a1892b4741279dd0a8758b7fb3" }
284tree-sitter-go = { git = "https://github.com/tree-sitter/tree-sitter-go", rev = "aeb2f33b366fd78d5789ff104956ce23508b85db" }
285tree-sitter-gomod = { git = "https://github.com/camdencheek/tree-sitter-go-mod" }
286tree-sitter-gowork = { git = "https://github.com/d1y/tree-sitter-go-work" }
287tree-sitter-haskell = { git = "https://github.com/tree-sitter/tree-sitter-haskell", rev = "8a99848fc734f9c4ea523b3f2a07df133cbbcec2" }
288tree-sitter-hcl = { git = "https://github.com/MichaHoffmann/tree-sitter-hcl", rev = "v1.1.0" }
289rustc-demangle = "0.1.23"
290tree-sitter-heex = { git = "https://github.com/phoenixframework/tree-sitter-heex", rev = "2e1348c3cf2c9323e87c2744796cf3f3868aa82a" }
291tree-sitter-html = "0.19.0"
292tree-sitter-json = { git = "https://github.com/tree-sitter/tree-sitter-json", rev = "40a81c01a40ac48744e0c8ccabbaba1920441199" }
293tree-sitter-lua = "0.0.14"
294tree-sitter-markdown = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "330ecab87a3e3a7211ac69bbadc19eabecdb1cca" }
295tree-sitter-nix = { git = "https://github.com/nix-community/tree-sitter-nix", rev = "66e3e9ce9180ae08fc57372061006ef83f0abde7" }
296tree-sitter-nu = { git = "https://github.com/nushell/tree-sitter-nu", rev = "7dd29f9616822e5fc259f5b4ae6c4ded9a71a132" }
297tree-sitter-ocaml = { git = "https://github.com/tree-sitter/tree-sitter-ocaml", rev = "4abfdc1c7af2c6c77a370aee974627be1c285b3b" }
298tree-sitter-php = "0.21.1"
299tree-sitter-prisma-io = { git = "https://github.com/victorhqc/tree-sitter-prisma" }
300tree-sitter-proto = { git = "https://github.com/rewinfrey/tree-sitter-proto", rev = "36d54f288aee112f13a67b550ad32634d0c2cb52" }
301tree-sitter-purescript = { git = "https://github.com/postsolar/tree-sitter-purescript", rev = "v0.1.0" }
302tree-sitter-python = "0.20.2"
303tree-sitter-racket = { git = "https://github.com/zed-industries/tree-sitter-racket", rev = "eb010cf2c674c6fd9a6316a84e28ef90190fe51a" }
304tree-sitter-ruby = "0.20.0"
305tree-sitter-rust = "0.20.3"
306tree-sitter-scheme = { git = "https://github.com/6cdh/tree-sitter-scheme", rev = "af0fd1fa452cb2562dc7b5c8a8c55551c39273b9" }
307tree-sitter-svelte = { git = "https://github.com/Himujjal/tree-sitter-svelte", rev = "bd60db7d3d06f89b6ec3b287c9a6e9190b5564bd" }
308tree-sitter-toml = { git = "https://github.com/tree-sitter/tree-sitter-toml", rev = "342d9be207c2dba869b9967124c679b5e6fd0ebe" }
309tree-sitter-typescript = { git = "https://github.com/tree-sitter/tree-sitter-typescript", rev = "5d20856f34315b068c41edaee2ac8a100081d259" }
310tree-sitter-uiua = { git = "https://github.com/shnarazk/tree-sitter-uiua", rev = "21dc2db39494585bf29a3f86d5add6e9d11a22ba" }
311tree-sitter-vue = { git = "https://github.com/zed-industries/tree-sitter-vue", rev = "6608d9d60c386f19d80af7d8132322fa11199c42" }
312tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "f545a41f57502e1b5ddf2a6668896c1b0620f930" }
313tree-sitter-zig = { git = "https://github.com/maxxnino/tree-sitter-zig", rev = "0d08703e4c3f426ec61695d7617415fff97029bd" }
314unindent = "0.1.7"
315unicase = "2.6"
316url = "2.2"
317uuid = { version = "1.1.2", features = ["v4"] }
318wasmparser = "0.121"
319wasmtime = "18.0"
320wasmtime-wasi = "18.0"
321which = "6.0.0"
322wit-component = "0.20"
323sys-locale = "0.3.1"
324
325[workspace.dependencies.windows]
326version = "0.53.0"
327features = [
328 "Wdk_System_SystemServices",
329 "Win32_Graphics_Gdi",
330 "Win32_Graphics_DirectComposition",
331 "Win32_UI_WindowsAndMessaging",
332 "Win32_UI_Input_KeyboardAndMouse",
333 "Win32_UI_Shell",
334 "Win32_System_SystemInformation",
335 "Win32_System_SystemServices",
336 "Win32_System_Time",
337 "Win32_Security",
338 "Win32_System_Threading",
339 "Win32_System_DataExchange",
340 "Win32_System_Ole",
341]
342
343[patch.crates-io]
344tree-sitter = { git = "https://github.com/tree-sitter/tree-sitter", rev = "e4a23971ec3071a09c1e84816954c98f96e98e52" }
345# Workaround for a broken nightly build of gpui: See #7644 and revisit once 0.5.3 is released.
346pathfinder_simd = { git = "https://github.com/servo/pathfinder.git", rev = "e4fcda0d5259d0acf902aee6de7d2501f2bd6629" }
347
348[profile.dev]
349split-debuginfo = "unpacked"
350debug = "limited"
351
352# todo(linux) - Remove this
353[profile.dev.package.blade-graphics]
354split-debuginfo = "off"
355debug = "full"
356
357[profile.dev.package]
358taffy = { opt-level = 3 }
359cranelift-codegen = { opt-level = 3 }
360rustybuzz = { opt-level = 3 }
361ttf-parser = { opt-level = 3 }
362wasmtime-cranelift = { opt-level = 3 }
363
364[profile.release]
365debug = "limited"
366lto = "thin"
367codegen-units = 1
368
369[workspace.lints.clippy]
370dbg_macro = "deny"
371todo = "deny"
372
373# These are all of the rules that currently have violations in the Zed
374# codebase.
375#
376# We'll want to drive this list down by either:
377# 1. fixing violations of the rule and begin enforcing it
378# 2. deciding we want to allow the rule permanently, at which point
379# we should codify that separately above.
380#
381# This list shouldn't be added to; it should only get shorter.
382# =============================================================================
383
384# There are a bunch of rules currently failing in the `style` group, so
385# allow all of those, for now.
386style = "allow"
387
388# Individual rules that have violations in the codebase:
389almost_complete_range = "allow"
390arc_with_non_send_sync = "allow"
391await_holding_lock = "allow"
392borrowed_box = "allow"
393derive_ord_xor_partial_ord = "allow"
394eq_op = "allow"
395let_underscore_future = "allow"
396map_entry = "allow"
397never_loop = "allow"
398non_canonical_clone_impl = "allow"
399non_canonical_partial_ord_impl = "allow"
400reversed_empty_ranges = "allow"
401single_range_in_vec_init = "allow"
402type_complexity = "allow"
403
404[workspace.metadata.cargo-machete]
405ignored = ["bindgen", "cbindgen", "prost_build", "serde"]