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