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