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