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