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