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