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