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/agent_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/lmstudio",
91 "crates/lsp",
92 "crates/markdown",
93 "crates/markdown_preview",
94 "crates/media",
95 "crates/menu",
96 "crates/migrator",
97 "crates/mistral",
98 "crates/multi_buffer",
99 "crates/node_runtime",
100 "crates/notifications",
101 "crates/ollama",
102 "crates/open_ai",
103 "crates/outline",
104 "crates/outline_panel",
105 "crates/panel",
106 "crates/paths",
107 "crates/picker",
108 "crates/prettier",
109 "crates/project",
110 "crates/project_panel",
111 "crates/project_symbols",
112 "crates/prompt_library",
113 "crates/prompt_store",
114 "crates/proto",
115 "crates/recent_projects",
116 "crates/refineable",
117 "crates/refineable/derive_refineable",
118 "crates/release_channel",
119 "crates/remote",
120 "crates/remote_server",
121 "crates/repl",
122 "crates/reqwest_client",
123 "crates/rich_text",
124 "crates/rope",
125 "crates/rpc",
126 "crates/schema_generator",
127 "crates/search",
128 "crates/semantic_index",
129 "crates/semantic_version",
130 "crates/session",
131 "crates/settings",
132 "crates/settings_ui",
133 "crates/snippet",
134 "crates/snippet_provider",
135 "crates/snippets_ui",
136 "crates/sqlez",
137 "crates/sqlez_macros",
138 "crates/story",
139 "crates/storybook",
140 "crates/streaming_diff",
141 "crates/sum_tree",
142 "crates/supermaven",
143 "crates/supermaven_api",
144 "crates/tab_switcher",
145 "crates/task",
146 "crates/tasks_ui",
147 "crates/telemetry",
148 "crates/telemetry_events",
149 "crates/terminal",
150 "crates/terminal_view",
151 "crates/text",
152 "crates/theme",
153 "crates/theme_extension",
154 "crates/theme_importer",
155 "crates/theme_selector",
156 "crates/time_format",
157 "crates/title_bar",
158 "crates/toolchain_selector",
159 "crates/ui",
160 "crates/ui_input",
161 "crates/ui_macros",
162 "crates/ui_prompt",
163 "crates/util",
164 "crates/util_macros",
165 "crates/vim",
166 "crates/vim_mode_setting",
167 "crates/welcome",
168 "crates/workspace",
169 "crates/worktree",
170 "crates/zed",
171 "crates/zed_actions",
172 "crates/zeta",
173 "crates/zlog",
174 "crates/zlog_settings",
175
176 #
177 # Extensions
178 #
179
180 "extensions/emmet",
181 "extensions/glsl",
182 "extensions/html",
183 "extensions/perplexity",
184 "extensions/proto",
185 "extensions/ruff",
186 "extensions/slash-commands-example",
187 "extensions/snippets",
188 "extensions/test-extension",
189 "extensions/toml",
190
191 #
192 # Tooling
193 #
194
195 "tooling/workspace-hack",
196 "tooling/xtask",
197]
198default-members = ["crates/zed"]
199
200[workspace.package]
201publish = false
202edition = "2024"
203
204[workspace.dependencies]
205
206#
207# Workspace member crates
208#
209
210activity_indicator = { path = "crates/activity_indicator" }
211agent = { path = "crates/agent" }
212ai = { path = "crates/ai" }
213anthropic = { path = "crates/anthropic" }
214askpass = { path = "crates/askpass" }
215assets = { path = "crates/assets" }
216assistant = { path = "crates/assistant" }
217assistant_context_editor = { path = "crates/assistant_context_editor" }
218assistant_eval = { path = "crates/agent_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" }
295lmstudio = { path = "crates/lmstudio" }
296lsp = { path = "crates/lsp" }
297markdown = { path = "crates/markdown" }
298markdown_preview = { path = "crates/markdown_preview" }
299media = { path = "crates/media" }
300menu = { path = "crates/menu" }
301migrator = { path = "crates/migrator" }
302mistral = { path = "crates/mistral" }
303multi_buffer = { path = "crates/multi_buffer" }
304node_runtime = { path = "crates/node_runtime" }
305notifications = { path = "crates/notifications" }
306ollama = { path = "crates/ollama" }
307open_ai = { path = "crates/open_ai" }
308outline = { path = "crates/outline" }
309outline_panel = { path = "crates/outline_panel" }
310paths = { path = "crates/paths" }
311panel = { path = "crates/panel" }
312picker = { path = "crates/picker" }
313plugin = { path = "crates/plugin" }
314plugin_macros = { path = "crates/plugin_macros" }
315prettier = { path = "crates/prettier" }
316project = { path = "crates/project" }
317project_panel = { path = "crates/project_panel" }
318project_symbols = { path = "crates/project_symbols" }
319prompt_library = { path = "crates/prompt_library" }
320prompt_store = { path = "crates/prompt_store" }
321proto = { path = "crates/proto" }
322recent_projects = { path = "crates/recent_projects" }
323refineable = { path = "crates/refineable" }
324release_channel = { path = "crates/release_channel" }
325remote = { path = "crates/remote" }
326remote_server = { path = "crates/remote_server" }
327repl = { path = "crates/repl" }
328reqwest_client = { path = "crates/reqwest_client" }
329rich_text = { path = "crates/rich_text" }
330rope = { path = "crates/rope" }
331rpc = { path = "crates/rpc" }
332search = { path = "crates/search" }
333semantic_index = { path = "crates/semantic_index" }
334semantic_version = { path = "crates/semantic_version" }
335session = { path = "crates/session" }
336settings = { path = "crates/settings" }
337settings_ui = { path = "crates/settings_ui" }
338snippet = { path = "crates/snippet" }
339snippet_provider = { path = "crates/snippet_provider" }
340snippets_ui = { path = "crates/snippets_ui" }
341sqlez = { path = "crates/sqlez" }
342sqlez_macros = { path = "crates/sqlez_macros" }
343story = { path = "crates/story" }
344storybook = { path = "crates/storybook" }
345streaming_diff = { path = "crates/streaming_diff" }
346sum_tree = { path = "crates/sum_tree" }
347supermaven = { path = "crates/supermaven" }
348supermaven_api = { path = "crates/supermaven_api" }
349tab_switcher = { path = "crates/tab_switcher" }
350task = { path = "crates/task" }
351tasks_ui = { path = "crates/tasks_ui" }
352telemetry = { path = "crates/telemetry" }
353telemetry_events = { path = "crates/telemetry_events" }
354terminal = { path = "crates/terminal" }
355terminal_view = { path = "crates/terminal_view" }
356text = { path = "crates/text" }
357theme = { path = "crates/theme" }
358theme_extension = { path = "crates/theme_extension" }
359theme_importer = { path = "crates/theme_importer" }
360theme_selector = { path = "crates/theme_selector" }
361time_format = { path = "crates/time_format" }
362title_bar = { path = "crates/title_bar" }
363toolchain_selector = { path = "crates/toolchain_selector" }
364ui = { path = "crates/ui" }
365ui_input = { path = "crates/ui_input" }
366ui_macros = { path = "crates/ui_macros" }
367ui_prompt = { path = "crates/ui_prompt" }
368util = { path = "crates/util" }
369util_macros = { path = "crates/util_macros" }
370vim = { path = "crates/vim" }
371vim_mode_setting = { path = "crates/vim_mode_setting" }
372welcome = { path = "crates/welcome" }
373workspace = { path = "crates/workspace" }
374worktree = { path = "crates/worktree" }
375zed = { path = "crates/zed" }
376zed_actions = { path = "crates/zed_actions" }
377zeta = { path = "crates/zeta" }
378zlog = { path = "crates/zlog" }
379zlog_settings = { path = "crates/zlog_settings" }
380
381#
382# External crates
383#
384
385aho-corasick = "1.1"
386alacritty_terminal = { git = "https://github.com/zed-industries/alacritty.git", branch = "add-hush-login-flag" }
387any_vec = "0.14"
388anyhow = "1.0.86"
389arrayvec = { version = "0.7.4", features = ["serde"] }
390ashpd = { version = "0.11", default-features = false, features = ["async-std"] }
391async-compat = "0.2.1"
392async-compression = { version = "0.4", features = ["gzip", "futures-io"] }
393async-dispatcher = "0.1"
394async-fs = "2.1"
395async-pipe = { git = "https://github.com/zed-industries/async-pipe-rs", rev = "82d00a04211cf4e1236029aa03e6b6ce2a74c553" }
396async-recursion = "1.0.0"
397async-tar = "0.5.0"
398async-trait = "0.1"
399async-tungstenite = "0.28"
400async-watch = "0.3.1"
401async_zip = { version = "0.0.17", features = ["deflate", "deflate64"] }
402aws-config = { version = "1.6.1", features = ["behavior-version-latest"] }
403aws-credential-types = { version = "1.2.2", features = ["hardcoded-credentials"] }
404aws-sdk-bedrockruntime = { version = "1.80.0", features = ["behavior-version-latest"] }
405aws-smithy-runtime-api = { version = "1.7.4", features = ["http-1x", "client"] }
406aws-smithy-types = { version = "1.3.0", features = ["http-body-1-x"] }
407base64 = "0.22"
408bitflags = "2.6.0"
409blade-graphics = { git = "https://github.com/kvark/blade", rev = "b16f5c7bd873c7126f48c82c39e7ae64602ae74f" }
410blade-macros = { git = "https://github.com/kvark/blade", rev = "b16f5c7bd873c7126f48c82c39e7ae64602ae74f" }
411blade-util = { git = "https://github.com/kvark/blade", rev = "b16f5c7bd873c7126f48c82c39e7ae64602ae74f" }
412naga = { version = "23.1.0", features = ["wgsl-in"] }
413blake3 = "1.5.3"
414bytes = "1.0"
415cargo_metadata = "0.19"
416cargo_toml = "0.21"
417chrono = { version = "0.4", features = ["serde"] }
418circular-buffer = "1.0"
419clap = { version = "4.4", features = ["derive"] }
420cocoa = "0.26"
421cocoa-foundation = "0.2.0"
422core-video = { version = "0.4.3", features = ["metal"] }
423convert_case = "0.8.0"
424core-foundation = "0.10.0"
425core-foundation-sys = "0.8.6"
426ctor = "0.4.0"
427dashmap = "6.0"
428dap-types = { git = "https://github.com/zed-industries/dap-types", rev = "be69a016ba710191b9fdded28c8b042af4b617f7" }
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"
462log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
463markup5ever_rcdom = "0.3.0"
464mlua = { version = "0.10", features = ["lua54", "vendored", "async", "send"] }
465nanoid = "0.4"
466nbformat = { version = "0.10.0" }
467nix = "0.29"
468objc = "0.2"
469open = "5.0.0"
470num-format = "0.4.4"
471ordered-float = "2.1.1"
472palette = { version = "0.7.5", default-features = false, features = ["std"] }
473parking_lot = "0.12.1"
474pathdiff = "0.2"
475pet = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
476pet-fs = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
477pet-pixi = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
478pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
479pet-core = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
480pet-poetry = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
481pet-reporter = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
482postage = { version = "0.5", features = ["futures-traits"] }
483pretty_assertions = { version = "1.3.0", features = ["unstable"] }
484proc-macro2 = "1.0.93"
485profiling = "1"
486prost = "0.9"
487prost-build = "0.9"
488prost-types = "0.9"
489pulldown-cmark = { version = "0.12.0", default-features = false }
490quote = "1.0.9"
491rand = "0.8.5"
492rayon = "1.8"
493regex = "1.5"
494repair_json = "0.1.0"
495reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "fd110f6998da16bbca97b6dddda9be7827c50e29", default-features = false, features = [
496 "charset",
497 "http2",
498 "macos-system-configuration",
499 "rustls-tls-native-roots",
500 "socks",
501 "stream",
502] }
503rsa = "0.9.6"
504runtimelib = { version = "0.25.0", default-features = false, features = [
505 "async-dispatcher-runtime",
506] }
507rustc-demangle = "0.1.23"
508rust-embed = { version = "8.4", features = ["include-exclude"] }
509rustc-hash = "2.1.0"
510rustls = { version = "0.23.22" }
511rustls-platform-verifier = "0.5.0"
512scap = { git = "https://github.com/zed-industries/scap", rev = "08f0a01417505cc0990b9931a37e5120db92e0d0", default-features = false }
513schemars = { version = "0.8", features = ["impl_json_schema", "indexmap2"] }
514semver = "1.0"
515serde = { version = "1.0", features = ["derive", "rc"] }
516serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
517serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
518serde_json_lenient = { version = "0.2", features = [
519 "preserve_order",
520 "raw_value",
521] }
522serde_repr = "0.1"
523sha2 = "0.10"
524shellexpand = "2.1.0"
525shlex = "1.3.0"
526signal-hook = "0.3.17"
527simplelog = "0.12.2"
528smallvec = { version = "1.6", features = ["union"] }
529smol = "2.0"
530sqlformat = "0.2"
531streaming-iterator = "0.1"
532strsim = "0.11"
533strum = { version = "0.26.0", features = ["derive"] }
534subtle = "2.5.0"
535syn = { version = "1.0.72", features = ["full", "extra-traits"] }
536sys-locale = "0.3.1"
537sysinfo = "0.31.0"
538take-until = "0.2.0"
539tempfile = "3.9.0"
540thiserror = "2.0.12"
541tiktoken-rs = "0.6.0"
542time = { version = "0.3", features = [
543 "macros",
544 "parsing",
545 "serde",
546 "serde-well-known",
547 "formatting",
548] }
549tiny_http = "0.8"
550toml = "0.8"
551tokio = { version = "1" }
552tokio-tungstenite = { version = "0.26", features = ["__rustls-tls"] }
553tower-http = "0.4.4"
554tree-sitter = { version = "0.25.3", features = ["wasm"] }
555tree-sitter-bash = "0.23"
556tree-sitter-c = "0.23"
557tree-sitter-cpp = "0.23"
558tree-sitter-css = "0.23"
559tree-sitter-elixir = "0.3"
560tree-sitter-embedded-template = "0.23.0"
561tree-sitter-gitcommit = { git = "https://github.com/zed-industries/tree-sitter-git-commit", rev = "88309716a69dd13ab83443721ba6e0b491d37ee9" }
562tree-sitter-go = "0.23"
563tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c", package = "tree-sitter-gomod" }
564tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
565tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
566tree-sitter-diff = "0.1.0"
567tree-sitter-html = "0.23"
568tree-sitter-jsdoc = "0.23"
569tree-sitter-json = "0.24"
570tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
571tree-sitter-python = "0.23"
572tree-sitter-regex = "0.24"
573tree-sitter-ruby = "0.23"
574tree-sitter-rust = "0.24"
575tree-sitter-typescript = "0.23"
576tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
577unicase = "2.6"
578unindent = "0.2.0"
579unicode-segmentation = "1.10"
580unicode-script = "0.5.7"
581url = "2.2"
582urlencoding = "2.1.2"
583uuid = { version = "1.1.2", features = ["v4", "v5", "v7", "serde"] }
584walkdir = "2.3"
585wasmparser = "0.221"
586wasm-encoder = "0.221"
587wasmtime = { version = "29", default-features = false, features = [
588 "async",
589 "demangle",
590 "runtime",
591 "cranelift",
592 "component-model",
593] }
594wasmtime-wasi = "29"
595which = "6.0.0"
596wit-component = "0.221"
597workspace-hack = "0.1.0"
598zed_llm_client = "0.4"
599zstd = "0.11"
600metal = "0.29"
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" }
665notify = { git = "https://github.com/zed-industries/notify.git", rev = "bbb9ea5ae52b253e095737847e367c30653a2e96" }
666notify-types = { git = "https://github.com/zed-industries/notify.git", rev = "bbb9ea5ae52b253e095737847e367c30653a2e96" }
667
668# Makes the workspace hack crate refer to the local one, but only when you're building locally
669workspace-hack = { path = "tooling/workspace-hack" }
670
671[profile.dev]
672split-debuginfo = "unpacked"
673codegen-units = 16
674
675[profile.dev.package]
676taffy = { opt-level = 3 }
677cranelift-codegen = { opt-level = 3 }
678resvg = { opt-level = 3 }
679rustybuzz = { opt-level = 3 }
680ttf-parser = { opt-level = 3 }
681wasmtime-cranelift = { opt-level = 3 }
682wasmtime = { opt-level = 3 }
683# Build single-source-file crates with cg=1 as it helps make `cargo build` of a whole workspace a bit faster
684activity_indicator = { codegen-units = 1 }
685assets = { codegen-units = 1 }
686breadcrumbs = { codegen-units = 1 }
687collections = { codegen-units = 1 }
688command_palette = { codegen-units = 1 }
689command_palette_hooks = { codegen-units = 1 }
690evals = { codegen-units = 1 }
691extension_cli = { codegen-units = 1 }
692feature_flags = { codegen-units = 1 }
693file_icons = { codegen-units = 1 }
694fsevent = { codegen-units = 1 }
695image_viewer = { codegen-units = 1 }
696inline_completion_button = { codegen-units = 1 }
697install_cli = { codegen-units = 1 }
698journal = { codegen-units = 1 }
699lmstudio = { codegen-units = 1 }
700menu = { codegen-units = 1 }
701notifications = { codegen-units = 1 }
702ollama = { codegen-units = 1 }
703outline = { codegen-units = 1 }
704paths = { codegen-units = 1 }
705prettier = { codegen-units = 1 }
706project_symbols = { codegen-units = 1 }
707refineable = { codegen-units = 1 }
708release_channel = { codegen-units = 1 }
709reqwest_client = { codegen-units = 1 }
710rich_text = { codegen-units = 1 }
711semantic_version = { codegen-units = 1 }
712session = { codegen-units = 1 }
713snippet = { codegen-units = 1 }
714snippets_ui = { codegen-units = 1 }
715sqlez_macros = { codegen-units = 1 }
716story = { codegen-units = 1 }
717supermaven_api = { codegen-units = 1 }
718telemetry_events = { codegen-units = 1 }
719theme_selector = { codegen-units = 1 }
720time_format = { codegen-units = 1 }
721ui_input = { codegen-units = 1 }
722zed_actions = { codegen-units = 1 }
723
724[profile.release]
725debug = "limited"
726lto = "thin"
727codegen-units = 1
728
729[profile.release.package]
730zed = { codegen-units = 16 }
731
732[profile.release-fast]
733inherits = "release"
734debug = "full"
735lto = false
736codegen-units = 16
737
738[workspace.lints.rust]
739unexpected_cfgs = { level = "allow" }
740
741[workspace.lints.clippy]
742dbg_macro = "deny"
743todo = "deny"
744
745# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
746# warning on this rule produces a lot of noise.
747single_range_in_vec_init = "allow"
748
749# These are all of the rules that currently have violations in the Zed
750# codebase.
751#
752# We'll want to drive this list down by either:
753# 1. fixing violations of the rule and begin enforcing it
754# 2. deciding we want to allow the rule permanently, at which point
755# we should codify that separately above.
756#
757# This list shouldn't be added to; it should only get shorter.
758# =============================================================================
759
760# There are a bunch of rules currently failing in the `style` group, so
761# allow all of those, for now.
762style = { level = "allow", priority = -1 }
763
764# Temporary list of style lints that we've fixed so far.
765module_inception = { level = "deny" }
766question_mark = { level = "deny" }
767redundant_closure = { level = "deny" }
768# Individual rules that have violations in the codebase:
769type_complexity = "allow"
770# We often return trait objects from `new` functions.
771new_ret_no_self = { level = "allow" }
772# We have a few `next` functions that differ in lifetimes
773# compared to Iterator::next. Yet, clippy complains about those.
774should_implement_trait = { level = "allow" }
775let_underscore_future = "allow"
776
777# in Rust it can be very tedious to reduce argument count without
778# running afoul of the borrow checker.
779too_many_arguments = "allow"
780
781[workspace.metadata.cargo-machete]
782ignored = ["bindgen", "cbindgen", "prost_build", "serde", "component", "linkme", "workspace-hack"]