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