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