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