Cargo.toml

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