1[workspace]
2resolver = "2"
3members = [
4 "crates/activity_indicator",
5 "crates/anthropic",
6 "crates/askpass",
7 "crates/assets",
8 "crates/assistant",
9 "crates/assistant2",
10 "crates/assistant_context_editor",
11 "crates/assistant_eval",
12 "crates/assistant_settings",
13 "crates/assistant_slash_command",
14 "crates/assistant_slash_commands",
15 "crates/assistant_tool",
16 "crates/assistant_tools",
17 "crates/audio",
18 "crates/auto_update",
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/evals",
50 "crates/extension",
51 "crates/extension_api",
52 "crates/extension_cli",
53 "crates/extension_host",
54 "crates/extensions_ui",
55 "crates/feature_flags",
56 "crates/feedback",
57 "crates/file_finder",
58 "crates/file_icons",
59 "crates/fs",
60 "crates/fsevent",
61 "crates/fuzzy",
62 "crates/git",
63 "crates/git_hosting_providers",
64 "crates/git_ui",
65 "crates/go_to_line",
66 "crates/google_ai",
67 "crates/gpui",
68 "crates/gpui_macros",
69 "crates/gpui_tokio",
70 "crates/html_to_markdown",
71 "crates/http_client",
72 "crates/http_client_tls",
73 "crates/icons",
74 "crates/image_viewer",
75 "crates/indexed_docs",
76 "crates/inline_completion",
77 "crates/inline_completion_button",
78 "crates/install_cli",
79 "crates/journal",
80 "crates/language",
81 "crates/language_extension",
82 "crates/language_model",
83 "crates/language_model_selector",
84 "crates/language_models",
85 "crates/language_selector",
86 "crates/language_tools",
87 "crates/languages",
88 "crates/livekit_api",
89 "crates/livekit_client",
90 "crates/livekit_client_macos",
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/xtask",
197]
198default-members = ["crates/zed"]
199
200[workspace.package]
201publish = false
202edition = "2021"
203
204[workspace.dependencies]
205
206#
207# Workspace member crates
208#
209
210activity_indicator = { path = "crates/activity_indicator" }
211ai = { path = "crates/ai" }
212anthropic = { path = "crates/anthropic" }
213askpass = { path = "crates/askpass" }
214assets = { path = "crates/assets" }
215assistant = { path = "crates/assistant" }
216assistant2 = { path = "crates/assistant2" }
217assistant_context_editor = { path = "crates/assistant_context_editor" }
218assistant_eval = { path = "crates/assistant_eval" }
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_ui = { path = "crates/auto_update_ui" }
227aws_http_client = { path = "crates/aws_http_client" }
228bedrock = { path = "crates/bedrock" }
229breadcrumbs = { path = "crates/breadcrumbs" }
230call = { path = "crates/call" }
231channel = { path = "crates/channel" }
232cli = { path = "crates/cli" }
233client = { path = "crates/client" }
234clock = { path = "crates/clock" }
235collab = { path = "crates/collab" }
236collab_ui = { path = "crates/collab_ui" }
237collections = { path = "crates/collections" }
238command_palette = { path = "crates/command_palette" }
239command_palette_hooks = { path = "crates/command_palette_hooks" }
240component = { path = "crates/component" }
241component_preview = { path = "crates/component_preview" }
242context_server = { path = "crates/context_server" }
243context_server_settings = { path = "crates/context_server_settings" }
244copilot = { path = "crates/copilot" }
245credentials_provider = { path = "crates/credentials_provider" }
246dap = { path = "crates/dap" }
247dap_adapters = { path = "crates/dap_adapters" }
248db = { path = "crates/db" }
249debugger_ui = { path = "crates/debugger_ui" }
250debugger_tools = { path = "crates/debugger_tools" }
251deepseek = { path = "crates/deepseek" }
252diagnostics = { path = "crates/diagnostics" }
253buffer_diff = { path = "crates/buffer_diff" }
254editor = { path = "crates/editor" }
255extension = { path = "crates/extension" }
256extension_host = { path = "crates/extension_host" }
257extensions_ui = { path = "crates/extensions_ui" }
258feature_flags = { path = "crates/feature_flags" }
259feedback = { path = "crates/feedback" }
260file_finder = { path = "crates/file_finder" }
261file_icons = { path = "crates/file_icons" }
262fs = { path = "crates/fs" }
263fsevent = { path = "crates/fsevent" }
264fuzzy = { path = "crates/fuzzy" }
265git = { path = "crates/git" }
266git_hosting_providers = { path = "crates/git_hosting_providers" }
267git_ui = { path = "crates/git_ui" }
268go_to_line = { path = "crates/go_to_line" }
269google_ai = { path = "crates/google_ai" }
270gpui = { path = "crates/gpui", default-features = false, features = [
271 "http_client",
272] }
273gpui_macros = { path = "crates/gpui_macros" }
274gpui_tokio = { path = "crates/gpui_tokio" }
275html_to_markdown = { path = "crates/html_to_markdown" }
276http_client = { path = "crates/http_client" }
277http_client_tls = { path = "crates/http_client_tls" }
278icons = { path = "crates/icons" }
279image_viewer = { path = "crates/image_viewer" }
280indexed_docs = { path = "crates/indexed_docs" }
281inline_completion = { path = "crates/inline_completion" }
282inline_completion_button = { path = "crates/inline_completion_button" }
283install_cli = { path = "crates/install_cli" }
284journal = { path = "crates/journal" }
285language = { path = "crates/language" }
286language_extension = { path = "crates/language_extension" }
287language_model = { path = "crates/language_model" }
288language_model_selector = { path = "crates/language_model_selector" }
289language_models = { path = "crates/language_models" }
290language_selector = { path = "crates/language_selector" }
291language_tools = { path = "crates/language_tools" }
292languages = { path = "crates/languages" }
293livekit_api = { path = "crates/livekit_api" }
294livekit_client = { path = "crates/livekit_client" }
295livekit_client_macos = { path = "crates/livekit_client_macos" }
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.28"
401async-watch = "0.3.1"
402async_zip = { version = "0.0.17", features = ["deflate", "deflate64"] }
403aws-config = { version = "1.5.16", features = ["behavior-version-latest"] }
404aws-credential-types = { version = "1.2.1", features = ["hardcoded-credentials"] }
405aws-sdk-bedrockruntime = { version = "1.73.0", features = ["behavior-version-latest"] }
406aws-smithy-runtime-api = { version = "1.7.3", features = ["http-1x", "client"] }
407aws-smithy-types = { version = "1.2.13", features = ["http-body-1-x"] }
408base64 = "0.22"
409bitflags = "2.6.0"
410blade-graphics = { git = "https://github.com/kvark/blade", rev = "b16f5c7bd873c7126f48c82c39e7ae64602ae74f" }
411blade-macros = { git = "https://github.com/kvark/blade", rev = "b16f5c7bd873c7126f48c82c39e7ae64602ae74f" }
412blade-util = { git = "https://github.com/kvark/blade", rev = "b16f5c7bd873c7126f48c82c39e7ae64602ae74f" }
413naga = { version = "23.1.0", features = ["wgsl-in"] }
414blake3 = "1.5.3"
415bytes = "1.0"
416cargo_metadata = "0.19"
417cargo_toml = "0.21"
418chrono = { version = "0.4", features = ["serde"] }
419circular-buffer = "1.0"
420clap = { version = "4.4", features = ["derive"] }
421cocoa = "0.26"
422cocoa-foundation = "0.2.0"
423convert_case = "0.8.0"
424core-foundation = "0.9.3"
425core-foundation-sys = "0.8.6"
426ctor = "0.4.0"
427dashmap = "6.0"
428dap-types = { git = "https://github.com/zed-industries/dap-types", rev = "bfd4af0" }
429derive_more = "0.99.17"
430dirs = "4.0"
431ec4rs = "1.1"
432emojis = "0.6.1"
433env_logger = "0.11"
434exec = "0.3.1"
435fancy-regex = "0.14.0"
436fork = "0.2.0"
437futures = "0.3"
438futures-batch = "0.6.1"
439futures-lite = "1.13"
440git2 = { version = "0.20.1", default-features = false }
441globset = "0.4"
442handlebars = "4.3"
443heed = { version = "0.21.0", features = ["read-txn-no-tls"] }
444hex = "0.4.3"
445html5ever = "0.27.0"
446hyper = "0.14"
447http = "1.1"
448ignore = "0.4.22"
449image = "0.25.1"
450imara-diff = "0.1.8"
451indexmap = { version = "2.7.0", features = ["serde"] }
452indoc = "2"
453inventory = "0.3.19"
454itertools = "0.14.0"
455jsonwebtoken = "9.3"
456jupyter-protocol = { version = "0.6.0" }
457jupyter-websocket-client = { version = "0.9.0" }
458libc = "0.2"
459libsqlite3-sys = { version = "0.30.1", features = ["bundled"] }
460linkify = "0.10.0"
461linkme = "0.3.31"
462livekit = { git = "https://github.com/zed-industries/livekit-rust-sdks", rev = "811ceae29fabee455f110c56cd66b3f49a7e5003", features = [
463 "dispatcher",
464 "services-dispatcher",
465 "rustls-tls-native-roots",
466], default-features = false }
467log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
468markup5ever_rcdom = "0.3.0"
469mlua = { version = "0.10", features = ["lua54", "vendored", "async", "send"] }
470nanoid = "0.4"
471nbformat = { version = "0.10.0" }
472nix = "0.29"
473open = "5.0.0"
474num-format = "0.4.4"
475ordered-float = "2.1.1"
476palette = { version = "0.7.5", default-features = false, features = ["std"] }
477parking_lot = "0.12.1"
478pathdiff = "0.2"
479pet = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
480pet-fs = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
481pet-pixi = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
482pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
483pet-core = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
484pet-poetry = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
485pet-reporter = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
486postage = { version = "0.5", features = ["futures-traits"] }
487pretty_assertions = { version = "1.3.0", features = ["unstable"] }
488proc-macro2 = "1.0.93"
489profiling = "1"
490prost = "0.9"
491prost-build = "0.9"
492prost-types = "0.9"
493pulldown-cmark = { version = "0.12.0", default-features = false }
494quote = "1.0.9"
495rand = "0.8.5"
496rayon = "1.8"
497regex = "1.5"
498repair_json = "0.1.0"
499reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "fd110f6998da16bbca97b6dddda9be7827c50e29", default-features = false, features = [
500 "charset",
501 "http2",
502 "macos-system-configuration",
503 "rustls-tls-native-roots",
504 "socks",
505 "stream",
506] }
507rsa = "0.9.6"
508runtimelib = { version = "0.25.0", default-features = false, features = [
509 "async-dispatcher-runtime",
510] }
511rustc-demangle = "0.1.23"
512rust-embed = { version = "8.4", features = ["include-exclude"] }
513rustc-hash = "2.1.0"
514rustls = { version = "0.23.22" }
515rustls-platform-verifier = "0.5.0"
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" }
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.23"
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"] }
586wasmparser = "0.221"
587wasm-encoder = "0.221"
588wasmtime = { version = "29", default-features = false, features = [
589 "async",
590 "demangle",
591 "runtime",
592 "cranelift",
593 "component-model",
594] }
595wasmtime-wasi = "29"
596which = "6.0.0"
597wit-component = "0.221"
598zed_llm_client = "0.4"
599zstd = "0.11"
600metal = "0.31"
601
602[workspace.dependencies.async-stripe]
603git = "https://github.com/zed-industries/async-stripe"
604rev = "3672dd4efb7181aa597bf580bf5a2f5d23db6735"
605default-features = false
606features = [
607 "runtime-tokio-hyper-rustls",
608 "billing",
609 "checkout",
610 "events",
611 # The features below are only enabled to get the `events` feature to build.
612 "chrono",
613 "connect",
614]
615
616[workspace.dependencies.windows]
617version = "0.61"
618features = [
619 "Foundation_Collections",
620 "Foundation_Numerics",
621 "Storage_Search",
622 "Storage_Streams",
623 "System_Threading",
624 "UI_StartScreen",
625 "UI_ViewManagement",
626 "Wdk_System_SystemServices",
627 "Win32_Globalization",
628 "Win32_Graphics_Direct2D",
629 "Win32_Graphics_Direct2D_Common",
630 "Win32_Graphics_DirectWrite",
631 "Win32_Graphics_Dwm",
632 "Win32_Graphics_Dxgi_Common",
633 "Win32_Graphics_Gdi",
634 "Win32_Graphics_Imaging",
635 "Win32_Graphics_Imaging_D2D",
636 "Win32_Security",
637 "Win32_Security_Credentials",
638 "Win32_Storage_FileSystem",
639 "Win32_System_Com",
640 "Win32_System_Com_StructuredStorage",
641 "Win32_System_Console",
642 "Win32_System_DataExchange",
643 "Win32_System_IO",
644 "Win32_System_LibraryLoader",
645 "Win32_System_Memory",
646 "Win32_System_Ole",
647 "Win32_System_Pipes",
648 "Win32_System_SystemInformation",
649 "Win32_System_SystemServices",
650 "Win32_System_Threading",
651 "Win32_System_WinRT",
652 "Win32_UI_Controls",
653 "Win32_UI_HiDpi",
654 "Win32_UI_Input_Ime",
655 "Win32_UI_Input_KeyboardAndMouse",
656 "Win32_UI_Shell",
657 "Win32_UI_Shell_Common",
658 "Win32_UI_WindowsAndMessaging",
659]
660
661# TODO livekit https://github.com/RustAudio/cpal/pull/891
662[patch.crates-io]
663cpal = { git = "https://github.com/zed-industries/cpal", rev = "fd8bc2fd39f1f5fdee5a0690656caff9a26d9d50" }
664real-async-tls = { git = "https://github.com/zed-industries/async-tls", rev = "1e759a4b5e370f87dc15e40756ac4f8815b61d9d", package = "async-tls" }
665
666[profile.dev]
667split-debuginfo = "unpacked"
668debug = "limited"
669codegen-units = 16
670
671[profile.dev.package]
672taffy = { opt-level = 3 }
673cranelift-codegen = { opt-level = 3 }
674resvg = { opt-level = 3 }
675rustybuzz = { opt-level = 3 }
676ttf-parser = { opt-level = 3 }
677wasmtime-cranelift = { opt-level = 3 }
678wasmtime = { opt-level = 3 }
679# Build single-source-file crates with cg=1 as it helps make `cargo build` of a whole workspace a bit faster
680activity_indicator = { codegen-units = 1 }
681assets = { codegen-units = 1 }
682breadcrumbs = { codegen-units = 1 }
683collections = { codegen-units = 1 }
684command_palette = { codegen-units = 1 }
685command_palette_hooks = { codegen-units = 1 }
686evals = { codegen-units = 1 }
687extension_cli = { codegen-units = 1 }
688feature_flags = { codegen-units = 1 }
689file_icons = { codegen-units = 1 }
690fsevent = { codegen-units = 1 }
691image_viewer = { codegen-units = 1 }
692inline_completion_button = { codegen-units = 1 }
693install_cli = { codegen-units = 1 }
694journal = { codegen-units = 1 }
695lmstudio = { codegen-units = 1 }
696menu = { codegen-units = 1 }
697notifications = { codegen-units = 1 }
698ollama = { codegen-units = 1 }
699outline = { codegen-units = 1 }
700paths = { codegen-units = 1 }
701prettier = { codegen-units = 1 }
702project_symbols = { codegen-units = 1 }
703refineable = { codegen-units = 1 }
704release_channel = { codegen-units = 1 }
705reqwest_client = { codegen-units = 1 }
706rich_text = { codegen-units = 1 }
707semantic_version = { codegen-units = 1 }
708session = { codegen-units = 1 }
709snippet = { codegen-units = 1 }
710snippets_ui = { codegen-units = 1 }
711sqlez_macros = { codegen-units = 1 }
712story = { codegen-units = 1 }
713supermaven_api = { codegen-units = 1 }
714telemetry_events = { codegen-units = 1 }
715theme_selector = { codegen-units = 1 }
716time_format = { codegen-units = 1 }
717ui_input = { codegen-units = 1 }
718zed_actions = { codegen-units = 1 }
719
720[profile.release]
721debug = "limited"
722lto = "thin"
723codegen-units = 1
724
725[profile.release.package]
726zed = { codegen-units = 16 }
727
728[profile.release-fast]
729inherits = "release"
730debug = "full"
731lto = false
732codegen-units = 16
733
734[workspace.lints.rust]
735unexpected_cfgs = { level = "allow" }
736
737[workspace.lints.clippy]
738dbg_macro = "deny"
739todo = "deny"
740
741# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
742# warning on this rule produces a lot of noise.
743single_range_in_vec_init = "allow"
744
745# These are all of the rules that currently have violations in the Zed
746# codebase.
747#
748# We'll want to drive this list down by either:
749# 1. fixing violations of the rule and begin enforcing it
750# 2. deciding we want to allow the rule permanently, at which point
751# we should codify that separately above.
752#
753# This list shouldn't be added to; it should only get shorter.
754# =============================================================================
755
756# There are a bunch of rules currently failing in the `style` group, so
757# allow all of those, for now.
758style = { level = "allow", priority = -1 }
759
760# Temporary list of style lints that we've fixed so far.
761module_inception = { level = "deny" }
762question_mark = { level = "deny" }
763redundant_closure = { level = "deny" }
764# Individual rules that have violations in the codebase:
765type_complexity = "allow"
766# We often return trait objects from `new` functions.
767new_ret_no_self = { level = "allow" }
768# We have a few `next` functions that differ in lifetimes
769# compared to Iterator::next. Yet, clippy complains about those.
770should_implement_trait = { level = "allow" }
771let_underscore_future = "allow"
772
773# in Rust it can be very tedious to reduce argument count without
774# running afoul of the borrow checker.
775too_many_arguments = "allow"
776
777[workspace.metadata.cargo-machete]
778ignored = ["bindgen", "cbindgen", "prost_build", "serde", "component", "linkme"]