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