Cargo.toml

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