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