Cargo.toml

  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/cloud_llm_client",
 33    "crates/collab",
 34    "crates/collab_ui",
 35    "crates/collections",
 36    "crates/command_palette",
 37    "crates/command_palette_hooks",
 38    "crates/component",
 39    "crates/context_server",
 40    "crates/copilot",
 41    "crates/credentials_provider",
 42    "crates/dap",
 43    "crates/dap_adapters",
 44    "crates/db",
 45    "crates/debug_adapter_extension",
 46    "crates/debugger_tools",
 47    "crates/debugger_ui",
 48    "crates/deepseek",
 49    "crates/diagnostics",
 50    "crates/docs_preprocessor",
 51    "crates/editor",
 52    "crates/explorer_command_injector",
 53    "crates/eval",
 54    "crates/extension",
 55    "crates/extension_api",
 56    "crates/extension_cli",
 57    "crates/extension_host",
 58    "crates/extensions_ui",
 59    "crates/feature_flags",
 60    "crates/feedback",
 61    "crates/file_finder",
 62    "crates/file_icons",
 63    "crates/fs",
 64    "crates/fsevent",
 65    "crates/fuzzy",
 66    "crates/git",
 67    "crates/git_hosting_providers",
 68    "crates/git_ui",
 69    "crates/go_to_line",
 70    "crates/google_ai",
 71    "crates/gpui",
 72    "crates/gpui_macros",
 73    "crates/gpui_tokio",
 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" }
