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