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_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 "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_client = { path = "crates/http_client" }
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-tungstenite = { version = "0.16" }
299async-watch = "0.3.1"
300async_zip = { version = "0.0.17", features = ["deflate", "deflate64"] }
301base64 = "0.13"
302bitflags = "2.6.0"
303blade-graphics = { git = "https://github.com/zed-industries/blade", rev = "9cd21915128da8fa68eee6aca21785470f23f766" }
304blade-macros = { git = "https://github.com/zed-industries/blade", rev = "9cd21915128da8fa68eee6aca21785470f23f766" }
305blade-util = { git = "https://github.com/zed-industries/blade", rev = "9cd21915128da8fa68eee6aca21785470f23f766" }
306cap-std = "3.0"
307cargo_toml = "0.20"
308chrono = { version = "0.4", features = ["serde"] }
309clap = { version = "4.4", features = ["derive"] }
310clickhouse = { version = "0.11.6" }
311cocoa = "0.25"
312core-foundation = { version = "0.9.3" }
313core-foundation-sys = "0.8.6"
314ctor = "0.2.6"
315dashmap = "5.5.3"
316derive_more = "0.99.17"
317dirs = "4.0"
318emojis = "0.6.1"
319env_logger = "0.10"
320exec = "0.3.1"
321fork = "0.1.23"
322futures = "0.3"
323futures-batch = "0.6.1"
324futures-lite = "1.13"
325git2 = { version = "0.19", default-features = false }
326globset = "0.4"
327heed = { version = "0.20.1", features = ["read-txn-no-tls"] }
328hex = "0.4.3"
329html5ever = "0.27.0"
330ignore = "0.4.22"
331image = "0.25.1"
332indexmap = { version = "1.6.2", features = ["serde"] }
333indoc = "1"
334# We explicitly disable http2 support in isahc.
335isahc = { version = "1.7.2", default-features = false, features = [
336 "text-decoding",
337] }
338itertools = "0.11.0"
339lazy_static = "1.4.0"
340libc = "0.2"
341linkify = "0.10.0"
342log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
343markup5ever_rcdom = "0.3.0"
344nanoid = "0.4"
345nix = "0.28"
346num-format = "0.4.4"
347once_cell = "1.19.0"
348ordered-float = "2.1.1"
349palette = { version = "0.7.5", default-features = false, features = ["std"] }
350parking_lot = "0.12.1"
351pathdiff = "0.2"
352profiling = "1"
353postage = { version = "0.5", features = ["futures-traits"] }
354pretty_assertions = "1.3.0"
355prost = "0.9"
356prost-build = "0.9"
357prost-types = "0.9"
358pulldown-cmark = { version = "0.10.0", default-features = false }
359rand = "0.8.5"
360refineable = { path = "./crates/refineable" }
361regex = "1.5"
362repair_json = "0.1.0"
363rsa = "0.9.6"
364runtimelib = { version = "0.12", default-features = false, features = [
365 "async-dispatcher-runtime",
366] }
367rusqlite = { version = "0.29.0", features = ["blob", "array", "modern_sqlite"] }
368rust-embed = { version = "8.4", features = ["include-exclude"] }
369schemars = {version = "0.8", features = ["impl_json_schema"]}
370semver = "1.0"
371serde = { version = "1.0", features = ["derive", "rc"] }
372serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
373serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
374serde_json_lenient = { version = "0.1", features = [
375 "preserve_order",
376 "raw_value",
377] }
378serde_repr = "0.1"
379sha2 = "0.10"
380shellexpand = "2.1.0"
381shlex = "1.3.0"
382signal-hook = "0.3.17"
383similar = "1.3"
384simplelog = "0.12.2"
385smallvec = { version = "1.6", features = ["union"] }
386smol = "1.2"
387strum = { version = "0.25.0", features = ["derive"] }
388subtle = "2.5.0"
389sysinfo = "0.30.7"
390tempfile = "3.9.0"
391thiserror = "1.0.29"
392tiktoken-rs = "0.5.9"
393time = { version = "0.3", features = [
394 "macros",
395 "parsing",
396 "serde",
397 "serde-well-known",
398 "formatting",
399] }
400tiny_http = "0.8"
401toml = "0.8"
402tokio = { version = "1", features = ["full"] }
403tower-http = "0.4.4"
404tree-sitter = { version = "0.20", features = ["wasm"] }
405tree-sitter-bash = "0.20.5"
406tree-sitter-c = "0.20.1"
407tree-sitter-cpp = "0.20.5"
408tree-sitter-css = "0.20"
409tree-sitter-elixir = "0.1.1"
410tree-sitter-embedded-template = "0.20.0"
411tree-sitter-go = { git = "https://github.com/tree-sitter/tree-sitter-go", rev = "b82ab803d887002a0af11f6ce63d72884580bf33" }
412tree-sitter-gomod = "1.0.1"
413tree-sitter-gowork = { git = "https://github.com/d1y/tree-sitter-go-work" }
414rustc-demangle = "0.1.23"
415tree-sitter-heex = { git = "https://github.com/phoenixframework/tree-sitter-heex", rev = "2e1348c3cf2c9323e87c2744796cf3f3868aa82a" }
416tree-sitter-html = "0.19.0"
417tree-sitter-jsdoc = { git = "https://github.com/tree-sitter/tree-sitter-jsdoc", rev = "6a6cf9e7341af32d8e2b2e24a37fbfebefc3dc55" }
418tree-sitter-json = "0.20.2"
419tree-sitter-markdown = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "330ecab87a3e3a7211ac69bbadc19eabecdb1cca" }
420tree-sitter-proto = { git = "https://github.com/rewinfrey/tree-sitter-proto", rev = "36d54f288aee112f13a67b550ad32634d0c2cb52" }
421tree-sitter-python = "0.20.2"
422tree-sitter-regex = "0.20.0"
423tree-sitter-ruby = "0.20.0"
424tree-sitter-rust = "0.20.3"
425tree-sitter-typescript = "0.20.5"
426tree-sitter-yaml = "0.0.1"
427unindent = "0.1.7"
428unicase = "2.6"
429unicode-segmentation = "1.10"
430url = "2.2"
431uuid = { version = "1.1.2", features = ["v4", "v5", "serde"] }
432wasmparser = "0.201"
433wasm-encoder = "0.201"
434wasmtime = { version = "19.0.2", default-features = false, features = [
435 "async",
436 "demangle",
437 "runtime",
438 "cranelift",
439 "component-model",
440] }
441wasmtime-wasi = "19.0.2"
442which = "6.0.0"
443wit-component = "0.201"
444sys-locale = "0.3.1"
445
446[workspace.dependencies.windows]
447version = "0.57"
448features = [
449 "implement",
450 "Foundation_Numerics",
451 "System",
452 "System_Threading",
453 "UI_ViewManagement",
454 "Wdk_System_SystemServices",
455 "Win32_Globalization",
456 "Win32_Graphics_Direct2D",
457 "Win32_Graphics_Direct2D_Common",
458 "Win32_Graphics_DirectWrite",
459 "Win32_Graphics_Dwm",
460 "Win32_Graphics_Dxgi_Common",
461 "Win32_Graphics_Gdi",
462 "Win32_Graphics_Imaging",
463 "Win32_Graphics_Imaging_D2D",
464 "Win32_Security",
465 "Win32_Security_Credentials",
466 "Win32_Storage_FileSystem",
467 "Win32_System_LibraryLoader",
468 "Win32_System_Com",
469 "Win32_System_Com_StructuredStorage",
470 "Win32_System_DataExchange",
471 "Win32_System_LibraryLoader",
472 "Win32_System_Memory",
473 "Win32_System_Ole",
474 "Win32_System_SystemInformation",
475 "Win32_System_SystemServices",
476 "Win32_System_Threading",
477 "Win32_System_WinRT",
478 "Win32_UI_Controls",
479 "Win32_UI_HiDpi",
480 "Win32_UI_Input_Ime",
481 "Win32_UI_Input_KeyboardAndMouse",
482 "Win32_UI_Shell",
483 "Win32_UI_WindowsAndMessaging",
484]
485
486[patch.crates-io]
487tree-sitter = { git = "https://github.com/tree-sitter/tree-sitter", rev = "7b4894ba2ae81b988846676f54c0988d4027ef4f" }
488
489[profile.dev]
490split-debuginfo = "unpacked"
491debug = "limited"
492codegen-units = 16
493
494[profile.dev.package]
495taffy = { opt-level = 3 }
496cranelift-codegen = { opt-level = 3 }
497resvg = { opt-level = 3 }
498rustybuzz = { opt-level = 3 }
499ttf-parser = { opt-level = 3 }
500wasmtime-cranelift = { opt-level = 3 }
501wasmtime = { opt-level = 3 }
502
503[profile.release]
504debug = "limited"
505lto = "thin"
506codegen-units = 1
507
508[profile.release.package]
509zed = { codegen-units = 16 }
510
511[profile.release-fast]
512inherits = "release"
513lto = false
514codegen-units = 16
515
516[workspace.lints.clippy]
517dbg_macro = "deny"
518todo = "deny"
519
520# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
521# warning on this rule produces a lot of noise.
522single_range_in_vec_init = "allow"
523
524# These are all of the rules that currently have violations in the Zed
525# codebase.
526#
527# We'll want to drive this list down by either:
528# 1. fixing violations of the rule and begin enforcing it
529# 2. deciding we want to allow the rule permanently, at which point
530# we should codify that separately above.
531#
532# This list shouldn't be added to; it should only get shorter.
533# =============================================================================
534
535# There are a bunch of rules currently failing in the `style` group, so
536# allow all of those, for now.
537style = { level = "allow", priority = -1 }
538
539# Individual rules that have violations in the codebase:
540almost_complete_range = "allow"
541arc_with_non_send_sync = "allow"
542borrowed_box = "allow"
543let_underscore_future = "allow"
544map_entry = "allow"
545non_canonical_partial_ord_impl = "allow"
546reversed_empty_ranges = "allow"
547type_complexity = "allow"
548
549[workspace.metadata.cargo-machete]
550ignored = ["bindgen", "cbindgen", "prost_build", "serde"]