Cargo.toml

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