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/haskell",
175    "extensions/html",
176    "extensions/lua",
177    "extensions/perplexity",
178    "extensions/proto",
179    "extensions/purescript",
180    "extensions/ruff",
181    "extensions/slash-commands-example",
182    "extensions/snippets",
183    "extensions/terraform",
184    "extensions/test-extension",
185    "extensions/toml",
186    "extensions/uiua",
187    "extensions/zig",
188
189    #
190    # Tooling
191    #
192
193    "tooling/xtask",
194]
195default-members = ["crates/zed"]
196
197[workspace.package]
198publish = false
199edition = "2021"
200
201[workspace.dependencies]
202
203#
204# Workspace member crates
205#
206
207activity_indicator = { path = "crates/activity_indicator" }
208ai = { path = "crates/ai" }
209anthropic = { path = "crates/anthropic" }
210askpass = { path = "crates/askpass" }
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" }
311prompt_store = { path = "crates/prompt_store" }
312proto = { path = "crates/proto" }
313recent_projects = { path = "crates/recent_projects" }
314refineable = { path = "crates/refineable" }
315release_channel = { path = "crates/release_channel" }
316remote = { path = "crates/remote" }
317remote_server = { path = "crates/remote_server" }
318repl = { path = "crates/repl" }
319reqwest_client = { path = "crates/reqwest_client" }
320rich_text = { path = "crates/rich_text" }
321rope = { path = "crates/rope" }
322rpc = { path = "crates/rpc" }
323scripting_tool = { path = "crates/scripting_tool" }
324search = { path = "crates/search" }
325semantic_index = { path = "crates/semantic_index" }
326semantic_version = { path = "crates/semantic_version" }
327session = { path = "crates/session" }
328settings = { path = "crates/settings" }
329settings_ui = { path = "crates/settings_ui" }
330snippet = { path = "crates/snippet" }
331snippet_provider = { path = "crates/snippet_provider" }
332snippets_ui = { path = "crates/snippets_ui" }
333sqlez = { path = "crates/sqlez" }
334sqlez_macros = { path = "crates/sqlez_macros" }
335story = { path = "crates/story" }
336storybook = { path = "crates/storybook" }
337streaming_diff = { path = "crates/streaming_diff" }
338sum_tree = { path = "crates/sum_tree" }
339supermaven = { path = "crates/supermaven" }
340supermaven_api = { path = "crates/supermaven_api" }
341tab_switcher = { path = "crates/tab_switcher" }
342task = { path = "crates/task" }
343tasks_ui = { path = "crates/tasks_ui" }
344telemetry = { path = "crates/telemetry" }
345telemetry_events = { path = "crates/telemetry_events" }
346terminal = { path = "crates/terminal" }
347terminal_view = { path = "crates/terminal_view" }
348text = { path = "crates/text" }
349theme = { path = "crates/theme" }
350theme_extension = { path = "crates/theme_extension" }
351theme_importer = { path = "crates/theme_importer" }
352theme_selector = { path = "crates/theme_selector" }
353time_format = { path = "crates/time_format" }
354title_bar = { path = "crates/title_bar" }
355toolchain_selector = { path = "crates/toolchain_selector" }
356ui = { path = "crates/ui" }
357ui_input = { path = "crates/ui_input" }
358ui_macros = { path = "crates/ui_macros" }
359util = { path = "crates/util" }
360util_macros = { path = "crates/util_macros" }
361vim = { path = "crates/vim" }
362vim_mode_setting = { path = "crates/vim_mode_setting" }
363welcome = { path = "crates/welcome" }
364workspace = { path = "crates/workspace" }
365worktree = { path = "crates/worktree" }
366zed = { path = "crates/zed" }
367zed_actions = { path = "crates/zed_actions" }
368zeta = { path = "crates/zeta" }
369
370#
371# External crates
372#
373
374aho-corasick = "1.1"
375alacritty_terminal = { git = "https://github.com/zed-industries/alacritty.git", rev = "03c2907b44b4189aac5fdeaea331f5aab5c7072e" }
376any_vec = "0.14"
377anyhow = "1.0.86"
378arrayvec = { version = "0.7.4", features = ["serde"] }
379ashpd = { version = "0.11", default-features = false, features = ["async-std"] }
380async-compat = "0.2.1"
381async-compression = { version = "0.4", features = ["gzip", "futures-io"] }
382async-dispatcher = "0.1"
383async-fs = "2.1"
384async-pipe = { git = "https://github.com/zed-industries/async-pipe-rs", rev = "82d00a04211cf4e1236029aa03e6b6ce2a74c553" }
385async-recursion = "1.0.0"
386async-tar = "0.5.0"
387async-trait = "0.1"
388async-tungstenite = "0.28"
389async-watch = "0.3.1"
390async_zip = { version = "0.0.17", features = ["deflate", "deflate64"] }
391aws-config = { version = "1.5.16", features = ["behavior-version-latest"] }
392aws-credential-types = { version = "1.2.1", features = ["hardcoded-credentials"] }
393aws-sdk-bedrockruntime = { version = "1.73.0", features = ["behavior-version-latest"] }
394aws-smithy-runtime-api = { version = "1.7.3", features = ["http-1x", "client"] }
395aws-smithy-types = { version = "1.2.13", features = ["http-body-1-x"] }
396base64 = "0.22"
397bitflags = "2.6.0"
398blade-graphics = { git = "https://github.com/kvark/blade", rev = "b16f5c7bd873c7126f48c82c39e7ae64602ae74f" }
399blade-macros = { git = "https://github.com/kvark/blade", rev = "b16f5c7bd873c7126f48c82c39e7ae64602ae74f" }
400blade-util = { git = "https://github.com/kvark/blade", rev = "b16f5c7bd873c7126f48c82c39e7ae64602ae74f" }
401naga = { version = "23.1.0", features = ["wgsl-in"] }
402blake3 = "1.5.3"
403bytes = "1.0"
404cargo_metadata = "0.19"
405cargo_toml = "0.21"
406chrono = { version = "0.4", features = ["serde"] }
407clap = { version = "4.4", features = ["derive"] }
408cocoa = "0.26"
409cocoa-foundation = "0.2.0"
410convert_case = "0.8.0"
411core-foundation = "0.9.3"
412core-foundation-sys = "0.8.6"
413ctor = "0.4.0"
414dashmap = "6.0"
415derive_more = "0.99.17"
416dirs = "4.0"
417ec4rs = "1.1"
418emojis = "0.6.1"
419env_logger = "0.11"
420exec = "0.3.1"
421fancy-regex = "0.14.0"
422fork = "0.2.0"
423futures = "0.3"
424futures-batch = "0.6.1"
425futures-lite = "1.13"
426# TODO: get back to regular versions when https://github.com/rust-lang/git2-rs/pull/1120 is released
427git2 = { git = "https://github.com/rust-lang/git2-rs", rev = "a3b90cb3756c1bb63e2317bf9cfa57838178de5c", default-features = false }
428globset = "0.4"
429handlebars = "4.3"
430heed = { version = "0.21.0", features = ["read-txn-no-tls"] }
431hex = "0.4.3"
432html5ever = "0.27.0"
433hyper = "0.14"
434http = "1.1"
435ignore = "0.4.22"
436image = "0.25.1"
437imara-diff = "0.1.8"
438indexmap = { version = "2.7.0", features = ["serde"] }
439indoc = "2"
440inventory = "0.3.19"
441itertools = "0.14.0"
442jsonwebtoken = "9.3"
443jupyter-protocol = { version = "0.6.0" }
444jupyter-websocket-client = { version = "0.9.0" }
445libc = "0.2"
446libsqlite3-sys = { version = "0.30.1", features = ["bundled"] }
447linkify = "0.10.0"
448linkme = "0.3.31"
449livekit = { git = "https://github.com/zed-industries/livekit-rust-sdks", rev = "811ceae29fabee455f110c56cd66b3f49a7e5003", features = [
450    "dispatcher",
451    "services-dispatcher",
452    "rustls-tls-native-roots",
453], default-features = false }
454log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
455markup5ever_rcdom = "0.3.0"
456mlua = { version = "0.10", features = ["lua54", "vendored"] }
457nanoid = "0.4"
458nbformat = { version = "0.10.0" }
459nix = "0.29"
460num-format = "0.4.4"
461ordered-float = "2.1.1"
462palette = { version = "0.7.5", default-features = false, features = ["std"] }
463parking_lot = "0.12.1"
464pathdiff = "0.2"
465pet = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
466pet-fs = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
467pet-pixi = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
468pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
469pet-core = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
470pet-poetry = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
471pet-reporter = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0" }
472postage = { version = "0.5", features = ["futures-traits"] }
473pretty_assertions = { version = "1.3.0", features = ["unstable"] }
474proc-macro2 = "1.0.93"
475profiling = "1"
476prost = "0.9"
477prost-build = "0.9"
478prost-types = "0.9"
479pulldown-cmark = { version = "0.12.0", default-features = false }
480quote = "1.0.9"
481rand = "0.8.5"
482rayon = "1.8"
483regex = "1.5"
484repair_json = "0.1.0"
485reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "fd110f6998da16bbca97b6dddda9be7827c50e29", default-features = false, features = [
486    "charset",
487    "http2",
488    "macos-system-configuration",
489    "rustls-tls-native-roots",
490    "socks",
491    "stream",
492] }
493rsa = "0.9.6"
494runtimelib = { version = "0.25.0", default-features = false, features = [
495    "async-dispatcher-runtime",
496] }
497rustc-demangle = "0.1.23"
498rust-embed = { version = "8.4", features = ["include-exclude"] }
499rustc-hash = "2.1.0"
500rustls = { version = "0.23.22" }
501rustls-platform-verifier = "0.5.0"
502schemars = { version = "0.8", features = ["impl_json_schema", "indexmap2"] }
503semver = "1.0"
504serde = { version = "1.0", features = ["derive", "rc"] }
505serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
506serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
507serde_json_lenient = { version = "0.2", features = [
508    "preserve_order",
509    "raw_value",
510] }
511serde_repr = "0.1"
512sha2 = "0.10"
513shellexpand = "2.1.0"
514shlex = "1.3.0"
515signal-hook = "0.3.17"
516simplelog = "0.12.2"
517smallvec = { version = "1.6", features = ["union"] }
518smol = "2.0"
519sqlformat = "0.2"
520streaming-iterator = "0.1"
521strsim = "0.11"
522strum = { version = "0.26.0", features = ["derive"] }
523subtle = "2.5.0"
524syn = { version = "1.0.72", features = ["full", "extra-traits"] }
525sys-locale = "0.3.1"
526sysinfo = "0.31.0"
527take-until = "0.2.0"
528tempfile = "3.9.0"
529thiserror = "1.0.29"
530tiktoken-rs = "0.6.0"
531time = { version = "0.3", features = [
532    "macros",
533    "parsing",
534    "serde",
535    "serde-well-known",
536    "formatting",
537] }
538tiny_http = "0.8"
539toml = "0.8"
540tokio = { version = "1" }
541tower-http = "0.4.4"
542tree-sitter = { version = "0.25.3", features = ["wasm"] }
543tree-sitter-bash = "0.23"
544tree-sitter-c = "0.23"
545tree-sitter-cpp = "0.23"
546tree-sitter-css = "0.23"
547tree-sitter-elixir = "0.3"
548tree-sitter-embedded-template = "0.23.0"
549tree-sitter-gitcommit = { git = "https://github.com/zed-industries/tree-sitter-git-commit", rev = "88309716a69dd13ab83443721ba6e0b491d37ee9" }
550tree-sitter-go = "0.23"
551tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c", package = "tree-sitter-gomod" }
552tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
553tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
554tree-sitter-diff = "0.1.0"
555tree-sitter-html = "0.23"
556tree-sitter-jsdoc = "0.23"
557tree-sitter-json = "0.24"
558tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
559tree-sitter-python = "0.23"
560tree-sitter-regex = "0.24"
561tree-sitter-ruby = "0.23"
562tree-sitter-rust = "0.23"
563tree-sitter-typescript = "0.23"
564tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
565unicase = "2.6"
566unindent = "0.2.0"
567unicode-segmentation = "1.10"
568unicode-script = "0.5.7"
569url = "2.2"
570uuid = { version = "1.1.2", features = ["v4", "v5", "v7", "serde"] }
571wasmparser = "0.221"
572wasm-encoder = "0.221"
573wasmtime = { version = "29", default-features = false, features = [
574    "async",
575    "demangle",
576    "runtime",
577    "cranelift",
578    "component-model",
579] }
580wasmtime-wasi = "29"
581which = "6.0.0"
582wit-component = "0.221"
583zed_llm_client = "0.4"
584zstd = "0.11"
585metal = "0.31"
586
587[workspace.dependencies.async-stripe]
588git = "https://github.com/zed-industries/async-stripe"
589rev = "3672dd4efb7181aa597bf580bf5a2f5d23db6735"
590default-features = false
591features = [
592    "runtime-tokio-hyper-rustls",
593    "billing",
594    "checkout",
595    "events",
596    # The features below are only enabled to get the `events` feature to build.
597    "chrono",
598    "connect",
599]
600
601[workspace.dependencies.windows]
602version = "0.58"
603features = [
604    "implement",
605    "Foundation_Collections",
606    "Foundation_Numerics",
607    "Storage",
608    "System_Threading",
609    "UI_StartScreen",
610    "UI_ViewManagement",
611    "Wdk_System_SystemServices",
612    "Win32_Globalization",
613    "Win32_Graphics_Direct2D",
614    "Win32_Graphics_Direct2D_Common",
615    "Win32_Graphics_DirectWrite",
616    "Win32_Graphics_Dwm",
617    "Win32_Graphics_Dxgi_Common",
618    "Win32_Graphics_Gdi",
619    "Win32_Graphics_Imaging",
620    "Win32_Graphics_Imaging_D2D",
621    "Win32_Security",
622    "Win32_Security_Credentials",
623    "Win32_Storage_FileSystem",
624    "Win32_System_Com",
625    "Win32_System_Com_StructuredStorage",
626    "Win32_System_Console",
627    "Win32_System_DataExchange",
628    "Win32_System_LibraryLoader",
629    "Win32_System_Memory",
630    "Win32_System_Ole",
631    "Win32_System_SystemInformation",
632    "Win32_System_SystemServices",
633    "Win32_System_Threading",
634    "Win32_System_WinRT",
635    "Win32_UI_Controls",
636    "Win32_UI_HiDpi",
637    "Win32_UI_Input_Ime",
638    "Win32_UI_Input_KeyboardAndMouse",
639    "Win32_UI_Shell",
640    "Win32_UI_Shell_Common",
641    "Win32_UI_WindowsAndMessaging",
642]
643
644# TODO livekit https://github.com/RustAudio/cpal/pull/891
645[patch.crates-io]
646cpal = { git = "https://github.com/zed-industries/cpal", rev = "fd8bc2fd39f1f5fdee5a0690656caff9a26d9d50" }
647real-async-tls = { git = "https://github.com/zed-industries/async-tls", rev = "1e759a4b5e370f87dc15e40756ac4f8815b61d9d", package = "async-tls" }
648
649[profile.dev]
650split-debuginfo = "unpacked"
651debug = "limited"
652codegen-units = 16
653
654[profile.dev.package]
655taffy = { opt-level = 3 }
656cranelift-codegen = { opt-level = 3 }
657resvg = { opt-level = 3 }
658rustybuzz = { opt-level = 3 }
659ttf-parser = { opt-level = 3 }
660wasmtime-cranelift = { opt-level = 3 }
661wasmtime = { opt-level = 3 }
662# Build single-source-file crates with cg=1 as it helps make `cargo build` of a whole workspace a bit faster
663activity_indicator = { codegen-units = 1 }
664assets = { codegen-units = 1 }
665breadcrumbs = { codegen-units = 1 }
666collections = { codegen-units = 1 }
667command_palette = { codegen-units = 1 }
668command_palette_hooks = { codegen-units = 1 }
669evals = { codegen-units = 1 }
670extension_cli = { codegen-units = 1 }
671feature_flags = { codegen-units = 1 }
672file_icons = { codegen-units = 1 }
673fsevent = { codegen-units = 1 }
674image_viewer = { codegen-units = 1 }
675inline_completion_button = { codegen-units = 1 }
676install_cli = { codegen-units = 1 }
677journal = { codegen-units = 1 }
678lmstudio = { codegen-units = 1 }
679menu = { codegen-units = 1 }
680notifications = { codegen-units = 1 }
681ollama = { codegen-units = 1 }
682outline = { codegen-units = 1 }
683paths = { codegen-units = 1 }
684prettier = { codegen-units = 1 }
685project_symbols = { codegen-units = 1 }
686refineable = { codegen-units = 1 }
687release_channel = { codegen-units = 1 }
688reqwest_client = { codegen-units = 1 }
689rich_text = { codegen-units = 1 }
690semantic_version = { codegen-units = 1 }
691session = { codegen-units = 1 }
692snippet = { codegen-units = 1 }
693snippets_ui = { codegen-units = 1 }
694sqlez_macros = { codegen-units = 1 }
695story = { codegen-units = 1 }
696supermaven_api = { codegen-units = 1 }
697telemetry_events = { codegen-units = 1 }
698theme_selector = { codegen-units = 1 }
699time_format = { codegen-units = 1 }
700ui_input = { codegen-units = 1 }
701zed_actions = { codegen-units = 1 }
702
703[profile.release]
704debug = "limited"
705lto = "thin"
706codegen-units = 1
707
708[profile.release.package]
709zed = { codegen-units = 16 }
710
711[profile.release-fast]
712inherits = "release"
713debug = "full"
714lto = false
715codegen-units = 16
716
717[workspace.lints.rust]
718unexpected_cfgs = { level = "allow" }
719
720[workspace.lints.clippy]
721dbg_macro = "deny"
722todo = "deny"
723
724# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
725# warning on this rule produces a lot of noise.
726single_range_in_vec_init = "allow"
727
728# These are all of the rules that currently have violations in the Zed
729# codebase.
730#
731# We'll want to drive this list down by either:
732# 1. fixing violations of the rule and begin enforcing it
733# 2. deciding we want to allow the rule permanently, at which point
734#    we should codify that separately above.
735#
736# This list shouldn't be added to; it should only get shorter.
737# =============================================================================
738
739# There are a bunch of rules currently failing in the `style` group, so
740# allow all of those, for now.
741style = { level = "allow", priority = -1 }
742
743# Temporary list of style lints that we've fixed so far.
744module_inception = { level = "deny" }
745question_mark = { level = "deny" }
746redundant_closure = { level = "deny" }
747# Individual rules that have violations in the codebase:
748type_complexity = "allow"
749# We often return trait objects from `new` functions.
750new_ret_no_self = { level = "allow" }
751# We have a few `next` functions that differ in lifetimes
752# compared to Iterator::next. Yet, clippy complains about those.
753should_implement_trait = { level = "allow" }
754let_underscore_future = "allow"
755
756[workspace.metadata.cargo-machete]
757ignored = ["bindgen", "cbindgen", "prost_build", "serde", "component", "linkme"]