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