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/assistant_tool",
10 "crates/audio",
11 "crates/auto_update",
12 "crates/breadcrumbs",
13 "crates/call",
14 "crates/channel",
15 "crates/cli",
16 "crates/client",
17 "crates/clock",
18 "crates/collab",
19 "crates/collab_ui",
20 "crates/collections",
21 "crates/command_palette",
22 "crates/command_palette_hooks",
23 "crates/context_servers",
24 "crates/copilot",
25 "crates/db",
26 "crates/dev_server_projects",
27 "crates/diagnostics",
28 "crates/docs_preprocessor",
29 "crates/editor",
30 "crates/extension",
31 "crates/extension_api",
32 "crates/extension_cli",
33 "crates/extensions_ui",
34 "crates/feature_flags",
35 "crates/feedback",
36 "crates/file_finder",
37 "crates/file_icons",
38 "crates/fs",
39 "crates/fsevent",
40 "crates/fuzzy",
41 "crates/git",
42 "crates/git_hosting_providers",
43 "crates/go_to_line",
44 "crates/google_ai",
45 "crates/gpui",
46 "crates/gpui_macros",
47 "crates/headless",
48 "crates/html_to_markdown",
49 "crates/http_client",
50 "crates/image_viewer",
51 "crates/indexed_docs",
52 "crates/inline_completion_button",
53 "crates/install_cli",
54 "crates/journal",
55 "crates/language",
56 "crates/language_model",
57 "crates/language_selector",
58 "crates/language_tools",
59 "crates/languages",
60 "crates/live_kit_client",
61 "crates/live_kit_server",
62 "crates/lsp",
63 "crates/markdown",
64 "crates/markdown_preview",
65 "crates/media",
66 "crates/menu",
67 "crates/multi_buffer",
68 "crates/node_runtime",
69 "crates/notifications",
70 "crates/ollama",
71 "crates/open_ai",
72 "crates/outline",
73 "crates/outline_panel",
74 "crates/paths",
75 "crates/picker",
76 "crates/prettier",
77 "crates/project",
78 "crates/project_panel",
79 "crates/project_symbols",
80 "crates/proto",
81 "crates/quick_action_bar",
82 "crates/recent_projects",
83 "crates/refineable",
84 "crates/refineable/derive_refineable",
85 "crates/release_channel",
86 "crates/remote",
87 "crates/remote_server",
88 "crates/repl",
89 "crates/rich_text",
90 "crates/rope",
91 "crates/rpc",
92 "crates/search",
93 "crates/semantic_index",
94 "crates/semantic_version",
95 "crates/session",
96 "crates/settings",
97 "crates/settings_ui",
98 "crates/snippet",
99 "crates/snippet_provider",
100 "crates/sqlez",
101 "crates/sqlez_macros",
102 "crates/story",
103 "crates/storybook",
104 "crates/sum_tree",
105 "crates/supermaven",
106 "crates/supermaven_api",
107 "crates/tab_switcher",
108 "crates/task",
109 "crates/tasks_ui",
110 "crates/telemetry_events",
111 "crates/terminal",
112 "crates/terminal_view",
113 "crates/text",
114 "crates/theme",
115 "crates/theme_importer",
116 "crates/theme_selector",
117 "crates/time_format",
118 "crates/title_bar",
119 "crates/ui",
120 "crates/ui_input",
121 "crates/util",
122 "crates/vcs_menu",
123 "crates/vim",
124 "crates/welcome",
125 "crates/workspace",
126 "crates/worktree",
127 "crates/zed",
128 "crates/zed_actions",
129
130 #
131 # Extensions
132 #
133
134 "extensions/astro",
135 "extensions/clojure",
136 "extensions/csharp",
137 "extensions/dart",
138 "extensions/deno",
139 "extensions/elixir",
140 "extensions/elm",
141 "extensions/emmet",
142 "extensions/erlang",
143 "extensions/gleam",
144 "extensions/glsl",
145 "extensions/haskell",
146 "extensions/html",
147 "extensions/lua",
148 "extensions/ocaml",
149 "extensions/php",
150 "extensions/perplexity",
151 "extensions/prisma",
152 "extensions/purescript",
153 "extensions/ruff",
154 "extensions/ruby",
155 "extensions/slash-commands-example",
156 "extensions/snippets",
157 "extensions/svelte",
158 "extensions/terraform",
159 "extensions/test-extension",
160 "extensions/toml",
161 "extensions/uiua",
162 "extensions/vue",
163 "extensions/zig",
164
165 #
166 # Tooling
167 #
168
169 "tooling/xtask",
170]
171default-members = ["crates/zed"]
172
173[workspace.dependencies]
174#
175# Workspace member crates
176#
177
178activity_indicator = { path = "crates/activity_indicator" }
179ai = { path = "crates/ai" }
180anthropic = { path = "crates/anthropic" }
181assets = { path = "crates/assets" }
182assistant = { path = "crates/assistant" }
183assistant_slash_command = { path = "crates/assistant_slash_command" }
184assistant_tool = { path = "crates/assistant_tool" }
185audio = { path = "crates/audio" }
186auto_update = { path = "crates/auto_update" }
187breadcrumbs = { path = "crates/breadcrumbs" }
188call = { path = "crates/call" }
189channel = { path = "crates/channel" }
190cli = { path = "crates/cli" }
191client = { path = "crates/client" }
192clock = { path = "crates/clock" }
193collab = { path = "crates/collab" }
194collab_ui = { path = "crates/collab_ui" }
195collections = { path = "crates/collections" }
196command_palette = { path = "crates/command_palette" }
197command_palette_hooks = { path = "crates/command_palette_hooks" }
198context_servers = { path = "crates/context_servers" }
199copilot = { path = "crates/copilot" }
200db = { path = "crates/db" }
201dev_server_projects = { path = "crates/dev_server_projects" }
202diagnostics = { path = "crates/diagnostics" }
203editor = { path = "crates/editor" }
204extension = { path = "crates/extension" }
205extensions_ui = { path = "crates/extensions_ui" }
206feature_flags = { path = "crates/feature_flags" }
207feedback = { path = "crates/feedback" }
208file_finder = { path = "crates/file_finder" }
209file_icons = { path = "crates/file_icons" }
210fs = { path = "crates/fs" }
211fsevent = { path = "crates/fsevent" }
212fuzzy = { path = "crates/fuzzy" }
213git = { path = "crates/git" }
214git_hosting_providers = { path = "crates/git_hosting_providers" }
215go_to_line = { path = "crates/go_to_line" }
216google_ai = { path = "crates/google_ai" }
217gpui = { path = "crates/gpui" }
218gpui_macros = { path = "crates/gpui_macros" }
219handlebars = "4.3"
220headless = { path = "crates/headless" }
221html_to_markdown = { path = "crates/html_to_markdown" }
222http_client = { path = "crates/http_client" }
223image_viewer = { path = "crates/image_viewer" }
224indexed_docs = { path = "crates/indexed_docs" }
225inline_completion_button = { path = "crates/inline_completion_button" }
226install_cli = { path = "crates/install_cli" }
227journal = { path = "crates/journal" }
228language = { path = "crates/language" }
229language_model = { path = "crates/language_model" }
230language_selector = { path = "crates/language_selector" }
231language_tools = { path = "crates/language_tools" }
232languages = { path = "crates/languages" }
233live_kit_client = { path = "crates/live_kit_client" }
234live_kit_server = { path = "crates/live_kit_server" }
235lsp = { path = "crates/lsp" }
236markdown = { path = "crates/markdown" }
237markdown_preview = { path = "crates/markdown_preview" }
238media = { path = "crates/media" }
239menu = { path = "crates/menu" }
240multi_buffer = { path = "crates/multi_buffer" }
241node_runtime = { path = "crates/node_runtime" }
242notifications = { path = "crates/notifications" }
243ollama = { path = "crates/ollama" }
244open_ai = { path = "crates/open_ai" }
245outline = { path = "crates/outline" }
246outline_panel = { path = "crates/outline_panel" }
247paths = { path = "crates/paths" }
248picker = { path = "crates/picker" }
249plugin = { path = "crates/plugin" }
250plugin_macros = { path = "crates/plugin_macros" }
251prettier = { path = "crates/prettier" }
252project = { path = "crates/project" }
253project_panel = { path = "crates/project_panel" }
254project_symbols = { path = "crates/project_symbols" }
255proto = { path = "crates/proto" }
256quick_action_bar = { path = "crates/quick_action_bar" }
257recent_projects = { path = "crates/recent_projects" }
258refineable = { path = "crates/refineable" }
259release_channel = { path = "crates/release_channel" }
260remote = { path = "crates/remote" }
261remote_server = { path = "crates/remote_server" }
262repl = { path = "crates/repl" }
263rich_text = { path = "crates/rich_text" }
264rope = { path = "crates/rope" }
265rpc = { path = "crates/rpc" }
266search = { path = "crates/search" }
267semantic_index = { path = "crates/semantic_index" }
268semantic_version = { path = "crates/semantic_version" }
269session = { path = "crates/session" }
270settings = { path = "crates/settings" }
271settings_ui = { path = "crates/settings_ui" }
272snippet = { path = "crates/snippet" }
273snippet_provider = { path = "crates/snippet_provider" }
274sqlez = { path = "crates/sqlez" }
275sqlez_macros = { path = "crates/sqlez_macros" }
276story = { path = "crates/story" }
277storybook = { path = "crates/storybook" }
278sum_tree = { path = "crates/sum_tree" }
279supermaven = { path = "crates/supermaven" }
280supermaven_api = { path = "crates/supermaven_api" }
281tab_switcher = { path = "crates/tab_switcher" }
282task = { path = "crates/task" }
283tasks_ui = { path = "crates/tasks_ui" }
284telemetry_events = { path = "crates/telemetry_events" }
285terminal = { path = "crates/terminal" }
286terminal_view = { path = "crates/terminal_view" }
287text = { path = "crates/text" }
288theme = { path = "crates/theme" }
289theme_importer = { path = "crates/theme_importer" }
290theme_selector = { path = "crates/theme_selector" }
291time_format = { path = "crates/time_format" }
292title_bar = { path = "crates/title_bar" }
293ui = { path = "crates/ui" }
294ui_input = { path = "crates/ui_input" }
295util = { path = "crates/util" }
296vcs_menu = { path = "crates/vcs_menu" }
297vim = { path = "crates/vim" }
298welcome = { path = "crates/welcome" }
299workspace = { path = "crates/workspace" }
300worktree = { path = "crates/worktree" }
301zed = { path = "crates/zed" }
302zed_actions = { path = "crates/zed_actions" }
303
304#
305# External crates
306#
307
308aho-corasick = "1.1"
309alacritty_terminal = { git = "https://github.com/alacritty/alacritty", rev = "91d034ff8b53867143c005acfaa14609147c9a2c" }
310any_vec = "0.14"
311anyhow = "1.0.86"
312ashpd = "0.9.1"
313async-compression = { version = "0.4", features = ["gzip", "futures-io"] }
314async-dispatcher = "0.1"
315async-fs = "1.6"
316async-pipe = { git = "https://github.com/zed-industries/async-pipe-rs", rev = "82d00a04211cf4e1236029aa03e6b6ce2a74c553" }
317async-recursion = "1.0.0"
318async-tar = "0.5.0"
319async-trait = "0.1"
320async-tungstenite = "0.23"
321async-watch = "0.3.1"
322async_zip = { version = "0.0.17", features = ["deflate", "deflate64"] }
323base64 = "0.22"
324bitflags = "2.6.0"
325blade-graphics = { git = "https://github.com/kvark/blade", rev = "e142a3a5e678eb6a13e642ad8401b1f3aa38e969" }
326blade-macros = { git = "https://github.com/kvark/blade", rev = "e142a3a5e678eb6a13e642ad8401b1f3aa38e969" }
327blade-util = { git = "https://github.com/kvark/blade", rev = "e142a3a5e678eb6a13e642ad8401b1f3aa38e969" }
328cargo_metadata = "0.18"
329cargo_toml = "0.20"
330chrono = { version = "0.4", features = ["serde"] }
331clap = { version = "4.4", features = ["derive"] }
332clickhouse = "0.11.6"
333cocoa = "0.26"
334core-foundation = "0.9.3"
335core-foundation-sys = "0.8.6"
336ctor = "0.2.6"
337dashmap = "6.0"
338derive_more = "0.99.17"
339dirs = "4.0"
340emojis = "0.6.1"
341env_logger = "0.11"
342exec = "0.3.1"
343fork = "0.2.0"
344futures = "0.3"
345futures-batch = "0.6.1"
346futures-lite = "1.13"
347git2 = { version = "0.19", default-features = false }
348globset = "0.4"
349heed = { version = "0.20.1", features = ["read-txn-no-tls"] }
350hex = "0.4.3"
351hyper = "0.14"
352html5ever = "0.27.0"
353ignore = "0.4.22"
354image = "0.25.1"
355indexmap = { version = "1.6.2", features = ["serde"] }
356indoc = "2"
357# We explicitly disable http2 support in isahc.
358isahc = { version = "1.7.2", default-features = false, features = [
359 "text-decoding",
360] }
361itertools = "0.13.0"
362jsonwebtoken = "9.3"
363libc = "0.2"
364linkify = "0.10.0"
365log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
366markup5ever_rcdom = "0.3.0"
367nanoid = "0.4"
368nix = "0.29"
369num-format = "0.4.4"
370once_cell = "1.19.0"
371ordered-float = "2.1.1"
372palette = { version = "0.7.5", default-features = false, features = ["std"] }
373parking_lot = "0.12.1"
374pathdiff = "0.2"
375profiling = "1"
376postage = { version = "0.5", features = ["futures-traits"] }
377pretty_assertions = "1.3.0"
378prost = "0.9"
379prost-build = "0.9"
380prost-types = "0.9"
381pulldown-cmark = { version = "0.12.0", default-features = false }
382rand = "0.8.5"
383regex = "1.5"
384repair_json = "0.1.0"
385rsa = "0.9.6"
386runtimelib = { version = "0.15", default-features = false, features = [
387 "async-dispatcher-runtime",
388] }
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.39"
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"
548debug = "full"
549lto = false
550codegen-units = 16
551
552[workspace.lints.clippy]
553dbg_macro = "deny"
554todo = "deny"
555
556# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
557# warning on this rule produces a lot of noise.
558single_range_in_vec_init = "allow"
559
560# These are all of the rules that currently have violations in the Zed
561# codebase.
562#
563# We'll want to drive this list down by either:
564# 1. fixing violations of the rule and begin enforcing it
565# 2. deciding we want to allow the rule permanently, at which point
566# we should codify that separately above.
567#
568# This list shouldn't be added to; it should only get shorter.
569# =============================================================================
570
571# There are a bunch of rules currently failing in the `style` group, so
572# allow all of those, for now.
573style = { level = "allow", priority = -1 }
574
575# Temporary list of style lints that we've fixed so far.
576module_inception = { level = "deny" }
577question_mark = { level = "deny" }
578redundant_closure = { level = "deny" }
579# Individual rules that have violations in the codebase:
580type_complexity = "allow"
581# We often return trait objects from `new` functions.
582new_ret_no_self = { level = "allow" }
583# We have a few `next` functions that differ in lifetimes
584# compared to Iterator::next. Yet, clippy complains about those.
585should_implement_trait = { level = "allow" }
586
587[workspace.metadata.cargo-machete]
588ignored = ["bindgen", "cbindgen", "prost_build", "serde"]