254cloud_llm_client = { path = "crates/cloud_llm_client" }
255collab = { path = "crates/collab" }
256collab_ui = { path = "crates/collab_ui" }
257collections = { path = "crates/collections" }
258command_palette = { path = "crates/command_palette" }
259command_palette_hooks = { path = "crates/command_palette_hooks" }
260component = { path = "crates/component" }
261context_server = { path = "crates/context_server" }
262copilot = { path = "crates/copilot" }
263credentials_provider = { path = "crates/credentials_provider" }
264dap = { path = "crates/dap" }
265dap_adapters = { path = "crates/dap_adapters" }
266db = { path = "crates/db" }
267debug_adapter_extension = { path = "crates/debug_adapter_extension" }
268debugger_tools = { path = "crates/debugger_tools" }
269debugger_ui = { path = "crates/debugger_ui" }
270deepseek = { path = "crates/deepseek" }
271diagnostics = { path = "crates/diagnostics" }
272editor = { path = "crates/editor" }
273extension = { path = "crates/extension" }
274extension_host = { path = "crates/extension_host" }
275extensions_ui = { path = "crates/extensions_ui" }
276feature_flags = { path = "crates/feature_flags" }
277feedback = { path = "crates/feedback" }
278file_finder = { path = "crates/file_finder" }
279file_icons = { path = "crates/file_icons" }
280fs = { path = "crates/fs" }
281fsevent = { path = "crates/fsevent" }
282fuzzy = { path = "crates/fuzzy" }
283git = { path = "crates/git" }
284git_hosting_providers = { path = "crates/git_hosting_providers" }
285git_ui = { path = "crates/git_ui" }
286go_to_line = { path = "crates/go_to_line" }
287google_ai = { path = "crates/google_ai" }
288gpui = { path = "crates/gpui", default-features = false, features = [
289    "http_client",
290] }
291gpui_macros = { path = "crates/gpui_macros" }
292gpui_tokio = { path = "crates/gpui_tokio" }
293html_to_markdown = { path = "crates/html_to_markdown" }
294http_client = { path = "crates/http_client" }
295http_client_tls = { path = "crates/http_client_tls" }
296icons = { path = "crates/icons" }
297image_viewer = { path = "crates/image_viewer" }
298indexed_docs = { path = "crates/indexed_docs" }
299inline_completion = { path = "crates/inline_completion" }
300inline_completion_button = { path = "crates/inline_completion_button" }
301inspector_ui = { path = "crates/inspector_ui" }
302install_cli = { path = "crates/install_cli" }
303jj = { path = "crates/jj" }
304jj_ui = { path = "crates/jj_ui" }
305journal = { path = "crates/journal" }
306language = { path = "crates/language" }
307language_extension = { path = "crates/language_extension" }
308language_model = { path = "crates/language_model" }
309language_models = { path = "crates/language_models" }
310language_selector = { path = "crates/language_selector" }
311language_tools = { path = "crates/language_tools" }
312languages = { path = "crates/languages" }
313livekit_api = { path = "crates/livekit_api" }
314livekit_client = { path = "crates/livekit_client" }
315lmstudio = { path = "crates/lmstudio" }
316lsp = { path = "crates/lsp" }
317markdown = { path = "crates/markdown" }
318markdown_preview = { path = "crates/markdown_preview" }
319svg_preview = { path = "crates/svg_preview" }
320media = { path = "crates/media" }
321menu = { path = "crates/menu" }
322migrator = { path = "crates/migrator" }
323mistral = { path = "crates/mistral" }
324multi_buffer = { path = "crates/multi_buffer" }
325nc = { path = "crates/nc" }
326net = { path = "crates/net" }
327node_runtime = { path = "crates/node_runtime" }
328notifications = { path = "crates/notifications" }
329ollama = { path = "crates/ollama" }
330onboarding = { path = "crates/onboarding" }
331open_ai = { path = "crates/open_ai" }
332open_router = { path = "crates/open_router", features = ["schemars"] }
333outline = { path = "crates/outline" }
334outline_panel = { path = "crates/outline_panel" }
335panel = { path = "crates/panel" }
336paths = { path = "crates/paths" }
337picker = { path = "crates/picker" }
338plugin = { path = "crates/plugin" }
339plugin_macros = { path = "crates/plugin_macros" }
340prettier = { path = "crates/prettier" }
341project = { path = "crates/project" }
342project_panel = { path = "crates/project_panel" }
343project_symbols = { path = "crates/project_symbols" }
344prompt_store = { path = "crates/prompt_store" }
345proto = { path = "crates/proto" }
346recent_projects = { path = "crates/recent_projects" }
347refineable = { path = "crates/refineable" }
348release_channel = { path = "crates/release_channel" }
349remote = { path = "crates/remote" }
350remote_server = { path = "crates/remote_server" }
351repl = { path = "crates/repl" }
352reqwest_client = { path = "crates/reqwest_client" }
353rich_text = { path = "crates/rich_text" }
354rope = { path = "crates/rope" }
355rpc = { path = "crates/rpc" }
356rules_library = { path = "crates/rules_library" }
357search = { path = "crates/search" }
358semantic_index = { path = "crates/semantic_index" }
359semantic_version = { path = "crates/semantic_version" }
360session = { path = "crates/session" }
361settings = { path = "crates/settings" }
362settings_ui = { path = "crates/settings_ui" }
363snippet = { path = "crates/snippet" }
364snippet_provider = { path = "crates/snippet_provider" }
365snippets_ui = { path = "crates/snippets_ui" }
366sqlez = { path = "crates/sqlez" }
367sqlez_macros = { path = "crates/sqlez_macros" }
368story = { path = "crates/story" }
369storybook = { path = "crates/storybook" }
370streaming_diff = { path = "crates/streaming_diff" }
371sum_tree = { path = "crates/sum_tree" }
372supermaven = { path = "crates/supermaven" }
373supermaven_api = { path = "crates/supermaven_api" }
374tab_switcher = { path = "crates/tab_switcher" }
375task = { path = "crates/task" }
376tasks_ui = { path = "crates/tasks_ui" }
377telemetry = { path = "crates/telemetry" }
378telemetry_events = { path = "crates/telemetry_events" }
379terminal = { path = "crates/terminal" }
380terminal_view = { path = "crates/terminal_view" }
381text = { path = "crates/text" }
382theme = { path = "crates/theme" }
383theme_extension = { path = "crates/theme_extension" }
384theme_importer = { path = "crates/theme_importer" }
385theme_selector = { path = "crates/theme_selector" }
386time_format = { path = "crates/time_format" }
387title_bar = { path = "crates/title_bar" }
388toolchain_selector = { path = "crates/toolchain_selector" }
389ui = { path = "crates/ui" }
390ui_input = { path = "crates/ui_input" }
391ui_macros = { path = "crates/ui_macros" }
392ui_prompt = { path = "crates/ui_prompt" }
393util = { path = "crates/util" }
394util_macros = { path = "crates/util_macros" }
395vercel = { path = "crates/vercel" }
396vim = { path = "crates/vim" }
397vim_mode_setting = { path = "crates/vim_mode_setting" }
398
399watch = { path = "crates/watch" }
400web_search = { path = "crates/web_search" }
401web_search_providers = { path = "crates/web_search_providers" }
402welcome = { path = "crates/welcome" }
403workspace = { path = "crates/workspace" }
404worktree = { path = "crates/worktree" }
405x_ai = { path = "crates/x_ai" }
406zed = { path = "crates/zed" }
407zed_actions = { path = "crates/zed_actions" }
408zeta = { path = "crates/zeta" }
409zlog = { path = "crates/zlog" }
410zlog_settings = { path = "crates/zlog_settings" }
411
412#
413# External crates
414#
415
416agentic-coding-protocol = "0.0.10"
417agent-client-protocol = "0.0.11"
418aho-corasick = "1.1"
419alacritty_terminal = { git = "https://github.com/zed-industries/alacritty.git", branch = "add-hush-login-flag" }
420any_vec = "0.14"
421anyhow = "1.0.86"
422arrayvec = { version = "0.7.4", features = ["serde"] }
423ashpd = { version = "0.11", default-features = false, features = ["async-std"] }
424async-compat = "0.2.1"
425async-compression = { version = "0.4", features = ["gzip", "futures-io"] }
426async-dispatcher = "0.1"
427async-fs = "2.1"
428async-pipe = { git = "https://github.com/zed-industries/async-pipe-rs", rev = "82d00a04211cf4e1236029aa03e6b6ce2a74c553" }
429async-recursion = "1.0.0"
430async-tar = "0.5.0"
431async-trait = "0.1"
432async-tungstenite = "0.29.1"
433async_zip = { version = "0.0.17", features = ["deflate", "deflate64"] }
434aws-config = { version = "1.6.1", features = ["behavior-version-latest"] }
435aws-credential-types = { version = "1.2.2", features = [
436    "hardcoded-credentials",
437] }
438aws-sdk-bedrockruntime = { version = "1.80.0", features = [
439    "behavior-version-latest",
440] }
441aws-smithy-runtime-api = { version = "1.7.4", features = ["http-1x", "client"] }
442aws-smithy-types = { version = "1.3.0", features = ["http-body-1-x"] }
443base64 = "0.22"
444bitflags = "2.6.0"
445blade-graphics = { git = "https://github.com/kvark/blade", rev = "e0ec4e720957edd51b945b64dd85605ea54bcfe5" }
446blade-macros = { git = "https://github.com/kvark/blade", rev = "e0ec4e720957edd51b945b64dd85605ea54bcfe5" }
447blade-util = { git = "https://github.com/kvark/blade", rev = "e0ec4e720957edd51b945b64dd85605ea54bcfe5" }
448blake3 = "1.5.3"
449bytes = "1.0"
450cargo_metadata = "0.19"
451cargo_toml = "0.21"
452chrono = { version = "0.4", features = ["serde"] }
453circular-buffer = "1.0"
454clap = { version = "4.4", features = ["derive"] }
455cocoa = "0.26"
456cocoa-foundation = "0.2.0"
457convert_case = "0.8.0"
458core-foundation = "0.10.0"
459core-foundation-sys = "0.8.6"
460core-video = { version = "0.4.3", features = ["metal"] }
461cpal = "0.16"
462criterion = { version = "0.5", features = ["html_reports"] }
463ctor = "0.4.0"
464dap-types = { git = "https://github.com/zed-industries/dap-types", rev = "1b461b310481d01e02b2603c16d7144b926339f8" }
465dashmap = "6.0"
466derive_more = "0.99.17"
467dirs = "4.0"
468documented = "0.9.1"
469dotenvy = "0.15.0"
470ec4rs = "1.1"
471emojis = "0.6.1"
472env_logger = "0.11"
473exec = "0.3.1"
474fancy-regex = "0.14.0"
475fork = "0.2.0"
476futures = "0.3"
477futures-batch = "0.6.1"
478futures-lite = "1.13"
479git2 = { version = "0.20.1", default-features = false }
480globset = "0.4"
481handlebars = "4.3"
482heck = "0.5"
483heed = { version = "0.21.0", features = ["read-txn-no-tls"] }
484hex = "0.4.3"
485html5ever = "0.27.0"
486http = "1.1"
487http-body = "1.0"
488hyper = "0.14"
489ignore = "0.4.22"
490image = "0.25.1"
491imara-diff = "0.1.8"
492indexmap = { version = "2.7.0", features = ["serde"] }
493indoc = "2"
494inventory = "0.3.19"
495itertools = "0.14.0"
496jj-lib = { git = "https://github.com/jj-vcs/jj", rev = "e18eb8e05efaa153fad5ef46576af145bba1807f" }
497json_dotpath = "1.1"
498jsonschema = "0.30.0"
499jsonwebtoken = "9.3"
500jupyter-protocol = { git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
501jupyter-websocket-client = {  git = "https://github.com/ConradIrwin/runtimed" ,rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
502libc = "0.2"
503libsqlite3-sys = { version = "0.30.1", features = ["bundled"] }
504linkify = "0.10.0"
505log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
506lsp-types = { git = "https://github.com/zed-industries/lsp-types", rev = "39f629bdd03d59abd786ed9fc27e8bca02c0c0ec" }
507markup5ever_rcdom = "0.3.0"
508metal = "0.29"
509moka = { version = "0.12.10", features = ["sync"] }
510naga = { version = "25.0", features = ["wgsl-in"] }
511nanoid = "0.4"
512nbformat = {  git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
513nix = "0.29"
514num-format = "0.4.4"
515objc = "0.2"
516open = "5.0.0"
517ordered-float = "2.1.1"
518palette = { version = "0.7.5", default-features = false, features = ["std"] }
519parking_lot = "0.12.1"
520partial-json-fixer = "0.5.3"
521parse_int = "0.9"
522pathdiff = "0.2"
523pet = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
524pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
525pet-core = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
526pet-fs = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
527pet-pixi = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
528pet-poetry = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
529pet-reporter = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
530portable-pty = "0.9.0"
531postage = { version = "0.5", features = ["futures-traits"] }
532pretty_assertions = { version = "1.3.0", features = ["unstable"] }
533proc-macro2 = "1.0.93"
534profiling = "1"
535prost = "0.9"
536prost-build = "0.9"
537prost-types = "0.9"
538pulldown-cmark = { version = "0.12.0", default-features = false }
539quote = "1.0.9"
540rand = "0.8.5"
541rayon = "1.8"
542ref-cast = "1.0.24"
543regex = "1.5"
544reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "951c770a32f1998d6e999cef3e59e0013e6c4415", default-features = false, features = [
545    "charset",
546    "http2",
547    "macos-system-configuration",
548    "rustls-tls-native-roots",
549    "socks",
550    "stream",
551] }
552rsa = "0.9.6"
553runtimelib = {  git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734", default-features = false, features = [
554    "async-dispatcher-runtime",
555] }
556rust-embed = { version = "8.4", features = ["include-exclude"] }
557rustc-demangle = "0.1.23"
558rustc-hash = "2.1.0"
559rustls = { version = "0.23.26" }
560rustls-platform-verifier = "0.5.0"
561scap = { git = "https://github.com/zed-industries/scap", rev = "808aa5c45b41e8f44729d02e38fd00a2fe2722e7", default-features = false }
562schemars = { version = "1.0", features = ["indexmap2"] }
563semver = "1.0"
564serde = { version = "1.0", features = ["derive", "rc"] }
565serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
566serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
567serde_json_lenient = { version = "0.2", features = [
568    "preserve_order",
569    "raw_value",
570] }
571serde_repr = "0.1"
572sha2 = "0.10"
573shellexpand = "2.1.0"
574shlex = "1.3.0"
575simplelog = "0.12.2"
576smallvec = { version = "1.6", features = ["union"] }
577smol = "2.0"
578sqlformat = "0.2"
579streaming-iterator = "0.1"
580strsim = "0.11"
581strum = { version = "0.27.0", features = ["derive"] }
582subtle = "2.5.0"
583syn = { version = "2.0.101", features = ["full", "extra-traits"] }
584sys-locale = "0.3.1"
585sysinfo = "0.31.0"
586take-until = "0.2.0"
587tempfile = "3.20.0"
588thiserror = "2.0.12"
589tiktoken-rs = "0.7.0"
590time = { version = "0.3", features = [
591    "macros",
592    "parsing",
593    "serde",
594    "serde-well-known",
595    "formatting",
596] }
597tiny_http = "0.8"
598tokio = { version = "1" }
599tokio-tungstenite = { version = "0.26", features = ["__rustls-tls"] }
600toml = "0.8"
601tower-http = "0.4.4"
602tree-sitter = { version = "0.25.6", features = ["wasm"] }
603tree-sitter-bash = "0.25.0"
604tree-sitter-c = "0.23"
605tree-sitter-cpp = "0.23"
606tree-sitter-css = "0.23"
607tree-sitter-diff = "0.1.0"
608tree-sitter-elixir = "0.3"
609tree-sitter-embedded-template = "0.23.0"
610tree-sitter-gitcommit = { git = "https://github.com/zed-industries/tree-sitter-git-commit", rev = "88309716a69dd13ab83443721ba6e0b491d37ee9" }
611tree-sitter-go = "0.23"
612tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c", package = "tree-sitter-gomod" }
613tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
614tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
615tree-sitter-html = "0.23"
616tree-sitter-jsdoc = "0.23"
617tree-sitter-json = "0.24"
618tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
619tree-sitter-python = { git = "https://github.com/zed-industries/tree-sitter-python", rev = "218fcbf3fda3d029225f3dec005cb497d111b35e" }
620tree-sitter-regex = "0.24"
621tree-sitter-ruby = "0.23"
622tree-sitter-rust = "0.24"
623tree-sitter-typescript = "0.23"
624tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
625unicase = "2.6"
626unicode-script = "0.5.7"
627unicode-segmentation = "1.10"
628unindent = "0.2.0"
629url = "2.2"
630urlencoding = "2.1.2"
631uuid = { version = "1.1.2", features = ["v4", "v5", "v7", "serde"] }
632walkdir = "2.5"
633wasm-encoder = "0.221"
634wasmparser = "0.221"
635wasmtime = { version = "29", default-features = false, features = [
636    "async",
637    "demangle",
638    "runtime",
639    "cranelift",
640    "component-model",
641    "incremental-cache",
642    "parallel-compilation",
643] }
644wasmtime-wasi = "29"
645which = "6.0.0"
646windows-core = "0.61"
647wit-component = "0.221"
648workspace-hack = "0.1.0"
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]