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 = ["http_client"]}
232gpui_macros = { path = "crates/gpui_macros" }
233html_to_markdown = { path = "crates/html_to_markdown" }
234http_client = { path = "crates/http_client" }
235image_viewer = { path = "crates/image_viewer" }
236indexed_docs = { path = "crates/indexed_docs" }
237inline_completion = { path = "crates/inline_completion" }
238inline_completion_button = { path = "crates/inline_completion_button" }
239install_cli = { path = "crates/install_cli" }
240journal = { path = "crates/journal" }
241language = { path = "crates/language" }
242language_extension = { path = "crates/language_extension" }
243language_model = { path = "crates/language_model" }
244language_model_selector = { path = "crates/language_model_selector" }
245language_models = { path = "crates/language_models" }
246language_selector = { path = "crates/language_selector" }
247language_tools = { path = "crates/language_tools" }
248languages = { path = "crates/languages" }
249live_kit_client = { path = "crates/live_kit_client" }
250live_kit_server = { path = "crates/live_kit_server" }
251lsp = { path = "crates/lsp" }
252markdown = { path = "crates/markdown" }
253markdown_preview = { path = "crates/markdown_preview" }
254media = { path = "crates/media" }
255menu = { path = "crates/menu" }
256multi_buffer = { path = "crates/multi_buffer" }
257node_runtime = { path = "crates/node_runtime" }
258notifications = { path = "crates/notifications" }
259ollama = { path = "crates/ollama" }
260open_ai = { path = "crates/open_ai" }
261outline = { path = "crates/outline" }
262outline_panel = { path = "crates/outline_panel" }
263paths = { path = "crates/paths" }
264picker = { path = "crates/picker" }
265plugin = { path = "crates/plugin" }
266plugin_macros = { path = "crates/plugin_macros" }
267prettier = { path = "crates/prettier" }
268project = { path = "crates/project" }
269project_panel = { path = "crates/project_panel" }
270project_symbols = { path = "crates/project_symbols" }
271proto = { path = "crates/proto" }
272recent_projects = { path = "crates/recent_projects" }
273refineable = { path = "crates/refineable" }
274release_channel = { path = "crates/release_channel" }
275remote = { path = "crates/remote" }
276remote_server = { path = "crates/remote_server" }
277repl = { path = "crates/repl" }
278reqwest_client = { path = "crates/reqwest_client" }
279rich_text = { path = "crates/rich_text" }
280rope = { path = "crates/rope" }
281rpc = { path = "crates/rpc" }
282search = { path = "crates/search" }
283semantic_index = { path = "crates/semantic_index" }
284semantic_version = { path = "crates/semantic_version" }
285session = { path = "crates/session" }
286settings = { path = "crates/settings" }
287settings_ui = { path = "crates/settings_ui" }
288snippet = { path = "crates/snippet" }
289snippet_provider = { path = "crates/snippet_provider" }
290snippets_ui = { path = "crates/snippets_ui" }
291sqlez = { path = "crates/sqlez" }
292sqlez_macros = { path = "crates/sqlez_macros" }
293story = { path = "crates/story" }
294storybook = { path = "crates/storybook" }
295sum_tree = { path = "crates/sum_tree" }
296supermaven = { path = "crates/supermaven" }
297supermaven_api = { path = "crates/supermaven_api" }
298tab_switcher = { path = "crates/tab_switcher" }
299task = { path = "crates/task" }
300tasks_ui = { path = "crates/tasks_ui" }
301telemetry_events = { path = "crates/telemetry_events" }
302terminal = { path = "crates/terminal" }
303terminal_view = { path = "crates/terminal_view" }
304text = { path = "crates/text" }
305theme = { path = "crates/theme" }
306theme_extension = { path = "crates/theme_extension" }
307theme_importer = { path = "crates/theme_importer" }
308theme_selector = { path = "crates/theme_selector" }
309time_format = { path = "crates/time_format" }
310title_bar = { path = "crates/title_bar" }
311toolchain_selector = { path = "crates/toolchain_selector" }
312ui = { path = "crates/ui" }
313ui_input = { path = "crates/ui_input" }
314ui_macros = { path = "crates/ui_macros" }
315util = { path = "crates/util" }
316vcs_menu = { path = "crates/vcs_menu" }
317vim = { path = "crates/vim" }
318vim_mode_setting = { path = "crates/vim_mode_setting" }
319welcome = { path = "crates/welcome" }
320workspace = { path = "crates/workspace" }
321worktree = { path = "crates/worktree" }
322zed = { path = "crates/zed" }
323zed_actions = { path = "crates/zed_actions" }
324
325#
326# External crates
327#
328
329aho-corasick = "1.1"
330alacritty_terminal = { git = "https://github.com/alacritty/alacritty", rev = "91d034ff8b53867143c005acfaa14609147c9a2c" }
331any_vec = "0.14"
332anyhow = "1.0.86"
333arrayvec = { version = "0.7.4", features = ["serde"] }
334ashpd = "0.9.1"
335async-compat = "0.2.1"
336async-compression = { version = "0.4", features = ["gzip", "futures-io"] }
337async-dispatcher = "0.1"
338async-fs = "1.6"
339async-pipe = { git = "https://github.com/zed-industries/async-pipe-rs", rev = "82d00a04211cf4e1236029aa03e6b6ce2a74c553" }
340async-recursion = "1.0.0"
341async-tar = "0.5.0"
342async-trait = "0.1"
343async-tungstenite = "0.28"
344async-watch = "0.3.1"
345async_zip = { version = "0.0.17", features = ["deflate", "deflate64"] }
346base64 = "0.22"
347bitflags = "2.6.0"
348blade-graphics = { git = "https://github.com/kvark/blade", rev = "e142a3a5e678eb6a13e642ad8401b1f3aa38e969" }
349blade-macros = { git = "https://github.com/kvark/blade", rev = "e142a3a5e678eb6a13e642ad8401b1f3aa38e969" }
350blade-util = { git = "https://github.com/kvark/blade", rev = "e142a3a5e678eb6a13e642ad8401b1f3aa38e969" }
351blake3 = "1.5.3"
352bytes = "1.0"
353cargo_metadata = "0.19"
354cargo_toml = "0.20"
355chrono = { version = "0.4", features = ["serde"] }
356clap = { version = "4.4", features = ["derive"] }
357clickhouse = "0.11.6"
358cocoa = "0.26"
359cocoa-foundation = "0.2.0"
360convert_case = "0.6.0"
361core-foundation = "0.9.3"
362core-foundation-sys = "0.8.6"
363ctor = "0.2.6"
364dashmap = "6.0"
365derive_more = "0.99.17"
366dirs = "4.0"
367ec4rs = "1.1"
368emojis = "0.6.1"
369env_logger = "0.11"
370exec = "0.3.1"
371fancy-regex = "0.14.0"
372fork = "0.2.0"
373futures = "0.3"
374futures-batch = "0.6.1"
375futures-lite = "1.13"
376git2 = { version = "0.19", default-features = false }
377globset = "0.4"
378handlebars = "4.3"
379heed = { version = "0.20.1", features = ["read-txn-no-tls"] }
380hex = "0.4.3"
381html5ever = "0.27.0"
382hyper = "0.14"
383ignore = "0.4.22"
384image = "0.25.1"
385indexmap = { version = "1.6.2", features = ["serde"] }
386indoc = "2"
387itertools = "0.13.0"
388jsonwebtoken = "9.3"
389jupyter-protocol = { version = "0.3.0" }
390jupyter-websocket-client = { version = "0.5.0" }
391libc = "0.2"
392linkify = "0.10.0"
393log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
394markup5ever_rcdom = "0.3.0"
395nanoid = "0.4"
396nbformat = { version = "0.7.0" }
397nix = "0.29"
398num-format = "0.4.4"
399once_cell = "1.19.0"
400ordered-float = "2.1.1"
401palette = { version = "0.7.5", default-features = false, features = ["std"] }
402parking_lot = "0.12.1"
403pathdiff = "0.2"
404pet = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c" }
405pet-fs = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c" }
406pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c" }
407pet-core = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c" }
408pet-poetry = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c" }
409pet-reporter = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "ffcbf3f28c46633abd5448a52b1f396c322e0d6c" }
410postage = { version = "0.5", features = ["futures-traits"] }
411pretty_assertions = { version = "1.3.0", features = ["unstable"] }
412profiling = "1"
413prost = "0.9"
414prost-build = "0.9"
415prost-types = "0.9"
416pulldown-cmark = { version = "0.12.0", default-features = false }
417rand = "0.8.5"
418rayon = "1.8"
419regex = "1.5"
420repair_json = "0.1.0"
421reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "fd110f6998da16bbca97b6dddda9be7827c50e29", default-features = false, features = [
422 "charset",
423 "http2",
424 "macos-system-configuration",
425 "rustls-tls-native-roots",
426 "socks",
427 "stream",
428] }
429rsa = "0.9.6"
430runtimelib = { version = "0.22.0", default-features = false, features = [
431 "async-dispatcher-runtime",
432] }
433rustc-demangle = "0.1.23"
434rust-embed = { version = "8.4", features = ["include-exclude"] }
435rustls = "0.21.12"
436rustls-native-certs = "0.8.0"
437schemars = { version = "0.8", features = ["impl_json_schema"] }
438semver = "1.0"
439serde = { version = "1.0", features = ["derive", "rc"] }
440serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
441serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
442serde_json_lenient = { version = "0.2", features = [
443 "preserve_order",
444 "raw_value",
445] }
446serde_repr = "0.1"
447sha2 = "0.10"
448shellexpand = "2.1.0"
449shlex = "1.3.0"
450signal-hook = "0.3.17"
451similar = "1.3"
452simplelog = "0.12.2"
453smallvec = { version = "1.6", features = ["union"] }
454smol = "1.2"
455sqlformat = "0.2"
456strsim = "0.11"
457strum = { version = "0.25.0", features = ["derive"] }
458subtle = "2.5.0"
459sys-locale = "0.3.1"
460sysinfo = "0.31.0"
461tempfile = "3.9.0"
462thiserror = "1.0.29"
463tiktoken-rs = "0.5.9"
464time = { version = "0.3", features = [
465 "macros",
466 "parsing",
467 "serde",
468 "serde-well-known",
469 "formatting",
470] }
471tiny_http = "0.8"
472toml = "0.8"
473tokio = { version = "1" }
474tower-http = "0.4.4"
475tree-sitter = { version = "0.23", features = ["wasm"] }
476tree-sitter-bash = "0.23"
477tree-sitter-c = "0.23"
478tree-sitter-cpp = "0.23"
479tree-sitter-css = "0.23"
480tree-sitter-elixir = "0.3"
481tree-sitter-embedded-template = "0.23.0"
482tree-sitter-go = "0.23"
483tree-sitter-go-mod = { git = "https://github.com/zed-industries/tree-sitter-go-mod", rev = "a9aea5e358cde4d0f8ff20b7bc4fa311e359c7ca", package = "tree-sitter-gomod" }
484tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
485tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
486tree-sitter-diff = "0.1.0"
487tree-sitter-html = "0.20"
488tree-sitter-jsdoc = "0.23"
489tree-sitter-json = "0.23"
490tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
491tree-sitter-python = "0.23"
492tree-sitter-regex = "0.23"
493tree-sitter-ruby = "0.23"
494tree-sitter-rust = "0.23"
495tree-sitter-typescript = "0.23"
496tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
497unicase = "2.6"
498unindent = "0.1.7"
499unicode-segmentation = "1.10"
500unicode-script = "0.5.7"
501url = "2.2"
502uuid = { version = "1.1.2", features = ["v4", "v5", "serde"] }
503wasmparser = "0.215"
504wasm-encoder = "0.215"
505wasmtime = { version = "24", default-features = false, features = [
506 "async",
507 "demangle",
508 "runtime",
509 "cranelift",
510 "component-model",
511] }
512wasmtime-wasi = "24"
513which = "6.0.0"
514wit-component = "0.201"
515zstd = "0.11"
516
517[workspace.dependencies.async-stripe]
518git = "https://github.com/zed-industries/async-stripe"
519rev = "3672dd4efb7181aa597bf580bf5a2f5d23db6735"
520default-features = false
521features = [
522 "runtime-tokio-hyper-rustls",
523 "billing",
524 "checkout",
525 "events",
526 # The features below are only enabled to get the `events` feature to build.
527 "chrono",
528 "connect",
529]
530
531[workspace.dependencies.windows]
532version = "0.58"
533features = [
534 "implement",
535 "Foundation_Numerics",
536 "Storage",
537 "System_Threading",
538 "UI_ViewManagement",
539 "Wdk_System_SystemServices",
540 "Win32_Globalization",
541 "Win32_Graphics_Direct2D",
542 "Win32_Graphics_Direct2D_Common",
543 "Win32_Graphics_DirectWrite",
544 "Win32_Graphics_Dwm",
545 "Win32_Graphics_Dxgi_Common",
546 "Win32_Graphics_Gdi",
547 "Win32_Graphics_Imaging",
548 "Win32_Graphics_Imaging_D2D",
549 "Win32_Security",
550 "Win32_Security_Credentials",
551 "Win32_Storage_FileSystem",
552 "Win32_System_Com",
553 "Win32_System_Com_StructuredStorage",
554 "Win32_System_DataExchange",
555 "Win32_System_LibraryLoader",
556 "Win32_System_Memory",
557 "Win32_System_Ole",
558 "Win32_System_SystemInformation",
559 "Win32_System_SystemServices",
560 "Win32_System_Threading",
561 "Win32_System_WinRT",
562 "Win32_UI_Controls",
563 "Win32_UI_HiDpi",
564 "Win32_UI_Input_Ime",
565 "Win32_UI_Input_KeyboardAndMouse",
566 "Win32_UI_Shell",
567 "Win32_UI_Shell_Common",
568 "Win32_UI_WindowsAndMessaging",
569]
570
571[profile.dev]
572split-debuginfo = "unpacked"
573debug = "limited"
574codegen-units = 16
575
576[profile.dev.package]
577taffy = { opt-level = 3 }
578cranelift-codegen = { opt-level = 3 }
579resvg = { opt-level = 3 }
580rustybuzz = { opt-level = 3 }
581ttf-parser = { opt-level = 3 }
582wasmtime-cranelift = { opt-level = 3 }
583wasmtime = { opt-level = 3 }
584# Build single-source-file crates with cg=1 as it helps make `cargo build` of a whole workspace a bit faster
585activity_indicator = { codegen-units = 1 }
586assets = { codegen-units = 1 }
587breadcrumbs = { codegen-units = 1 }
588collections = { codegen-units = 1 }
589command_palette = { codegen-units = 1 }
590command_palette_hooks = { codegen-units = 1 }
591evals = { codegen-units = 1 }
592extension_cli = { codegen-units = 1 }
593feature_flags = { codegen-units = 1 }
594file_icons = { codegen-units = 1 }
595fsevent = { codegen-units = 1 }
596image_viewer = { codegen-units = 1 }
597inline_completion_button = { codegen-units = 1 }
598install_cli = { codegen-units = 1 }
599journal = { codegen-units = 1 }
600menu = { codegen-units = 1 }
601notifications = { codegen-units = 1 }
602ollama = { codegen-units = 1 }
603outline = { codegen-units = 1 }
604paths = { codegen-units = 1 }
605prettier = { codegen-units = 1 }
606project_symbols = { codegen-units = 1 }
607refineable = { codegen-units = 1 }
608release_channel = { codegen-units = 1 }
609reqwest_client = { codegen-units = 1 }
610rich_text = { codegen-units = 1 }
611semantic_version = { codegen-units = 1 }
612session = { codegen-units = 1 }
613snippet = { codegen-units = 1 }
614snippets_ui = { codegen-units = 1 }
615sqlez_macros = { codegen-units = 1 }
616story = { codegen-units = 1 }
617supermaven_api = { codegen-units = 1 }
618telemetry_events = { codegen-units = 1 }
619theme_selector = { codegen-units = 1 }
620time_format = { codegen-units = 1 }
621ui_input = { codegen-units = 1 }
622vcs_menu = { codegen-units = 1 }
623zed_actions = { codegen-units = 1 }
624
625[profile.release]
626debug = "limited"
627lto = "thin"
628codegen-units = 1
629
630[profile.release.package]
631zed = { codegen-units = 16 }
632
633[profile.release-fast]
634inherits = "release"
635debug = "full"
636lto = false
637codegen-units = 16
638
639[workspace.lints.clippy]
640dbg_macro = "deny"
641todo = "deny"
642
643# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
644# warning on this rule produces a lot of noise.
645single_range_in_vec_init = "allow"
646
647# These are all of the rules that currently have violations in the Zed
648# codebase.
649#
650# We'll want to drive this list down by either:
651# 1. fixing violations of the rule and begin enforcing it
652# 2. deciding we want to allow the rule permanently, at which point
653# we should codify that separately above.
654#
655# This list shouldn't be added to; it should only get shorter.
656# =============================================================================
657
658# There are a bunch of rules currently failing in the `style` group, so
659# allow all of those, for now.
660style = { level = "allow", priority = -1 }
661
662# Temporary list of style lints that we've fixed so far.
663module_inception = { level = "deny" }
664question_mark = { level = "deny" }
665redundant_closure = { level = "deny" }
666# Individual rules that have violations in the codebase:
667type_complexity = "allow"
668# We often return trait objects from `new` functions.
669new_ret_no_self = { level = "allow" }
670# We have a few `next` functions that differ in lifetimes
671# compared to Iterator::next. Yet, clippy complains about those.
672should_implement_trait = { level = "allow" }
673
674[workspace.metadata.cargo-machete]
675ignored = ["bindgen", "cbindgen", "prost_build", "serde"]