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.8.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"
458ordered-float = "2.1.1"
459palette = { version = "0.7.5", default-features = false, features = ["std"] }
460parking_lot = "0.12.1"
461pathdiff = "0.2"
462pet = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
463pet-fs = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
464pet-pixi = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
465pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
466pet-core = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
467pet-poetry = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
468pet-reporter = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
469postage = { version = "0.5", features = ["futures-traits"] }
470pretty_assertions = { version = "1.3.0", features = ["unstable"] }
471proc-macro2 = "1.0.93"
472profiling = "1"
473prost = "0.9"
474prost-build = "0.9"
475prost-types = "0.9"
476pulldown-cmark = { version = "0.12.0", default-features = false }
477quote = "1.0.9"
478rand = "0.8.5"
479rayon = "1.8"
480regex = "1.5"
481repair_json = "0.1.0"
482reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "fd110f6998da16bbca97b6dddda9be7827c50e29", default-features = false, features = [
483    "charset",
484    "http2",
485    "macos-system-configuration",
486    "rustls-tls-native-roots",
487    "socks",
488    "stream",
489] }
490rsa = "0.9.6"
491runtimelib = { version = "0.25.0", default-features = false, features = [
492    "async-dispatcher-runtime",
493] }
494rustc-demangle = "0.1.23"
495rust-embed = { version = "8.4", features = ["include-exclude"] }
496rustc-hash = "2.1.0"
497rustls = { version = "0.23.22" }
498rustls-platform-verifier = "0.5.0"
499schemars = { version = "0.8", features = ["impl_json_schema", "indexmap2"] }
500semver = "1.0"
501serde = { version = "1.0", features = ["derive", "rc"] }
502serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
503serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
504serde_json_lenient = { version = "0.2", features = [
505    "preserve_order",
506    "raw_value",
507] }
508serde_repr = "0.1"
509sha2 = "0.10"
510shellexpand = "2.1.0"
511shlex = "1.3.0"
512signal-hook = "0.3.17"
513simplelog = "0.12.2"
514smallvec = { version = "1.6", features = ["union"] }
515smol = "2.0"
516sqlformat = "0.2"
517streaming-iterator = "0.1"
518strsim = "0.11"
519strum = { version = "0.26.0", features = ["derive"] }
520subtle = "2.5.0"
521syn = { version = "1.0.72", features = ["full", "extra-traits"] }
522sys-locale = "0.3.1"
523sysinfo = "0.31.0"
524take-until = "0.2.0"
525tempfile = "3.9.0"
526thiserror = "1.0.29"
527tiktoken-rs = "0.6.0"
528time = { version = "0.3", features = [
529    "macros",
530    "parsing",
531    "serde",
532    "serde-well-known",
533    "formatting",
534] }
535tiny_http = "0.8"
536toml = "0.8"
537tokio = { version = "1" }
538tower-http = "0.4.4"
539tree-sitter = { version = "0.25.2", features = ["wasm"] }
540tree-sitter-bash = "0.23"
541tree-sitter-c = "0.23"
542tree-sitter-cpp = "0.23"
543tree-sitter-css = "0.23"
544tree-sitter-elixir = "0.3"
545tree-sitter-embedded-template = "0.23.0"
546tree-sitter-gitcommit = { git = "https://github.com/zed-industries/tree-sitter-git-commit", rev = "88309716a69dd13ab83443721ba6e0b491d37ee9" }
547tree-sitter-go = "0.23"
548tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c", package = "tree-sitter-gomod" }
549tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
550tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
551tree-sitter-diff = "0.1.0"
552tree-sitter-html = "0.23"
553tree-sitter-jsdoc = "0.23"
554tree-sitter-json = "0.24"
555tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
556tree-sitter-python = "0.23"
557tree-sitter-regex = "0.24"
558tree-sitter-ruby = "0.23"
559tree-sitter-rust = "0.23"
560tree-sitter-typescript = "0.23"
561tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
562unicase = "2.6"
563unindent = "0.2.0"
564unicode-segmentation = "1.10"
565unicode-script = "0.5.7"
566url = "2.2"
567uuid = { version = "1.1.2", features = ["v4", "v5", "v7", "serde"] }
568wasmparser = "0.221"
569wasm-encoder = "0.221"
570wasmtime = { version = "29", default-features = false, features = [
571    "async",
572    "demangle",
573    "runtime",
574    "cranelift",
575    "component-model",
576] }
577wasmtime-wasi = "29"
578which = "6.0.0"
579wit-component = "0.221"
580zed_llm_client = "0.4"
581zstd = "0.11"
582metal = "0.31"
583
584[workspace.dependencies.async-stripe]
585git = "https://github.com/zed-industries/async-stripe"
586rev = "3672dd4efb7181aa597bf580bf5a2f5d23db6735"
587default-features = false
588features = [
589    "runtime-tokio-hyper-rustls",
590    "billing",
591    "checkout",
592    "events",
593    # The features below are only enabled to get the `events` feature to build.
594    "chrono",
595    "connect",
596]
597
598[workspace.dependencies.windows]
599version = "0.58"
600features = [
601    "implement",
602    "Foundation_Numerics",
603    "Storage",
604    "System_Threading",
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_LibraryLoader",
624    "Win32_System_Memory",
625    "Win32_System_Ole",
626    "Win32_System_SystemInformation",
627    "Win32_System_SystemServices",
628    "Win32_System_Threading",
629    "Win32_System_WinRT",
630    "Win32_UI_Controls",
631    "Win32_UI_HiDpi",
632    "Win32_UI_Input_Ime",
633    "Win32_UI_Input_KeyboardAndMouse",
634    "Win32_UI_Shell",
635    "Win32_UI_Shell_Common",
636    "Win32_UI_WindowsAndMessaging",
637]
638
639# TODO livekit https://github.com/RustAudio/cpal/pull/891
640[patch.crates-io]
641cpal = { git = "https://github.com/zed-industries/cpal", rev = "fd8bc2fd39f1f5fdee5a0690656caff9a26d9d50" }
642real-async-tls = { git = "https://github.com/zed-industries/async-tls", rev = "1e759a4b5e370f87dc15e40756ac4f8815b61d9d", package = "async-tls" }
643
644[profile.dev]
645split-debuginfo = "unpacked"
646debug = "limited"
647codegen-units = 16
648
649[profile.dev.package]
650taffy = { opt-level = 3 }
651cranelift-codegen = { opt-level = 3 }
652resvg = { opt-level = 3 }
653rustybuzz = { opt-level = 3 }
654ttf-parser = { opt-level = 3 }
655wasmtime-cranelift = { opt-level = 3 }
656wasmtime = { opt-level = 3 }
657# Build single-source-file crates with cg=1 as it helps make `cargo build` of a whole workspace a bit faster
658activity_indicator = { codegen-units = 1 }
659assets = { codegen-units = 1 }
660breadcrumbs = { codegen-units = 1 }
661collections = { codegen-units = 1 }
662command_palette = { codegen-units = 1 }
663command_palette_hooks = { codegen-units = 1 }
664evals = { codegen-units = 1 }
665extension_cli = { codegen-units = 1 }
666feature_flags = { codegen-units = 1 }
667file_icons = { codegen-units = 1 }
668fsevent = { codegen-units = 1 }
669image_viewer = { codegen-units = 1 }
670inline_completion_button = { codegen-units = 1 }
671install_cli = { codegen-units = 1 }
672journal = { codegen-units = 1 }
673lmstudio = { codegen-units = 1 }
674menu = { codegen-units = 1 }
675notifications = { codegen-units = 1 }
676ollama = { codegen-units = 1 }
677outline = { codegen-units = 1 }
678paths = { codegen-units = 1 }
679prettier = { codegen-units = 1 }
680project_symbols = { codegen-units = 1 }
681refineable = { codegen-units = 1 }
682release_channel = { codegen-units = 1 }
683reqwest_client = { codegen-units = 1 }
684rich_text = { codegen-units = 1 }
685semantic_version = { codegen-units = 1 }
686session = { codegen-units = 1 }
687snippet = { codegen-units = 1 }
688snippets_ui = { codegen-units = 1 }
689sqlez_macros = { codegen-units = 1 }
690story = { codegen-units = 1 }
691supermaven_api = { codegen-units = 1 }
692telemetry_events = { codegen-units = 1 }
693theme_selector = { codegen-units = 1 }
694time_format = { codegen-units = 1 }
695ui_input = { codegen-units = 1 }
696zed_actions = { codegen-units = 1 }
697
698[profile.release]
699debug = "limited"
700lto = "thin"
701codegen-units = 1
702
703[profile.release.package]
704zed = { codegen-units = 16 }
705
706[profile.release-fast]
707inherits = "release"
708debug = "full"
709lto = false
710codegen-units = 16
711
712[workspace.lints.rust]
713unexpected_cfgs = { level = "allow" }
714
715[workspace.lints.clippy]
716dbg_macro = "deny"
717todo = "deny"
718
719# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
720# warning on this rule produces a lot of noise.
721single_range_in_vec_init = "allow"
722
723# These are all of the rules that currently have violations in the Zed
724# codebase.
725#
726# We'll want to drive this list down by either:
727# 1. fixing violations of the rule and begin enforcing it
728# 2. deciding we want to allow the rule permanently, at which point
729#    we should codify that separately above.
730#
731# This list shouldn't be added to; it should only get shorter.
732# =============================================================================
733
734# There are a bunch of rules currently failing in the `style` group, so
735# allow all of those, for now.
736style = { level = "allow", priority = -1 }
737
738# Temporary list of style lints that we've fixed so far.
739module_inception = { level = "deny" }
740question_mark = { level = "deny" }
741redundant_closure = { level = "deny" }
742# Individual rules that have violations in the codebase:
743type_complexity = "allow"
744# We often return trait objects from `new` functions.
745new_ret_no_self = { level = "allow" }
746# We have a few `next` functions that differ in lifetimes
747# compared to Iterator::next. Yet, clippy complains about those.
748should_implement_trait = { level = "allow" }
749let_underscore_future = "allow"
750
751[workspace.metadata.cargo-machete]
752ignored = ["bindgen", "cbindgen", "prost_build", "serde"]