1[workspace]
2resolver = "2"
3members = [
4 "crates/activity_indicator",
5 "crates/agent",
6 "crates/agent_settings",
7 "crates/anthropic",
8 "crates/askpass",
9 "crates/assets",
10 "crates/assistant_context_editor",
11 "crates/assistant_slash_command",
12 "crates/assistant_slash_commands",
13 "crates/assistant_tool",
14 "crates/assistant_tools",
15 "crates/audio",
16 "crates/auto_update",
17 "crates/auto_update_helper",
18 "crates/auto_update_ui",
19 "crates/aws_http_client",
20 "crates/bedrock",
21 "crates/breadcrumbs",
22 "crates/buffer_diff",
23 "crates/call",
24 "crates/channel",
25 "crates/cli",
26 "crates/client",
27 "crates/clock",
28 "crates/collab",
29 "crates/collab_ui",
30 "crates/collections",
31 "crates/command_palette",
32 "crates/command_palette_hooks",
33 "crates/component",
34 "crates/context_server",
35 "crates/copilot",
36 "crates/credentials_provider",
37 "crates/dap",
38 "crates/dap_adapters",
39 "crates/db",
40 "crates/debug_adapter_extension",
41 "crates/debugger_tools",
42 "crates/debugger_ui",
43 "crates/deepseek",
44 "crates/diagnostics",
45 "crates/docs_preprocessor",
46 "crates/editor",
47 "crates/eval",
48 "crates/extension",
49 "crates/extension_api",
50 "crates/extension_cli",
51 "crates/extension_host",
52 "crates/extensions_ui",
53 "crates/feature_flags",
54 "crates/feedback",
55 "crates/file_finder",
56 "crates/file_icons",
57 "crates/fs",
58 "crates/fsevent",
59 "crates/fuzzy",
60 "crates/git",
61 "crates/git_hosting_providers",
62 "crates/git_ui",
63 "crates/go_to_line",
64 "crates/google_ai",
65 "crates/gpui",
66 "crates/gpui_macros",
67 "crates/gpui_tokio",
68 "crates/html_to_markdown",
69 "crates/http_client",
70 "crates/http_client_tls",
71 "crates/icons",
72 "crates/image_viewer",
73 "crates/indexed_docs",
74 "crates/inline_completion",
75 "crates/inline_completion_button",
76 "crates/inspector_ui",
77 "crates/install_cli",
78 "crates/jj",
79 "crates/jj_ui",
80 "crates/journal",
81 "crates/language",
82 "crates/language_extension",
83 "crates/language_model",
84 "crates/language_models",
85 "crates/language_selector",
86 "crates/language_tools",
87 "crates/languages",
88 "crates/livekit_api",
89 "crates/livekit_client",
90 "crates/lmstudio",
91 "crates/lsp",
92 "crates/markdown",
93 "crates/markdown_preview",
94 "crates/media",
95 "crates/menu",
96 "crates/migrator",
97 "crates/mistral",
98 "crates/multi_buffer",
99 "crates/node_runtime",
100 "crates/notifications",
101 "crates/ollama",
102 "crates/open_ai",
103 "crates/open_router",
104 "crates/outline",
105 "crates/outline_panel",
106 "crates/panel",
107 "crates/paths",
108 "crates/picker",
109 "crates/prettier",
110 "crates/project",
111 "crates/project_panel",
112 "crates/project_symbols",
113 "crates/prompt_store",
114 "crates/proto",
115 "crates/recent_projects",
116 "crates/refineable",
117 "crates/refineable/derive_refineable",
118 "crates/release_channel",
119 "crates/remote",
120 "crates/remote_server",
121 "crates/repl",
122 "crates/reqwest_client",
123 "crates/rich_text",
124 "crates/rope",
125 "crates/rpc",
126 "crates/rules_library",
127 "crates/schema_generator",
128 "crates/search",
129 "crates/semantic_index",
130 "crates/semantic_version",
131 "crates/session",
132 "crates/settings",
133 "crates/settings_ui",
134 "crates/snippet",
135 "crates/snippet_provider",
136 "crates/snippets_ui",
137 "crates/sqlez",
138 "crates/sqlez_macros",
139 "crates/story",
140 "crates/storybook",
141 "crates/streaming_diff",
142 "crates/sum_tree",
143 "crates/supermaven",
144 "crates/supermaven_api",
145 "crates/tab_switcher",
146 "crates/task",
147 "crates/tasks_ui",
148 "crates/telemetry",
149 "crates/telemetry_events",
150 "crates/terminal",
151 "crates/terminal_view",
152 "crates/text",
153 "crates/theme",
154 "crates/theme_extension",
155 "crates/theme_importer",
156 "crates/theme_selector",
157 "crates/time_format",
158 "crates/title_bar",
159 "crates/toolchain_selector",
160 "crates/ui",
161 "crates/ui_input",
162 "crates/ui_macros",
163 "crates/ui_prompt",
164 "crates/util",
165 "crates/util_macros",
166 "crates/vim",
167 "crates/vim_mode_setting",
168 "crates/web_search",
169 "crates/web_search_providers",
170 "crates/welcome",
171 "crates/workspace",
172 "crates/worktree",
173 "crates/zed",
174 "crates/zed_actions",
175 "crates/zeta",
176 "crates/zlog",
177 "crates/zlog_settings",
178
179 #
180 # Extensions
181 #
182
183 "extensions/emmet",
184 "extensions/glsl",
185 "extensions/html",
186 "extensions/perplexity",
187 "extensions/proto",
188 "extensions/ruff",
189 "extensions/slash-commands-example",
190 "extensions/snippets",
191 "extensions/test-extension",
192 "extensions/toml",
193
194 #
195 # Tooling
196 #
197
198 "tooling/workspace-hack",
199 "tooling/xtask",
200]
201default-members = ["crates/zed"]
202
203[workspace.package]
204publish = false
205edition = "2024"
206
207[workspace.dependencies]
208
209#
210# Workspace member crates
211#
212
213activity_indicator = { path = "crates/activity_indicator" }
214agent = { path = "crates/agent" }
215agent_settings = { path = "crates/agent_settings" }
216ai = { path = "crates/ai" }
217anthropic = { path = "crates/anthropic" }
218askpass = { path = "crates/askpass" }
219assets = { path = "crates/assets" }
220assistant_context_editor = { path = "crates/assistant_context_editor" }
221assistant_slash_command = { path = "crates/assistant_slash_command" }
222assistant_slash_commands = { path = "crates/assistant_slash_commands" }
223assistant_tool = { path = "crates/assistant_tool" }
224assistant_tools = { path = "crates/assistant_tools" }
225audio = { path = "crates/audio" }
226auto_update = { path = "crates/auto_update" }
227auto_update_helper = { path = "crates/auto_update_helper" }
228auto_update_ui = { path = "crates/auto_update_ui" }
229aws_http_client = { path = "crates/aws_http_client" }
230bedrock = { path = "crates/bedrock" }
231breadcrumbs = { path = "crates/breadcrumbs" }
232buffer_diff = { path = "crates/buffer_diff" }
233call = { path = "crates/call" }
234channel = { path = "crates/channel" }
235cli = { path = "crates/cli" }
236client = { path = "crates/client" }
237clock = { path = "crates/clock" }
238collab = { path = "crates/collab" }
239collab_ui = { path = "crates/collab_ui" }
240collections = { path = "crates/collections" }
241command_palette = { path = "crates/command_palette" }
242command_palette_hooks = { path = "crates/command_palette_hooks" }
243component = { path = "crates/component" }
244context_server = { path = "crates/context_server" }
245copilot = { path = "crates/copilot" }
246credentials_provider = { path = "crates/credentials_provider" }
247dap = { path = "crates/dap" }
248dap_adapters = { path = "crates/dap_adapters" }
249db = { path = "crates/db" }
250debug_adapter_extension = { path = "crates/debug_adapter_extension" }
251debugger_tools = { path = "crates/debugger_tools" }
252debugger_ui = { path = "crates/debugger_ui" }
253deepseek = { path = "crates/deepseek" }
254diagnostics = { path = "crates/diagnostics" }
255editor = { path = "crates/editor" }
256extension = { path = "crates/extension" }
257extension_host = { path = "crates/extension_host" }
258extensions_ui = { path = "crates/extensions_ui" }
259feature_flags = { path = "crates/feature_flags" }
260feedback = { path = "crates/feedback" }
261file_finder = { path = "crates/file_finder" }
262file_icons = { path = "crates/file_icons" }
263fs = { path = "crates/fs" }
264fsevent = { path = "crates/fsevent" }
265fuzzy = { path = "crates/fuzzy" }
266git = { path = "crates/git" }
267git_hosting_providers = { path = "crates/git_hosting_providers" }
268git_ui = { path = "crates/git_ui" }
269go_to_line = { path = "crates/go_to_line" }
270google_ai = { path = "crates/google_ai" }
271gpui = { path = "crates/gpui", default-features = false, features = [
272 "http_client",
273] }
274gpui_macros = { path = "crates/gpui_macros" }
275gpui_tokio = { path = "crates/gpui_tokio" }
276html_to_markdown = { path = "crates/html_to_markdown" }
277http_client = { path = "crates/http_client" }
278http_client_tls = { path = "crates/http_client_tls" }
279icons = { path = "crates/icons" }
280image_viewer = { path = "crates/image_viewer" }
281indexed_docs = { path = "crates/indexed_docs" }
282inline_completion = { path = "crates/inline_completion" }
283inline_completion_button = { path = "crates/inline_completion_button" }
284inspector_ui = { path = "crates/inspector_ui" }
285install_cli = { path = "crates/install_cli" }
286jj = { path = "crates/jj" }
287jj_ui = { path = "crates/jj_ui" }
288journal = { path = "crates/journal" }
289language = { path = "crates/language" }
290language_extension = { path = "crates/language_extension" }
291language_model = { path = "crates/language_model" }
292language_models = { path = "crates/language_models" }
293language_selector = { path = "crates/language_selector" }
294language_tools = { path = "crates/language_tools" }
295languages = { path = "crates/languages" }
296livekit_api = { path = "crates/livekit_api" }
297livekit_client = { path = "crates/livekit_client" }
298lmstudio = { path = "crates/lmstudio" }
299lsp = { path = "crates/lsp" }
300markdown = { path = "crates/markdown" }
301markdown_preview = { path = "crates/markdown_preview" }
302media = { path = "crates/media" }
303menu = { path = "crates/menu" }
304migrator = { path = "crates/migrator" }
305mistral = { path = "crates/mistral" }
306multi_buffer = { path = "crates/multi_buffer" }
307node_runtime = { path = "crates/node_runtime" }
308notifications = { path = "crates/notifications" }
309ollama = { path = "crates/ollama" }
310open_ai = { path = "crates/open_ai" }
311open_router = { path = "crates/open_router", features = ["schemars"] }
312outline = { path = "crates/outline" }
313outline_panel = { path = "crates/outline_panel" }
314panel = { path = "crates/panel" }
315paths = { path = "crates/paths" }
316picker = { path = "crates/picker" }
317plugin = { path = "crates/plugin" }
318plugin_macros = { path = "crates/plugin_macros" }
319prettier = { path = "crates/prettier" }
320project = { path = "crates/project" }
321project_panel = { path = "crates/project_panel" }
322project_symbols = { path = "crates/project_symbols" }
323prompt_store = { path = "crates/prompt_store" }
324proto = { path = "crates/proto" }
325recent_projects = { path = "crates/recent_projects" }
326refineable = { path = "crates/refineable" }
327release_channel = { path = "crates/release_channel" }
328remote = { path = "crates/remote" }
329remote_server = { path = "crates/remote_server" }
330repl = { path = "crates/repl" }
331reqwest_client = { path = "crates/reqwest_client" }
332rich_text = { path = "crates/rich_text" }
333rope = { path = "crates/rope" }
334rpc = { path = "crates/rpc" }
335rules_library = { path = "crates/rules_library" }
336search = { path = "crates/search" }
337semantic_index = { path = "crates/semantic_index" }
338semantic_version = { path = "crates/semantic_version" }
339session = { path = "crates/session" }
340settings = { path = "crates/settings" }
341settings_ui = { path = "crates/settings_ui" }
342snippet = { path = "crates/snippet" }
343snippet_provider = { path = "crates/snippet_provider" }
344snippets_ui = { path = "crates/snippets_ui" }
345sqlez = { path = "crates/sqlez" }
346sqlez_macros = { path = "crates/sqlez_macros" }
347story = { path = "crates/story" }
348storybook = { path = "crates/storybook" }
349streaming_diff = { path = "crates/streaming_diff" }
350sum_tree = { path = "crates/sum_tree" }
351supermaven = { path = "crates/supermaven" }
352supermaven_api = { path = "crates/supermaven_api" }
353tab_switcher = { path = "crates/tab_switcher" }
354task = { path = "crates/task" }
355tasks_ui = { path = "crates/tasks_ui" }
356telemetry = { path = "crates/telemetry" }
357telemetry_events = { path = "crates/telemetry_events" }
358terminal = { path = "crates/terminal" }
359terminal_view = { path = "crates/terminal_view" }
360text = { path = "crates/text" }
361theme = { path = "crates/theme" }
362theme_extension = { path = "crates/theme_extension" }
363theme_importer = { path = "crates/theme_importer" }
364theme_selector = { path = "crates/theme_selector" }
365time_format = { path = "crates/time_format" }
366title_bar = { path = "crates/title_bar" }
367toolchain_selector = { path = "crates/toolchain_selector" }
368ui = { path = "crates/ui" }
369ui_input = { path = "crates/ui_input" }
370ui_macros = { path = "crates/ui_macros" }
371ui_prompt = { path = "crates/ui_prompt" }
372util = { path = "crates/util" }
373util_macros = { path = "crates/util_macros" }
374vim = { path = "crates/vim" }
375vim_mode_setting = { path = "crates/vim_mode_setting" }
376web_search = { path = "crates/web_search" }
377web_search_providers = { path = "crates/web_search_providers" }
378welcome = { path = "crates/welcome" }
379workspace = { path = "crates/workspace" }
380worktree = { path = "crates/worktree" }
381zed = { path = "crates/zed" }
382zed_actions = { path = "crates/zed_actions" }
383zeta = { path = "crates/zeta" }
384zlog = { path = "crates/zlog" }
385zlog_settings = { path = "crates/zlog_settings" }
386
387#
388# External crates
389#
390
391aho-corasick = "1.1"
392alacritty_terminal = { git = "https://github.com/zed-industries/alacritty.git", branch = "add-hush-login-flag" }
393any_vec = "0.14"
394anyhow = "1.0.86"
395arrayvec = { version = "0.7.4", features = ["serde"] }
396ashpd = { version = "0.11", default-features = false, features = ["async-std"] }
397async-compat = "0.2.1"
398async-compression = { version = "0.4", features = ["gzip", "futures-io"] }
399async-dispatcher = "0.1"
400async-fs = "2.1"
401async-pipe = { git = "https://github.com/zed-industries/async-pipe-rs", rev = "82d00a04211cf4e1236029aa03e6b6ce2a74c553" }
402async-recursion = "1.0.0"
403async-tar = "0.5.0"
404async-trait = "0.1"
405async-tungstenite = "0.29.1"
406async-watch = "0.3.1"
407async_zip = { version = "0.0.17", features = ["deflate", "deflate64"] }
408aws-config = { version = "1.6.1", features = ["behavior-version-latest"] }
409aws-credential-types = { version = "1.2.2", features = [
410 "hardcoded-credentials",
411] }
412aws-sdk-bedrockruntime = { version = "1.80.0", features = [
413 "behavior-version-latest",
414] }
415aws-smithy-runtime-api = { version = "1.7.4", features = ["http-1x", "client"] }
416aws-smithy-types = { version = "1.3.0", features = ["http-body-1-x"] }
417base64 = "0.22"
418bitflags = "2.6.0"
419blade-graphics = { git = "https://github.com/kvark/blade", rev = "416375211bb0b5826b3584dccdb6a43369e499ad" }
420blade-macros = { git = "https://github.com/kvark/blade", rev = "416375211bb0b5826b3584dccdb6a43369e499ad" }
421blade-util = { git = "https://github.com/kvark/blade", rev = "416375211bb0b5826b3584dccdb6a43369e499ad" }
422blake3 = "1.5.3"
423bytes = "1.0"
424cargo_metadata = "0.19"
425cargo_toml = "0.21"
426chrono = { version = "0.4", features = ["serde"] }
427circular-buffer = "1.0"
428clap = { version = "4.4", features = ["derive"] }
429cocoa = "0.26"
430cocoa-foundation = "0.2.0"
431convert_case = "0.8.0"
432core-foundation = "0.10.0"
433core-foundation-sys = "0.8.6"
434core-video = { version = "0.4.3", features = ["metal"] }
435criterion = { version = "0.5", features = ["html_reports"] }
436ctor = "0.4.0"
437dap-types = { git = "https://github.com/zed-industries/dap-types", rev = "68516de327fa1be15214133a0a2e52a12982ce75" }
438dashmap = "6.0"
439derive_more = "0.99.17"
440dirs = "4.0"
441documented = "0.9.1"
442dotenv = "0.15.0"
443ec4rs = "1.1"
444emojis = "0.6.1"
445env_logger = "0.11"
446exec = "0.3.1"
447fancy-regex = "0.14.0"
448fork = "0.2.0"
449futures = "0.3"
450futures-batch = "0.6.1"
451futures-lite = "1.13"
452git2 = { version = "0.20.1", default-features = false }
453globset = "0.4"
454hashbrown = "0.15.3"
455handlebars = "4.3"
456heck = "0.5"
457heed = { version = "0.21.0", features = ["read-txn-no-tls"] }
458hex = "0.4.3"
459html5ever = "0.27.0"
460http = "1.1"
461hyper = "0.14"
462ignore = "0.4.22"
463image = "0.25.1"
464imara-diff = "0.1.8"
465indexmap = { version = "2.7.0", features = ["serde"] }
466indoc = "2"
467inventory = "0.3.19"
468itertools = "0.14.0"
469jj-lib = { git = "https://github.com/jj-vcs/jj", rev = "e18eb8e05efaa153fad5ef46576af145bba1807f" }
470json_dotpath = "1.1"
471jsonschema = "0.30.0"
472jsonwebtoken = "9.3"
473jupyter-protocol = { git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
474jupyter-websocket-client = { git = "https://github.com/ConradIrwin/runtimed" ,rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
475libc = "0.2"
476libsqlite3-sys = { version = "0.30.1", features = ["bundled"] }
477linkify = "0.10.0"
478log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
479lsp-types = { git = "https://github.com/zed-industries/lsp-types", rev = "c9c189f1c5dd53c624a419ce35bc77ad6a908d18" }
480markup5ever_rcdom = "0.3.0"
481metal = "0.29"
482mlua = { version = "0.10", features = ["lua54", "vendored", "async", "send"] }
483moka = { version = "0.12.10", features = ["sync"] }
484naga = { version = "25.0", features = ["wgsl-in"] }
485nanoid = "0.4"
486nbformat = { git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
487nix = "0.29"
488num-format = "0.4.4"
489objc = "0.2"
490open = "5.0.0"
491ordered-float = "2.1.1"
492palette = { version = "0.7.5", default-features = false, features = ["std"] }
493parking_lot = "0.12.1"
494partial-json-fixer = "0.5.3"
495pathdiff = "0.2"
496pet = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
497pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
498pet-core = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
499pet-fs = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
500pet-pixi = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
501pet-poetry = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
502pet-reporter = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
503portable-pty = "0.9.0"
504postage = { version = "0.5", features = ["futures-traits"] }
505pretty_assertions = { version = "1.3.0", features = ["unstable"] }
506proc-macro2 = "1.0.93"
507profiling = "1"
508prost = "0.9"
509prost-build = "0.9"
510prost-types = "0.9"
511pulldown-cmark = { version = "0.12.0", default-features = false }
512quote = "1.0.9"
513rand = "0.8.5"
514rayon = "1.8"
515ref-cast = "1.0.24"
516regex = "1.5"
517repair_json = "0.1.0"
518reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "951c770a32f1998d6e999cef3e59e0013e6c4415", default-features = false, features = [
519 "charset",
520 "http2",
521 "macos-system-configuration",
522 "rustls-tls-native-roots",
523 "socks",
524 "stream",
525] }
526rsa = "0.9.6"
527runtimelib = { git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734", default-features = false, features = [
528 "async-dispatcher-runtime",
529] }
530rust-embed = { version = "8.4", features = ["include-exclude"] }
531rustc-demangle = "0.1.23"
532rustc-hash = "2.1.0"
533rustls = { version = "0.23.26" }
534rustls-platform-verifier = "0.5.0"
535scap = { git = "https://github.com/zed-industries/scap", rev = "08f0a01417505cc0990b9931a37e5120db92e0d0", default-features = false }
536schemars = { version = "0.8", features = ["impl_json_schema", "indexmap2"] }
537semver = "1.0"
538serde = { version = "1.0", features = ["derive", "rc"] }
539serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
540serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
541serde_json_lenient = { version = "0.2", features = [
542 "preserve_order",
543 "raw_value",
544] }
545serde_repr = "0.1"
546sha2 = "0.10"
547shellexpand = "2.1.0"
548shlex = "1.3.0"
549signal-hook = "0.3.17"
550simplelog = "0.12.2"
551smallvec = { version = "1.6", features = ["union"] }
552smol = "2.0"
553sqlformat = "0.2"
554streaming-iterator = "0.1"
555strsim = "0.11"
556strum = { version = "0.27.0", features = ["derive"] }
557subtle = "2.5.0"
558syn = { version = "2.0.101", features = ["full", "extra-traits"] }
559sys-locale = "0.3.1"
560sysinfo = "0.31.0"
561take-until = "0.2.0"
562tempfile = "3.20.0"
563thiserror = "2.0.12"
564tiktoken-rs = "0.7.0"
565time = { version = "0.3", features = [
566 "macros",
567 "parsing",
568 "serde",
569 "serde-well-known",
570 "formatting",
571] }
572tiny_http = "0.8"
573tokio = { version = "1" }
574tokio-tungstenite = { version = "0.26", features = ["__rustls-tls"] }
575toml = "0.8"
576tower-http = "0.4.4"
577tree-sitter = { version = "0.25.6", features = ["wasm"] }
578tree-sitter-bash = "0.25.0"
579tree-sitter-c = "0.23"
580tree-sitter-cpp = "0.23"
581tree-sitter-css = "0.23"
582tree-sitter-diff = "0.1.0"
583tree-sitter-elixir = "0.3"
584tree-sitter-embedded-template = "0.23.0"
585tree-sitter-gitcommit = { git = "https://github.com/zed-industries/tree-sitter-git-commit", rev = "88309716a69dd13ab83443721ba6e0b491d37ee9" }
586tree-sitter-go = "0.23"
587tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c", package = "tree-sitter-gomod" }
588tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
589tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
590tree-sitter-html = "0.23"
591tree-sitter-jsdoc = "0.23"
592tree-sitter-json = "0.24"
593tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
594tree-sitter-python = "0.23"
595tree-sitter-regex = "0.24"
596tree-sitter-ruby = "0.23"
597tree-sitter-rust = "0.24"
598tree-sitter-typescript = "0.23"
599tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
600unicase = "2.6"
601unicode-script = "0.5.7"
602unicode-segmentation = "1.10"
603unindent = "0.2.0"
604url = "2.2"
605urlencoding = "2.1.2"
606uuid = { version = "1.1.2", features = ["v4", "v5", "v7", "serde"] }
607walkdir = "2.5"
608wasm-encoder = "0.221"
609wasmparser = "0.221"
610wasmtime = { version = "29", default-features = false, features = [
611 "async",
612 "demangle",
613 "runtime",
614 "cranelift",
615 "component-model",
616 "incremental-cache",
617 "parallel-compilation",
618] }
619wasmtime-wasi = "29"
620which = "6.0.0"
621workspace-hack = "0.1.0"
622zed_llm_client = "0.8.4"
623zstd = "0.11"
624
625[workspace.dependencies.async-stripe]
626git = "https://github.com/zed-industries/async-stripe"
627rev = "3672dd4efb7181aa597bf580bf5a2f5d23db6735"
628default-features = false
629features = [
630 "runtime-tokio-hyper-rustls",
631 "billing",
632 "checkout",
633 "events",
634 # The features below are only enabled to get the `events` feature to build.
635 "chrono",
636 "connect",
637]
638
639[workspace.dependencies.windows]
640version = "0.61"
641features = [
642 "Foundation_Numerics",
643 "Storage_Search",
644 "Storage_Streams",
645 "System_Threading",
646 "UI_ViewManagement",
647 "Wdk_System_SystemServices",
648 "Win32_Globalization",
649 "Win32_Graphics_Direct2D",
650 "Win32_Graphics_Direct2D_Common",
651 "Win32_Graphics_DirectWrite",
652 "Win32_Graphics_Dwm",
653 "Win32_Graphics_Dxgi_Common",
654 "Win32_Graphics_Gdi",
655 "Win32_Graphics_Imaging",
656 "Win32_Graphics_Imaging_D2D",
657 "Win32_Security",
658 "Win32_Security_Credentials",
659 "Win32_Storage_FileSystem",
660 "Win32_System_Com",
661 "Win32_System_Com_StructuredStorage",
662 "Win32_System_Console",
663 "Win32_System_DataExchange",
664 "Win32_System_IO",
665 "Win32_System_LibraryLoader",
666 "Win32_System_Memory",
667 "Win32_System_Ole",
668 "Win32_System_Pipes",
669 "Win32_System_SystemInformation",
670 "Win32_System_SystemServices",
671 "Win32_System_Threading",
672 "Win32_System_Variant",
673 "Win32_System_WinRT",
674 "Win32_UI_Controls",
675 "Win32_UI_HiDpi",
676 "Win32_UI_Input_Ime",
677 "Win32_UI_Input_KeyboardAndMouse",
678 "Win32_UI_Shell",
679 "Win32_UI_Shell_Common",
680 "Win32_UI_Shell_PropertiesSystem",
681 "Win32_UI_WindowsAndMessaging",
682]
683
684# TODO livekit https://github.com/RustAudio/cpal/pull/891
685[patch.crates-io]
686cpal = { git = "https://github.com/zed-industries/cpal", rev = "fd8bc2fd39f1f5fdee5a0690656caff9a26d9d50" }
687notify = { git = "https://github.com/zed-industries/notify.git", rev = "bbb9ea5ae52b253e095737847e367c30653a2e96" }
688notify-types = { git = "https://github.com/zed-industries/notify.git", rev = "bbb9ea5ae52b253e095737847e367c30653a2e96" }
689
690# Makes the workspace hack crate refer to the local one, but only when you're building locally
691workspace-hack = { path = "tooling/workspace-hack" }
692
693[profile.dev]
694split-debuginfo = "unpacked"
695codegen-units = 16
696
697[profile.dev.package]
698taffy = { opt-level = 3 }
699cranelift-codegen = { opt-level = 3 }
700resvg = { opt-level = 3 }
701rustybuzz = { opt-level = 3 }
702ttf-parser = { opt-level = 3 }
703wasmtime-cranelift = { opt-level = 3 }
704wasmtime = { opt-level = 3 }
705# Build single-source-file crates with cg=1 as it helps make `cargo build` of a whole workspace a bit faster
706activity_indicator = { codegen-units = 1 }
707assets = { codegen-units = 1 }
708breadcrumbs = { codegen-units = 1 }
709collections = { codegen-units = 1 }
710command_palette = { codegen-units = 1 }
711command_palette_hooks = { codegen-units = 1 }
712extension_cli = { codegen-units = 1 }
713feature_flags = { codegen-units = 1 }
714file_icons = { codegen-units = 1 }
715fsevent = { codegen-units = 1 }
716image_viewer = { codegen-units = 1 }
717inline_completion_button = { codegen-units = 1 }
718install_cli = { codegen-units = 1 }
719journal = { codegen-units = 1 }
720lmstudio = { codegen-units = 1 }
721menu = { codegen-units = 1 }
722notifications = { codegen-units = 1 }
723ollama = { codegen-units = 1 }
724outline = { codegen-units = 1 }
725paths = { codegen-units = 1 }
726prettier = { codegen-units = 1 }
727project_symbols = { codegen-units = 1 }
728refineable = { codegen-units = 1 }
729release_channel = { codegen-units = 1 }
730reqwest_client = { codegen-units = 1 }
731rich_text = { codegen-units = 1 }
732semantic_version = { codegen-units = 1 }
733session = { codegen-units = 1 }
734snippet = { codegen-units = 1 }
735snippets_ui = { codegen-units = 1 }
736sqlez_macros = { codegen-units = 1 }
737story = { codegen-units = 1 }
738supermaven_api = { codegen-units = 1 }
739telemetry_events = { codegen-units = 1 }
740theme_selector = { codegen-units = 1 }
741time_format = { codegen-units = 1 }
742ui_input = { codegen-units = 1 }
743zed_actions = { codegen-units = 1 }
744
745[profile.release]
746debug = "limited"
747lto = "thin"
748codegen-units = 1
749
750[profile.release.package]
751zed = { codegen-units = 16 }
752
753[profile.release-fast]
754inherits = "release"
755debug = "full"
756lto = false
757codegen-units = 16
758
759[workspace.lints.rust]
760unexpected_cfgs = { level = "allow" }
761
762[workspace.lints.clippy]
763dbg_macro = "deny"
764todo = "deny"
765
766# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
767# warning on this rule produces a lot of noise.
768single_range_in_vec_init = "allow"
769
770# These are all of the rules that currently have violations in the Zed
771# codebase.
772#
773# We'll want to drive this list down by either:
774# 1. fixing violations of the rule and begin enforcing it
775# 2. deciding we want to allow the rule permanently, at which point
776# we should codify that separately above.
777#
778# This list shouldn't be added to; it should only get shorter.
779# =============================================================================
780
781# There are a bunch of rules currently failing in the `style` group, so
782# allow all of those, for now.
783style = { level = "allow", priority = -1 }
784
785# Temporary list of style lints that we've fixed so far.
786module_inception = { level = "deny" }
787question_mark = { level = "deny" }
788redundant_closure = { level = "deny" }
789# Individual rules that have violations in the codebase:
790type_complexity = "allow"
791# We often return trait objects from `new` functions.
792new_ret_no_self = { level = "allow" }
793# We have a few `next` functions that differ in lifetimes
794# compared to Iterator::next. Yet, clippy complains about those.
795should_implement_trait = { level = "allow" }
796let_underscore_future = "allow"
797
798# in Rust it can be very tedious to reduce argument count without
799# running afoul of the borrow checker.
800too_many_arguments = "allow"
801
802# We often have large enum variants yet we rarely actually bother with splitting them up.
803large_enum_variant = "allow"
804
805[workspace.metadata.cargo-machete]
806ignored = [
807 "bindgen",
808 "cbindgen",
809 "prost_build",
810 "serde",
811 "component",
812 "documented",
813 "workspace-hack",
814]