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