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