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"] }
457circular-buffer = "1.0"
458clap = { version = "4.4", features = ["derive"] }
459cocoa = "0.26"
460cocoa-foundation = "0.2.0"
461convert_case = "0.8.0"
462core-foundation = "0.10.0"
463core-foundation-sys = "0.8.6"
464core-video = { version = "0.4.3", features = ["metal"] }
465cpal = "0.16"
466criterion = { version = "0.5", features = ["html_reports"] }
467ctor = "0.4.0"
468dap-types = { git = "https://github.com/zed-industries/dap-types", rev = "1b461b310481d01e02b2603c16d7144b926339f8" }
469dashmap = "6.0"
470derive_more = "0.99.17"
471dirs = "4.0"
472documented = "0.9.1"
473dotenvy = "0.15.0"
474ec4rs = "1.1"
475emojis = "0.6.1"
476env_logger = "0.11"
477exec = "0.3.1"
478fancy-regex = "0.14.0"
479fork = "0.2.0"
480futures = "0.3"
481futures-batch = "0.6.1"
482futures-lite = "1.13"
483git2 = { version = "0.20.1", default-features = false }
484globset = "0.4"
485handlebars = "4.3"
486heck = "0.5"
487heed = { version = "0.21.0", features = ["read-txn-no-tls"] }
488hex = "0.4.3"
489html5ever = "0.27.0"
490http = "1.1"
491http-body = "1.0"
492hyper = "0.14"
493ignore = "0.4.22"
494image = "0.25.1"
495imara-diff = "0.1.8"
496indexmap = { version = "2.7.0", features = ["serde"] }
497indoc = "2"
498inventory = "0.3.19"
499itertools = "0.14.0"
500jj-lib = { git = "https://github.com/jj-vcs/jj", rev = "e18eb8e05efaa153fad5ef46576af145bba1807f" }
501json_dotpath = "1.1"
502jsonschema = "0.30.0"
503jsonwebtoken = "9.3"
504jupyter-protocol = { git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
505jupyter-websocket-client = { git = "https://github.com/ConradIrwin/runtimed" ,rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
506libc = "0.2"
507libsqlite3-sys = { version = "0.30.1", features = ["bundled"] }
508linkify = "0.10.0"
509log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
510lsp-types = { git = "https://github.com/zed-industries/lsp-types", rev = "39f629bdd03d59abd786ed9fc27e8bca02c0c0ec" }
511markup5ever_rcdom = "0.3.0"
512metal = "0.29"
513moka = { version = "0.12.10", features = ["sync"] }
514naga = { version = "25.0", features = ["wgsl-in"] }
515nanoid = "0.4"
516nbformat = { git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
517nix = "0.29"
518num-format = "0.4.4"
519objc = "0.2"
520open = "5.0.0"
521ordered-float = "2.1.1"
522palette = { version = "0.7.5", default-features = false, features = ["std"] }
523parking_lot = "0.12.1"
524partial-json-fixer = "0.5.3"
525parse_int = "0.9"
526pathdiff = "0.2"
527pet = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
528pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
529pet-core = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
530pet-fs = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
531pet-pixi = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
532pet-poetry = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
533pet-reporter = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
534portable-pty = "0.9.0"
535postage = { version = "0.5", features = ["futures-traits"] }
536pretty_assertions = { version = "1.3.0", features = ["unstable"] }
537proc-macro2 = "1.0.93"
538profiling = "1"
539prost = "0.9"
540prost-build = "0.9"
541prost-types = "0.9"
542pulldown-cmark = { version = "0.12.0", default-features = false }
543quote = "1.0.9"
544rand = "0.8.5"
545rayon = "1.8"
546ref-cast = "1.0.24"
547regex = "1.5"
548reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "951c770a32f1998d6e999cef3e59e0013e6c4415", default-features = false, features = [
549 "charset",
550 "http2",
551 "macos-system-configuration",
552 "rustls-tls-native-roots",
553 "socks",
554 "stream",
555] }
556rsa = "0.9.6"
557runtimelib = { git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734", default-features = false, features = [
558 "async-dispatcher-runtime",
559] }
560rust-embed = { version = "8.4", features = ["include-exclude"] }
561rustc-demangle = "0.1.23"
562rustc-hash = "2.1.0"
563rustls = { version = "0.23.26" }
564rustls-platform-verifier = "0.5.0"
565scap = { git = "https://github.com/zed-industries/scap", rev = "808aa5c45b41e8f44729d02e38fd00a2fe2722e7", default-features = false }
566schemars = { version = "1.0", features = ["indexmap2"] }
567semver = "1.0"
568serde = { version = "1.0", features = ["derive", "rc"] }
569serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
570serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
571serde_json_lenient = { version = "0.2", features = [
572 "preserve_order",
573 "raw_value",
574] }
575serde_repr = "0.1"
576sha2 = "0.10"
577shellexpand = "2.1.0"
578shlex = "1.3.0"
579simplelog = "0.12.2"
580smallvec = { version = "1.6", features = ["union"] }
581smol = "2.0"
582sqlformat = "0.2"
583streaming-iterator = "0.1"
584strsim = "0.11"
585strum = { version = "0.27.0", features = ["derive"] }
586subtle = "2.5.0"
587syn = { version = "2.0.101", features = ["full", "extra-traits"] }
588sys-locale = "0.3.1"
589sysinfo = "0.31.0"
590take-until = "0.2.0"
591tempfile = "3.20.0"
592thiserror = "2.0.12"
593tiktoken-rs = "0.7.0"
594time = { version = "0.3", features = [
595 "macros",
596 "parsing",
597 "serde",
598 "serde-well-known",
599 "formatting",
600] }
601tiny_http = "0.8"
602tokio = { version = "1" }
603tokio-tungstenite = { version = "0.26", features = ["__rustls-tls"] }
604toml = "0.8"
605tower-http = "0.4.4"
606tree-sitter = { version = "0.25.6", features = ["wasm"] }
607tree-sitter-bash = "0.25.0"
608tree-sitter-c = "0.23"
609tree-sitter-cpp = "0.23"
610tree-sitter-css = "0.23"
611tree-sitter-diff = "0.1.0"
612tree-sitter-elixir = "0.3"
613tree-sitter-embedded-template = "0.23.0"
614tree-sitter-gitcommit = { git = "https://github.com/zed-industries/tree-sitter-git-commit", rev = "88309716a69dd13ab83443721ba6e0b491d37ee9" }
615tree-sitter-go = "0.23"
616tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c", package = "tree-sitter-gomod" }
617tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
618tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
619tree-sitter-html = "0.23"
620tree-sitter-jsdoc = "0.23"
621tree-sitter-json = "0.24"
622tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
623tree-sitter-python = { git = "https://github.com/zed-industries/tree-sitter-python", rev = "218fcbf3fda3d029225f3dec005cb497d111b35e" }
624tree-sitter-regex = "0.24"
625tree-sitter-ruby = "0.23"
626tree-sitter-rust = "0.24"
627tree-sitter-typescript = "0.23"
628tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
629unicase = "2.6"
630unicode-script = "0.5.7"
631unicode-segmentation = "1.10"
632unindent = "0.2.0"
633url = "2.2"
634urlencoding = "2.1.2"
635uuid = { version = "1.1.2", features = ["v4", "v5", "v7", "serde"] }
636walkdir = "2.5"
637wasm-encoder = "0.221"
638wasmparser = "0.221"
639wasmtime = { version = "29", default-features = false, features = [
640 "async",
641 "demangle",
642 "runtime",
643 "cranelift",
644 "component-model",
645 "incremental-cache",
646 "parallel-compilation",
647] }
648wasmtime-wasi = "29"
649which = "6.0.0"
650windows-core = "0.61"
651wit-component = "0.221"
652workspace-hack = "0.1.0"
653zstd = "0.11"
654
655[workspace.dependencies.async-stripe]
656git = "https://github.com/zed-industries/async-stripe"
657rev = "3672dd4efb7181aa597bf580bf5a2f5d23db6735"
658default-features = false
659features = [
660 "runtime-tokio-hyper-rustls",
661 "billing",
662 "checkout",
663 "events",
664 # The features below are only enabled to get the `events` feature to build.
665 "chrono",
666 "connect",
667]
668
669[workspace.dependencies.windows]
670version = "0.61"
671features = [
672 "Foundation_Numerics",
673 "Storage_Search",
674 "Storage_Streams",
675 "System_Threading",
676 "UI_ViewManagement",
677 "Wdk_System_SystemServices",
678 "Win32_Globalization",
679 "Win32_Graphics_Direct2D",
680 "Win32_Graphics_Direct2D_Common",
681 "Win32_Graphics_DirectWrite",
682 "Win32_Graphics_Dwm",
683 "Win32_Graphics_Dxgi_Common",
684 "Win32_Graphics_Gdi",
685 "Win32_Graphics_Imaging",
686 "Win32_Graphics_Imaging_D2D",
687 "Win32_Networking_WinSock",
688 "Win32_Security",
689 "Win32_Security_Credentials",
690 "Win32_Storage_FileSystem",
691 "Win32_System_Com",
692 "Win32_System_Com_StructuredStorage",
693 "Win32_System_Console",
694 "Win32_System_DataExchange",
695 "Win32_System_IO",
696 "Win32_System_LibraryLoader",
697 "Win32_System_Memory",
698 "Win32_System_Ole",
699 "Win32_System_Pipes",
700 "Win32_System_SystemInformation",
701 "Win32_System_SystemServices",
702 "Win32_System_Threading",
703 "Win32_System_Variant",
704 "Win32_System_WinRT",
705 "Win32_UI_Controls",
706 "Win32_UI_HiDpi",
707 "Win32_UI_Input_Ime",
708 "Win32_UI_Input_KeyboardAndMouse",
709 "Win32_UI_Shell",
710 "Win32_UI_Shell_Common",
711 "Win32_UI_Shell_PropertiesSystem",
712 "Win32_UI_WindowsAndMessaging",
713]
714
715[patch.crates-io]
716notify = { git = "https://github.com/zed-industries/notify.git", rev = "bbb9ea5ae52b253e095737847e367c30653a2e96" }
717notify-types = { git = "https://github.com/zed-industries/notify.git", rev = "bbb9ea5ae52b253e095737847e367c30653a2e96" }
718windows-capture = { git = "https://github.com/zed-industries/windows-capture.git", rev = "f0d6c1b6691db75461b732f6d5ff56eed002eeb9" }
719
720# Makes the workspace hack crate refer to the local one, but only when you're building locally
721workspace-hack = { path = "tooling/workspace-hack" }
722
723[profile.dev]
724split-debuginfo = "unpacked"
725codegen-units = 16
726
727# mirror configuration for crates compiled for the build platform
728# (without this cargo will compile ~400 crates twice)
729[profile.dev.build-override]
730codegen-units = 16
731
732[profile.dev.package]
733taffy = { opt-level = 3 }
734cranelift-codegen = { opt-level = 3 }
735cranelift-codegen-meta = { opt-level = 3 }
736cranelift-codegen-shared = { opt-level = 3 }
737resvg = { opt-level = 3 }
738rustybuzz = { opt-level = 3 }
739ttf-parser = { opt-level = 3 }
740wasmtime-cranelift = { opt-level = 3 }
741wasmtime = { opt-level = 3 }
742# Build single-source-file crates with cg=1 as it helps make `cargo build` of a whole workspace a bit faster
743activity_indicator = { codegen-units = 1 }
744assets = { codegen-units = 1 }
745breadcrumbs = { codegen-units = 1 }
746collections = { codegen-units = 1 }
747command_palette = { codegen-units = 1 }
748command_palette_hooks = { codegen-units = 1 }
749extension_cli = { codegen-units = 1 }
750feature_flags = { codegen-units = 1 }
751file_icons = { codegen-units = 1 }
752fsevent = { codegen-units = 1 }
753image_viewer = { codegen-units = 1 }
754inline_completion_button = { codegen-units = 1 }
755install_cli = { codegen-units = 1 }
756journal = { codegen-units = 1 }
757lmstudio = { codegen-units = 1 }
758menu = { codegen-units = 1 }
759notifications = { codegen-units = 1 }
760ollama = { codegen-units = 1 }
761outline = { codegen-units = 1 }
762paths = { codegen-units = 1 }
763prettier = { codegen-units = 1 }
764project_symbols = { codegen-units = 1 }
765refineable = { codegen-units = 1 }
766release_channel = { codegen-units = 1 }
767reqwest_client = { codegen-units = 1 }
768rich_text = { codegen-units = 1 }
769semantic_version = { codegen-units = 1 }
770session = { codegen-units = 1 }
771snippet = { codegen-units = 1 }
772snippets_ui = { codegen-units = 1 }
773sqlez_macros = { codegen-units = 1 }
774story = { codegen-units = 1 }
775supermaven_api = { codegen-units = 1 }
776telemetry_events = { codegen-units = 1 }
777theme_selector = { codegen-units = 1 }
778time_format = { codegen-units = 1 }
779ui_input = { codegen-units = 1 }
780zed_actions = { codegen-units = 1 }
781
782[profile.release]
783debug = "limited"
784lto = "thin"
785codegen-units = 1
786
787[profile.release.package]
788zed = { codegen-units = 16 }
789
790[profile.release-fast]
791inherits = "release"
792debug = "full"
793lto = false
794codegen-units = 16
795
796[workspace.lints.rust]
797unexpected_cfgs = { level = "allow" }
798
799[workspace.lints.clippy]
800dbg_macro = "deny"
801todo = "deny"
802
803# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
804# warning on this rule produces a lot of noise.
805single_range_in_vec_init = "allow"
806
807# These are all of the rules that currently have violations in the Zed
808# codebase.
809#
810# We'll want to drive this list down by either:
811# 1. fixing violations of the rule and begin enforcing it
812# 2. deciding we want to allow the rule permanently, at which point
813# we should codify that separately above.
814#
815# This list shouldn't be added to; it should only get shorter.
816# =============================================================================
817
818# There are a bunch of rules currently failing in the `style` group, so
819# allow all of those, for now.
820style = { level = "allow", priority = -1 }
821
822# Temporary list of style lints that we've fixed so far.
823module_inception = { level = "deny" }
824question_mark = { level = "deny" }
825redundant_closure = { level = "deny" }
826# Individual rules that have violations in the codebase:
827type_complexity = "allow"
828# We often return trait objects from `new` functions.
829new_ret_no_self = { level = "allow" }
830# We have a few `next` functions that differ in lifetimes
831# compared to Iterator::next. Yet, clippy complains about those.
832should_implement_trait = { level = "allow" }
833let_underscore_future = "allow"
834
835# in Rust it can be very tedious to reduce argument count without
836# running afoul of the borrow checker.
837too_many_arguments = "allow"
838
839# We often have large enum variants yet we rarely actually bother with splitting them up.
840large_enum_variant = "allow"
841
842[workspace.metadata.cargo-machete]
843ignored = [
844 "bindgen",
845 "cbindgen",
846 "prost_build",
847 "serde",
848 "component",
849 "documented",
850 "workspace-hack",
851]