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