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