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