1[workspace]
2members = [
3 "crates/activity_indicator",
4 "crates/anthropic",
5 "crates/assets",
6 "crates/assistant",
7 "crates/assistant_slash_command",
8 "crates/assistant_tooling",
9 "crates/audio",
10 "crates/auto_update",
11 "crates/breadcrumbs",
12 "crates/call",
13 "crates/channel",
14 "crates/cli",
15 "crates/client",
16 "crates/clock",
17 "crates/collab",
18 "crates/collab_ui",
19 "crates/collections",
20 "crates/command_palette",
21 "crates/command_palette_hooks",
22 "crates/copilot",
23 "crates/db",
24 "crates/diagnostics",
25 "crates/editor",
26 "crates/extension",
27 "crates/extension_api",
28 "crates/extension_cli",
29 "crates/extensions_ui",
30 "crates/feature_flags",
31 "crates/feedback",
32 "crates/file_finder",
33 "crates/file_icons",
34 "crates/fs",
35 "crates/fsevent",
36 "crates/fuzzy",
37 "crates/git",
38 "crates/git_hosting_providers",
39 "crates/go_to_line",
40 "crates/google_ai",
41 "crates/gpui",
42 "crates/gpui_macros",
43 "crates/headless",
44 "crates/http",
45 "crates/image_viewer",
46 "crates/inline_completion_button",
47 "crates/install_cli",
48 "crates/journal",
49 "crates/language",
50 "crates/language_selector",
51 "crates/language_tools",
52 "crates/languages",
53 "crates/live_kit_client",
54 "crates/live_kit_server",
55 "crates/lsp",
56 "crates/markdown",
57 "crates/markdown_preview",
58 "crates/media",
59 "crates/menu",
60 "crates/multi_buffer",
61 "crates/node_runtime",
62 "crates/notifications",
63 "crates/open_ai",
64 "crates/outline",
65 "crates/picker",
66 "crates/prettier",
67 "crates/project",
68 "crates/project_panel",
69 "crates/project_symbols",
70 "crates/quick_action_bar",
71 "crates/recent_projects",
72 "crates/refineable",
73 "crates/refineable/derive_refineable",
74 "crates/release_channel",
75 "crates/dev_server_projects",
76 "crates/rich_text",
77 "crates/rope",
78 "crates/rpc",
79 "crates/task",
80 "crates/tasks_ui",
81 "crates/search",
82 "crates/semantic_index",
83 "crates/semantic_version",
84 "crates/settings",
85 "crates/snippet",
86 "crates/sqlez",
87 "crates/sqlez_macros",
88 "crates/story",
89 "crates/storybook",
90 "crates/sum_tree",
91 "crates/tab_switcher",
92 "crates/supermaven",
93 "crates/supermaven_api",
94 "crates/terminal",
95 "crates/terminal_view",
96 "crates/text",
97 "crates/theme",
98 "crates/theme_importer",
99 "crates/theme_selector",
100 "crates/telemetry_events",
101 "crates/time_format",
102 "crates/ui",
103 "crates/ui_text_field",
104 "crates/util",
105 "crates/vcs_menu",
106 "crates/vim",
107 "crates/welcome",
108 "crates/workspace",
109 "crates/worktree",
110 "crates/zed",
111 "crates/zed_actions",
112
113 "extensions/astro",
114 "extensions/clojure",
115 "extensions/csharp",
116 "extensions/dart",
117 "extensions/deno",
118 "extensions/elixir",
119 "extensions/elm",
120 "extensions/emmet",
121 "extensions/erlang",
122 "extensions/gleam",
123 "extensions/glsl",
124 "extensions/haskell",
125 "extensions/html",
126 "extensions/lua",
127 "extensions/ocaml",
128 "extensions/php",
129 "extensions/prisma",
130 "extensions/purescript",
131 "extensions/ruby",
132 "extensions/svelte",
133 "extensions/terraform",
134 "extensions/toml",
135 "extensions/uiua",
136 "extensions/vue",
137 "extensions/zig",
138
139 "tooling/xtask",
140]
141default-members = ["crates/zed"]
142resolver = "2"
143
144[workspace.dependencies]
145activity_indicator = { path = "crates/activity_indicator" }
146ai = { path = "crates/ai" }
147anthropic = { path = "crates/anthropic" }
148assets = { path = "crates/assets" }
149assistant = { path = "crates/assistant" }
150assistant_slash_command = { path = "crates/assistant_slash_command" }
151assistant_tooling = { path = "crates/assistant_tooling" }
152audio = { path = "crates/audio" }
153auto_update = { path = "crates/auto_update" }
154base64 = "0.13"
155breadcrumbs = { path = "crates/breadcrumbs" }
156call = { path = "crates/call" }
157channel = { path = "crates/channel" }
158cli = { path = "crates/cli" }
159client = { path = "crates/client" }
160clock = { path = "crates/clock" }
161collab = { path = "crates/collab" }
162collab_ui = { path = "crates/collab_ui" }
163collections = { path = "crates/collections" }
164color = { path = "crates/color" }
165command_palette = { path = "crates/command_palette" }
166command_palette_hooks = { path = "crates/command_palette_hooks" }
167copilot = { path = "crates/copilot" }
168db = { path = "crates/db" }
169diagnostics = { path = "crates/diagnostics" }
170editor = { path = "crates/editor" }
171extension = { path = "crates/extension" }
172extensions_ui = { path = "crates/extensions_ui" }
173feature_flags = { path = "crates/feature_flags" }
174feedback = { path = "crates/feedback" }
175file_finder = { path = "crates/file_finder" }
176file_icons = { path = "crates/file_icons" }
177fs = { path = "crates/fs" }
178fsevent = { path = "crates/fsevent" }
179fuzzy = { path = "crates/fuzzy" }
180git = { path = "crates/git" }
181git_hosting_providers = { path = "crates/git_hosting_providers" }
182go_to_line = { path = "crates/go_to_line" }
183google_ai = { path = "crates/google_ai" }
184gpui = { path = "crates/gpui" }
185gpui_macros = { path = "crates/gpui_macros" }
186headless = { path = "crates/headless" }
187http = { path = "crates/http" }
188install_cli = { path = "crates/install_cli" }
189image_viewer = { path = "crates/image_viewer" }
190inline_completion_button = { path = "crates/inline_completion_button" }
191journal = { path = "crates/journal" }
192language = { path = "crates/language" }
193language_selector = { path = "crates/language_selector" }
194language_tools = { path = "crates/language_tools" }
195languages = { path = "crates/languages" }
196live_kit_client = { path = "crates/live_kit_client" }
197live_kit_server = { path = "crates/live_kit_server" }
198lsp = { path = "crates/lsp" }
199markdown = { path = "crates/markdown" }
200markdown_preview = { path = "crates/markdown_preview" }
201media = { path = "crates/media" }
202menu = { path = "crates/menu" }
203multi_buffer = { path = "crates/multi_buffer" }
204node_runtime = { path = "crates/node_runtime" }
205notifications = { path = "crates/notifications" }
206open_ai = { path = "crates/open_ai" }
207outline = { path = "crates/outline" }
208picker = { path = "crates/picker" }
209plugin = { path = "crates/plugin" }
210plugin_macros = { path = "crates/plugin_macros" }
211prettier = { path = "crates/prettier" }
212project = { path = "crates/project" }
213worktree = { path = "crates/worktree" }
214project_panel = { path = "crates/project_panel" }
215project_symbols = { path = "crates/project_symbols" }
216quick_action_bar = { path = "crates/quick_action_bar" }
217recent_projects = { path = "crates/recent_projects" }
218release_channel = { path = "crates/release_channel" }
219dev_server_projects = { path = "crates/dev_server_projects" }
220rich_text = { path = "crates/rich_text" }
221rope = { path = "crates/rope" }
222rpc = { path = "crates/rpc" }
223task = { path = "crates/task" }
224tasks_ui = { path = "crates/tasks_ui" }
225search = { path = "crates/search" }
226semantic_index = { path = "crates/semantic_index" }
227semantic_version = { path = "crates/semantic_version" }
228settings = { path = "crates/settings" }
229snippet = { path = "crates/snippet" }
230sqlez = { path = "crates/sqlez" }
231sqlez_macros = { path = "crates/sqlez_macros" }
232supermaven = { path = "crates/supermaven" }
233supermaven_api = { path = "crates/supermaven_api" }
234story = { path = "crates/story" }
235storybook = { path = "crates/storybook" }
236sum_tree = { path = "crates/sum_tree" }
237tab_switcher = { path = "crates/tab_switcher" }
238terminal = { path = "crates/terminal" }
239terminal_view = { path = "crates/terminal_view" }
240text = { path = "crates/text" }
241theme = { path = "crates/theme" }
242theme_importer = { path = "crates/theme_importer" }
243theme_selector = { path = "crates/theme_selector" }
244telemetry_events = { path = "crates/telemetry_events" }
245time_format = { path = "crates/time_format" }
246ui = { path = "crates/ui" }
247ui_text_field = { path = "crates/ui_text_field" }
248util = { path = "crates/util" }
249vcs_menu = { path = "crates/vcs_menu" }
250vim = { path = "crates/vim" }
251welcome = { path = "crates/welcome" }
252workspace = { path = "crates/workspace" }
253zed = { path = "crates/zed" }
254zed_actions = { path = "crates/zed_actions" }
255
256anyhow = "1.0.57"
257any_vec = "0.13"
258async-compression = { version = "0.4", features = ["gzip", "futures-io"] }
259async-fs = "1.6"
260async-recursion = "1.0.0"
261async-tar = "0.4.2"
262async-trait = "0.1"
263async_zip = { version = "0.0.17", features = ["deflate", "deflate64"] }
264bitflags = "2.4.2"
265blade-graphics = { git = "https://github.com/kvark/blade", rev = "9c9cabf69e869fc7d9aef2fc76f7d5c354d5710a" }
266blade-macros = { git = "https://github.com/kvark/blade", rev = "9c9cabf69e869fc7d9aef2fc76f7d5c354d5710a" }
267cap-std = "3.0"
268cargo_toml = "0.20"
269chrono = { version = "0.4", features = ["serde"] }
270clap = { version = "4.4", features = ["derive"] }
271clickhouse = { version = "0.11.6" }
272ctor = "0.2.6"
273signal-hook = "0.3.17"
274core-foundation = { version = "0.9.3" }
275core-foundation-sys = "0.8.6"
276derive_more = "0.99.17"
277emojis = "0.6.1"
278env_logger = "0.9"
279exec = "0.3.1"
280fork = "0.1.23"
281futures = "0.3"
282futures-batch = "0.6.1"
283futures-lite = "1.13"
284git2 = { version = "0.18", default-features = false }
285globset = "0.4"
286heed = { version = "0.20.1", features = [
287 "read-txn-no-tls",
288] }
289hex = "0.4.3"
290ignore = "0.4.22"
291indoc = "1"
292# We explicitly disable http2 support in isahc.
293isahc = { version = "1.7.2", default-features = false, features = [
294 "static-curl",
295 "text-decoding",
296] }
297itertools = "0.11.0"
298lazy_static = "1.4.0"
299libc = "0.2"
300linkify = "0.10.0"
301log = { version = "0.4.16", features = ["kv_unstable_serde"] }
302nanoid = "0.4"
303nix = "0.28"
304once_cell = "1.19.0"
305ordered-float = "2.1.1"
306palette = { version = "0.7.5", default-features = false, features = ["std"] }
307parking_lot = "0.12.1"
308pathdiff = "0.2"
309profiling = "1"
310postage = { version = "0.5", features = ["futures-traits"] }
311pretty_assertions = "1.3.0"
312prost = "0.9"
313prost-build = "0.9"
314prost-types = "0.9"
315pulldown-cmark = { version = "0.10.0", default-features = false }
316rand = "0.8.5"
317refineable = { path = "./crates/refineable" }
318regex = "1.5"
319repair_json = "0.1.0"
320rusqlite = { version = "0.29.0", features = ["blob", "array", "modern_sqlite"] }
321rust-embed = { version = "8.4", features = ["include-exclude"] }
322schemars = "0.8"
323semver = "1.0"
324serde = { version = "1.0", features = ["derive", "rc"] }
325serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
326serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
327serde_json_lenient = { version = "0.1", features = [
328 "preserve_order",
329 "raw_value",
330] }
331serde_repr = "0.1"
332sha2 = "0.10"
333shellexpand = "2.1.0"
334shlex = "1.3.0"
335smallvec = { version = "1.6", features = ["union"] }
336smol = "1.2"
337strum = { version = "0.25.0", features = ["derive"] }
338subtle = "2.5.0"
339sysinfo = "0.30.7"
340tempfile = "3.9.0"
341thiserror = "1.0.29"
342tiktoken-rs = "0.5.9"
343time = { version = "0.3", features = [
344 "macros",
345 "parsing",
346 "serde",
347 "serde-well-known",
348 "formatting",
349] }
350toml = "0.8"
351tokio = { version = "1", features = ["full"] }
352tower-http = "0.4.4"
353tree-sitter = { version = "0.20", features = ["wasm"] }
354tree-sitter-bash = "0.20.5"
355tree-sitter-c = "0.20.1"
356tree-sitter-cpp = "0.20.5"
357tree-sitter-css = "0.20"
358tree-sitter-elixir = "0.1.1"
359tree-sitter-embedded-template = "0.20.0"
360tree-sitter-go = { git = "https://github.com/tree-sitter/tree-sitter-go", rev = "b82ab803d887002a0af11f6ce63d72884580bf33" }
361tree-sitter-gomod = "1.0.1"
362tree-sitter-gowork = { git = "https://github.com/d1y/tree-sitter-go-work" }
363rustc-demangle = "0.1.23"
364tree-sitter-heex = { git = "https://github.com/phoenixframework/tree-sitter-heex", rev = "2e1348c3cf2c9323e87c2744796cf3f3868aa82a" }
365tree-sitter-html = "0.19.0"
366tree-sitter-jsdoc = { git = "https://github.com/tree-sitter/tree-sitter-jsdoc", rev = "6a6cf9e7341af32d8e2b2e24a37fbfebefc3dc55" }
367tree-sitter-json = "0.20.2"
368tree-sitter-markdown = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "330ecab87a3e3a7211ac69bbadc19eabecdb1cca" }
369tree-sitter-proto = { git = "https://github.com/rewinfrey/tree-sitter-proto", rev = "36d54f288aee112f13a67b550ad32634d0c2cb52" }
370tree-sitter-python = "0.20.2"
371tree-sitter-regex = "0.20.0"
372tree-sitter-ruby = "0.20.0"
373tree-sitter-rust = "0.20.3"
374tree-sitter-typescript = "0.20.5"
375tree-sitter-yaml = "0.0.1"
376unindent = "0.1.7"
377unicase = "2.6"
378unicode-segmentation = "1.10"
379url = "2.2"
380uuid = { version = "1.1.2", features = ["v4", "v5", "serde"] }
381wasmparser = "0.201"
382wasm-encoder = "0.201"
383wasmtime = { version = "19.0.0", default-features = false, features = [
384 "async",
385 "demangle",
386 "runtime",
387 "cranelift",
388 "component-model",
389] }
390wasmtime-wasi = "19.0.0"
391which = "6.0.0"
392wit-component = "0.201"
393sys-locale = "0.3.1"
394
395[workspace.dependencies.windows]
396version = "0.56.0"
397features = [
398 "implement",
399 "Foundation_Numerics",
400 "System",
401 "System_Threading",
402 "Wdk_System_SystemServices",
403 "Win32_Globalization",
404 "Win32_Graphics_Direct2D",
405 "Win32_Graphics_Direct2D_Common",
406 "Win32_Graphics_DirectWrite",
407 "Win32_Graphics_Dwm",
408 "Win32_Graphics_Dxgi_Common",
409 "Win32_Graphics_Gdi",
410 "Win32_Graphics_Imaging",
411 "Win32_Graphics_Imaging_D2D",
412 "Win32_Security",
413 "Win32_Security_Credentials",
414 "Win32_Storage_FileSystem",
415 "Win32_System_LibraryLoader",
416 "Win32_System_Com",
417 "Win32_System_Com_StructuredStorage",
418 "Win32_System_DataExchange",
419 "Win32_System_LibraryLoader",
420 "Win32_System_Ole",
421 "Win32_System_SystemInformation",
422 "Win32_System_SystemServices",
423 "Win32_System_Threading",
424 "Win32_System_Time",
425 "Win32_System_WinRT",
426 "Win32_UI_Controls",
427 "Win32_UI_HiDpi",
428 "Win32_UI_Input_Ime",
429 "Win32_UI_Input_KeyboardAndMouse",
430 "Win32_UI_Shell",
431 "Win32_UI_WindowsAndMessaging",
432]
433
434[patch.crates-io]
435tree-sitter = { git = "https://github.com/tree-sitter/tree-sitter", rev = "7b4894ba2ae81b988846676f54c0988d4027ef4f" }
436# Workaround for a broken nightly build of gpui: See #7644 and revisit once 0.5.3 is released.
437pathfinder_simd = { git = "https://github.com/servo/pathfinder.git", rev = "30419d07660dc11a21e42ef4a7fa329600cff152" }
438
439[profile.dev]
440split-debuginfo = "unpacked"
441debug = "limited"
442
443[profile.dev.package]
444taffy = { opt-level = 3 }
445cranelift-codegen = { opt-level = 3 }
446resvg = { opt-level = 3 }
447rustybuzz = { opt-level = 3 }
448ttf-parser = { opt-level = 3 }
449wasmtime-cranelift = { opt-level = 3 }
450wasmtime = { opt-level = 3 }
451
452[profile.release]
453debug = "limited"
454lto = "thin"
455codegen-units = 1
456
457[profile.release.package]
458zed = { codegen-units = 16 }
459
460[workspace.lints.clippy]
461dbg_macro = "deny"
462todo = "deny"
463
464# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
465# warning on this rule produces a lot of noise.
466single_range_in_vec_init = "allow"
467
468# These are all of the rules that currently have violations in the Zed
469# codebase.
470#
471# We'll want to drive this list down by either:
472# 1. fixing violations of the rule and begin enforcing it
473# 2. deciding we want to allow the rule permanently, at which point
474# we should codify that separately above.
475#
476# This list shouldn't be added to; it should only get shorter.
477# =============================================================================
478
479# There are a bunch of rules currently failing in the `style` group, so
480# allow all of those, for now.
481style = "allow"
482
483# Individual rules that have violations in the codebase:
484almost_complete_range = "allow"
485arc_with_non_send_sync = "allow"
486borrowed_box = "allow"
487let_underscore_future = "allow"
488map_entry = "allow"
489non_canonical_partial_ord_impl = "allow"
490reversed_empty_ranges = "allow"
491type_complexity = "allow"
492
493[workspace.lints.rust]
494unexpected_cfgs = { level = "warn", check-cfg = [
495 'cfg(gles)' # used in gpui
496] }
497
498[workspace.metadata.cargo-machete]
499ignored = ["bindgen", "cbindgen", "prost_build", "serde"]