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