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