Cargo.toml

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