Cargo.toml

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