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