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