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