Cargo.toml

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