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