Cargo.toml

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