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