Cargo.toml

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