Cargo.toml

  1[workspace]
  2resolver = "2"
  3members = [
  4    "crates/activity_indicator",
  5    "crates/anthropic",
  6    "crates/assets",
  7    "crates/assistant",
  8    "crates/assistant_slash_command",
  9    "crates/audio",
 10    "crates/auto_update",
 11    "crates/breadcrumbs",
 12    "crates/call",
 13    "crates/channel",
 14    "crates/cli",
 15    "crates/client",
 16    "crates/clock",
 17    "crates/collab",
 18    "crates/collab_ui",
 19    "crates/collections",
 20    "crates/command_palette",
 21    "crates/command_palette_hooks",
 22    "crates/context_servers",
 23    "crates/copilot",
 24    "crates/db",
 25    "crates/dev_server_projects",
 26    "crates/diagnostics",
 27    "crates/docs_preprocessor",
 28    "crates/editor",
 29    "crates/extension",
 30    "crates/extension_api",
 31    "crates/extension_cli",
 32    "crates/extensions_ui",
 33    "crates/feature_flags",
 34    "crates/feedback",
 35    "crates/file_finder",
 36    "crates/file_icons",
 37    "crates/fs",
 38    "crates/fsevent",
 39    "crates/fuzzy",
 40    "crates/git",
 41    "crates/git_hosting_providers",
 42    "crates/go_to_line",
 43    "crates/google_ai",
 44    "crates/gpui",
 45    "crates/gpui_macros",
 46    "crates/headless",
 47    "crates/html_to_markdown",
 48    "crates/http_client",
 49    "crates/image_viewer",
 50    "crates/indexed_docs",
 51    "crates/inline_completion_button",
 52    "crates/install_cli",
 53    "crates/journal",
 54    "crates/language",
 55    "crates/language_model",
 56    "crates/language_selector",
 57    "crates/language_tools",
 58    "crates/languages",
 59    "crates/live_kit_client",
 60    "crates/live_kit_server",
 61    "crates/lsp",
 62    "crates/markdown",
 63    "crates/markdown_preview",
 64    "crates/media",
 65    "crates/menu",
 66    "crates/multi_buffer",
 67    "crates/node_runtime",
 68    "crates/notifications",
 69    "crates/ollama",
 70    "crates/open_ai",
 71    "crates/outline",
 72    "crates/outline_panel",
 73    "crates/paths",
 74    "crates/picker",
 75    "crates/prettier",
 76    "crates/project",
 77    "crates/project_panel",
 78    "crates/project_symbols",
 79    "crates/proto",
 80    "crates/quick_action_bar",
 81    "crates/recent_projects",
 82    "crates/refineable",
 83    "crates/refineable/derive_refineable",
 84    "crates/release_channel",
 85    "crates/remote",
 86    "crates/remote_server",
 87    "crates/repl",
 88    "crates/rich_text",
 89    "crates/rope",
 90    "crates/rpc",
 91    "crates/search",
 92    "crates/semantic_index",
 93    "crates/semantic_version",
 94    "crates/session",
 95    "crates/settings",
 96    "crates/settings_ui",
 97    "crates/snippet",
 98    "crates/snippet_provider",
 99    "crates/sqlez",
100    "crates/sqlez_macros",
101    "crates/story",
102    "crates/storybook",
103    "crates/sum_tree",
104    "crates/supermaven",
105    "crates/supermaven_api",
106    "crates/tab_switcher",
107    "crates/task",
108    "crates/tasks_ui",
109    "crates/telemetry_events",
110    "crates/terminal",
111    "crates/terminal_view",
112    "crates/text",
113    "crates/theme",
114    "crates/theme_importer",
115    "crates/theme_selector",
116    "crates/time_format",
117    "crates/title_bar",
118    "crates/ui",
119    "crates/ui_input",
120    "crates/util",
121    "crates/vcs_menu",
122    "crates/vim",
123    "crates/welcome",
124    "crates/workspace",
125    "crates/worktree",
126    "crates/zed",
127    "crates/zed_actions",
128
129    #
130    # Extensions
131    #
132
133    "extensions/astro",
134    "extensions/clojure",
135    "extensions/csharp",
136    "extensions/dart",
137    "extensions/deno",
138    "extensions/elixir",
139    "extensions/elm",
140    "extensions/emmet",
141    "extensions/erlang",
142    "extensions/gleam",
143    "extensions/glsl",
144    "extensions/haskell",
145    "extensions/html",
146    "extensions/lua",
147    "extensions/ocaml",
148    "extensions/php",
149    "extensions/perplexity",
150    "extensions/prisma",
151    "extensions/purescript",
152    "extensions/ruff",
153    "extensions/ruby",
154    "extensions/slash-commands-example",
155    "extensions/snippets",
156    "extensions/svelte",
157    "extensions/terraform",
158    "extensions/test-extension",
159    "extensions/toml",
160    "extensions/uiua",
161    "extensions/vue",
162    "extensions/zig",
163
164    #
165    # Tooling
166    #
167
168    "tooling/xtask",
169]
170default-members = ["crates/zed"]
171
172[workspace.dependencies]
173#
174# Workspace member crates
175#
176
177activity_indicator = { path = "crates/activity_indicator" }
178ai = { path = "crates/ai" }
179anthropic = { path = "crates/anthropic" }
180assets = { path = "crates/assets" }
181assistant = { path = "crates/assistant" }
182assistant_slash_command = { path = "crates/assistant_slash_command" }
183audio = { path = "crates/audio" }
184auto_update = { path = "crates/auto_update" }
185breadcrumbs = { path = "crates/breadcrumbs" }
186call = { path = "crates/call" }
187channel = { path = "crates/channel" }
188cli = { path = "crates/cli" }
189client = { path = "crates/client" }
190clock = { path = "crates/clock" }
191collab = { path = "crates/collab" }
192collab_ui = { path = "crates/collab_ui" }
193collections = { path = "crates/collections" }
194command_palette = { path = "crates/command_palette" }
195command_palette_hooks = { path = "crates/command_palette_hooks" }
196context_servers = { path = "crates/context_servers" }
197copilot = { path = "crates/copilot" }
198db = { path = "crates/db" }
199dev_server_projects = { path = "crates/dev_server_projects" }
200diagnostics = { path = "crates/diagnostics" }
201editor = { path = "crates/editor" }
202extension = { path = "crates/extension" }
203extensions_ui = { path = "crates/extensions_ui" }
204feature_flags = { path = "crates/feature_flags" }
205feedback = { path = "crates/feedback" }
206file_finder = { path = "crates/file_finder" }
207file_icons = { path = "crates/file_icons" }
208fs = { path = "crates/fs" }
209fsevent = { path = "crates/fsevent" }
210fuzzy = { path = "crates/fuzzy" }
211git = { path = "crates/git" }
212git_hosting_providers = { path = "crates/git_hosting_providers" }
213go_to_line = { path = "crates/go_to_line" }
214google_ai = { path = "crates/google_ai" }
215gpui = { path = "crates/gpui" }
216gpui_macros = { path = "crates/gpui_macros" }
217handlebars = "4.3"
218headless = { path = "crates/headless" }
219html_to_markdown = { path = "crates/html_to_markdown" }
220http_client = { path = "crates/http_client" }
221image_viewer = { path = "crates/image_viewer" }
222indexed_docs = { path = "crates/indexed_docs" }
223inline_completion_button = { path = "crates/inline_completion_button" }
224install_cli = { path = "crates/install_cli" }
225journal = { path = "crates/journal" }
226language = { path = "crates/language" }
227language_model = { path = "crates/language_model" }
228language_selector = { path = "crates/language_selector" }
229language_tools = { path = "crates/language_tools" }
230languages = { path = "crates/languages" }
231live_kit_client = { path = "crates/live_kit_client" }
232live_kit_server = { path = "crates/live_kit_server" }
233lsp = { path = "crates/lsp" }
234markdown = { path = "crates/markdown" }
235markdown_preview = { path = "crates/markdown_preview" }
236media = { path = "crates/media" }
237menu = { path = "crates/menu" }
238multi_buffer = { path = "crates/multi_buffer" }
239node_runtime = { path = "crates/node_runtime" }
240notifications = { path = "crates/notifications" }
241ollama = { path = "crates/ollama" }
242open_ai = { path = "crates/open_ai" }
243outline = { path = "crates/outline" }
244outline_panel = { path = "crates/outline_panel" }
245paths = { path = "crates/paths" }
246picker = { path = "crates/picker" }
247plugin = { path = "crates/plugin" }
248plugin_macros = { path = "crates/plugin_macros" }
249prettier = { path = "crates/prettier" }
250project = { path = "crates/project" }
251project_panel = { path = "crates/project_panel" }
252project_symbols = { path = "crates/project_symbols" }
253proto = { path = "crates/proto" }
254quick_action_bar = { path = "crates/quick_action_bar" }
255recent_projects = { path = "crates/recent_projects" }
256refineable = { path = "crates/refineable" }
257release_channel = { path = "crates/release_channel" }
258remote = { path = "crates/remote" }
259remote_server = { path = "crates/remote_server" }
260repl = { path = "crates/repl" }
261rich_text = { path = "crates/rich_text" }
262rope = { path = "crates/rope" }
263rpc = { path = "crates/rpc" }
264search = { path = "crates/search" }
265semantic_index = { path = "crates/semantic_index" }
266semantic_version = { path = "crates/semantic_version" }
267session = { path = "crates/session" }
268settings = { path = "crates/settings" }
269settings_ui = { path = "crates/settings_ui" }
270snippet = { path = "crates/snippet" }
271snippet_provider = { path = "crates/snippet_provider" }
272sqlez = { path = "crates/sqlez" }
273sqlez_macros = { path = "crates/sqlez_macros" }
274story = { path = "crates/story" }
275storybook = { path = "crates/storybook" }
276sum_tree = { path = "crates/sum_tree" }
277supermaven = { path = "crates/supermaven" }
278supermaven_api = { path = "crates/supermaven_api" }
279tab_switcher = { path = "crates/tab_switcher" }
280task = { path = "crates/task" }
281tasks_ui = { path = "crates/tasks_ui" }
282telemetry_events = { path = "crates/telemetry_events" }
283terminal = { path = "crates/terminal" }
284terminal_view = { path = "crates/terminal_view" }
285text = { path = "crates/text" }
286theme = { path = "crates/theme" }
287theme_importer = { path = "crates/theme_importer" }
288theme_selector = { path = "crates/theme_selector" }
289time_format = { path = "crates/time_format" }
290title_bar = { path = "crates/title_bar" }
291ui = { path = "crates/ui" }
292ui_input = { path = "crates/ui_input" }
293util = { path = "crates/util" }
294vcs_menu = { path = "crates/vcs_menu" }
295vim = { path = "crates/vim" }
296welcome = { path = "crates/welcome" }
297workspace = { path = "crates/workspace" }
298worktree = { path = "crates/worktree" }
299zed = { path = "crates/zed" }
300zed_actions = { path = "crates/zed_actions" }
301
302#
303# External crates
304#
305
306aho-corasick = "1.1"
307alacritty_terminal = { git = "https://github.com/alacritty/alacritty", rev = "91d034ff8b53867143c005acfaa14609147c9a2c" }
308any_vec = "0.14"
309anyhow = "1.0.86"
310ashpd = "0.9.1"
311async-compression = { version = "0.4", features = ["gzip", "futures-io"] }
312async-dispatcher = "0.1"
313async-fs = "1.6"
314async-pipe = { git = "https://github.com/zed-industries/async-pipe-rs", rev = "82d00a04211cf4e1236029aa03e6b6ce2a74c553" }
315async-recursion = "1.0.0"
316async-tar = "0.4.2"
317async-trait = "0.1"
318async-tungstenite = "0.23"
319async-watch = "0.3.1"
320async_zip = { version = "0.0.17", features = ["deflate", "deflate64"] }
321base64 = "0.22"
322bitflags = "2.6.0"
323blade-graphics = { git = "https://github.com/kvark/blade", rev = "bf40d4f91fb56031e8676376dba2fc021b3e8eaf" }
324blade-macros = { git = "https://github.com/kvark/blade", rev = "bf40d4f91fb56031e8676376dba2fc021b3e8eaf" }
325blade-util = { git = "https://github.com/kvark/blade", rev = "bf40d4f91fb56031e8676376dba2fc021b3e8eaf" }
326cargo_metadata = "0.18"
327cargo_toml = "0.20"
328chrono = { version = "0.4", features = ["serde"] }
329clap = { version = "4.4", features = ["derive"] }
330clickhouse = "0.11.6"
331cocoa = "0.25"
332core-foundation = "0.9.3"
333core-foundation-sys = "0.8.6"
334ctor = "0.2.6"
335dashmap = "6.0"
336derive_more = "0.99.17"
337dirs = "4.0"
338emojis = "0.6.1"
339env_logger = "0.11"
340exec = "0.3.1"
341fork = "0.1.23"
342futures = "0.3"
343futures-batch = "0.6.1"
344futures-lite = "1.13"
345git2 = { version = "0.19", default-features = false }
346globset = "0.4"
347heed = { version = "0.20.1", features = ["read-txn-no-tls"] }
348hex = "0.4.3"
349hyper = "0.14"
350html5ever = "0.27.0"
351ignore = "0.4.22"
352image = "0.25.1"
353indexmap = { version = "1.6.2", features = ["serde"] }
354indoc = "2"
355# We explicitly disable http2 support in isahc.
356isahc = { version = "1.7.2", default-features = false, features = [
357    "text-decoding",
358] }
359itertools = "0.11.0"
360jsonwebtoken = "9.3"
361libc = "0.2"
362linkify = "0.10.0"
363log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
364markup5ever_rcdom = "0.3.0"
365nanoid = "0.4"
366nix = "0.28"
367num-format = "0.4.4"
368once_cell = "1.19.0"
369ordered-float = "2.1.1"
370palette = { version = "0.7.5", default-features = false, features = ["std"] }
371parking_lot = "0.12.1"
372pathdiff = "0.2"
373profiling = "1"
374postage = { version = "0.5", features = ["futures-traits"] }
375pretty_assertions = "1.3.0"
376prost = "0.9"
377prost-build = "0.9"
378prost-types = "0.9"
379pulldown-cmark = { version = "0.10.0", default-features = false }
380rand = "0.8.5"
381regex = "1.5"
382repair_json = "0.1.0"
383rsa = "0.9.6"
384runtimelib = { version = "0.15", default-features = false, features = [
385    "async-dispatcher-runtime",
386] }
387rusqlite = { version = "0.29.0", features = ["blob", "array", "modern_sqlite"] }
388rustc-demangle = "0.1.23"
389rust-embed = { version = "8.4", features = ["include-exclude"] }
390schemars = { version = "0.8", features = ["impl_json_schema"] }
391semver = "1.0"
392serde = { version = "1.0", features = ["derive", "rc"] }
393serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
394serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
395serde_json_lenient = { version = "0.1", features = [
396    "preserve_order",
397    "raw_value",
398] }
399serde_repr = "0.1"
400sha2 = "0.10"
401shellexpand = "2.1.0"
402shlex = "1.3.0"
403signal-hook = "0.3.17"
404similar = "1.3"
405simplelog = "0.12.2"
406smallvec = { version = "1.6", features = ["union"] }
407smol = "1.2"
408strsim = "0.11"
409strum = { version = "0.25.0", features = ["derive"] }
410subtle = "2.5.0"
411sys-locale = "0.3.1"
412sysinfo = "0.30.7"
413tempfile = "3.9.0"
414thiserror = "1.0.29"
415tiktoken-rs = "0.5.9"
416time = { version = "0.3", features = [
417    "macros",
418    "parsing",
419    "serde",
420    "serde-well-known",
421    "formatting",
422] }
423tiny_http = "0.8"
424toml = "0.8"
425tokio = { version = "1", features = ["full"] }
426tower-http = "0.4.4"
427tree-sitter = { version = "0.22", features = ["wasm"] }
428tree-sitter-bash = "0.21"
429tree-sitter-c = "0.21"
430tree-sitter-cpp = "0.22"
431tree-sitter-css = "0.21"
432tree-sitter-elixir = "0.2"
433tree-sitter-embedded-template = "0.20.0"
434tree-sitter-go = "0.21"
435tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "1f55029bacd0a6a11f6eb894c4312d429dcf735c", package = "tree-sitter-gomod" }
436tree-sitter-gowork = { git = "https://github.com/d1y/tree-sitter-go-work", rev = "dcbabff454703c3a4bc98a23cf8778d4be46fd22" }
437tree-sitter-heex = { git = "https://github.com/phoenixframework/tree-sitter-heex", rev = "6dd0303acf7138dd2b9b432a229e16539581c701" }
438tree-sitter-html = "0.20"
439tree-sitter-jsdoc = "0.21"
440tree-sitter-json = "0.21"
441tree-sitter-md = { git = "https://github.com/zed-industries/tree-sitter-markdown", rev = "e3855e37f8f2c71aa7513c18a9c95fb7461b1b10" }
442protols-tree-sitter-proto = "0.2"
443tree-sitter-python = "0.21"
444tree-sitter-regex = "0.21"
445tree-sitter-ruby = "0.21"
446tree-sitter-rust = "0.21"
447tree-sitter-typescript = "0.21"
448tree-sitter-yaml = "0.6"
449unindent = "0.1.7"
450unicase = "2.6"
451unicode-segmentation = "1.10"
452url = "2.2"
453uuid = { version = "1.1.2", features = ["v4", "v5", "serde"] }
454wasmparser = "0.201"
455wasm-encoder = "0.201"
456wasmtime = { version = "21.0.1", default-features = false, features = [
457    "async",
458    "demangle",
459    "runtime",
460    "cranelift",
461    "component-model",
462] }
463wasmtime-wasi = "21.0.1"
464which = "6.0.0"
465wit-component = "0.201"
466
467[workspace.dependencies.async-stripe]
468version = "0.38"
469default-features = false
470features = [
471    "runtime-tokio-hyper-rustls",
472    "billing",
473    "checkout",
474    "events",
475    # The features below are only enabled to get the `events` feature to build.
476    "chrono",
477    "connect",
478]
479
480[workspace.dependencies.windows]
481version = "0.58"
482features = [
483    "implement",
484    "Foundation_Numerics",
485    "System",
486    "System_Threading",
487    "UI_ViewManagement",
488    "Wdk_System_SystemServices",
489    "Win32_Globalization",
490    "Win32_Graphics_Direct2D",
491    "Win32_Graphics_Direct2D_Common",
492    "Win32_Graphics_DirectWrite",
493    "Win32_Graphics_Dwm",
494    "Win32_Graphics_Dxgi_Common",
495    "Win32_Graphics_Gdi",
496    "Win32_Graphics_Imaging",
497    "Win32_Graphics_Imaging_D2D",
498    "Win32_Security",
499    "Win32_Security_Credentials",
500    "Win32_Storage_FileSystem",
501    "Win32_System_Com",
502    "Win32_System_Com_StructuredStorage",
503    "Win32_System_DataExchange",
504    "Win32_System_LibraryLoader",
505    "Win32_System_Memory",
506    "Win32_System_Ole",
507    "Win32_System_SystemInformation",
508    "Win32_System_SystemServices",
509    "Win32_System_Threading",
510    "Win32_System_WinRT",
511    "Win32_UI_Controls",
512    "Win32_UI_HiDpi",
513    "Win32_UI_Input_Ime",
514    "Win32_UI_Input_KeyboardAndMouse",
515    "Win32_UI_Shell",
516    "Win32_UI_WindowsAndMessaging",
517]
518
519[patch.crates-io]
520# Patch Tree-sitter for updated wasmtime.
521tree-sitter = { git = "https://github.com/tree-sitter/tree-sitter", rev = "7f4a57817d58a2f134fe863674acad6bbf007228" }
522
523[profile.dev]
524split-debuginfo = "unpacked"
525debug = "limited"
526codegen-units = 16
527
528[profile.dev.package]
529taffy = { opt-level = 3 }
530cranelift-codegen = { opt-level = 3 }
531resvg = { opt-level = 3 }
532rustybuzz = { opt-level = 3 }
533ttf-parser = { opt-level = 3 }
534wasmtime-cranelift = { opt-level = 3 }
535wasmtime = { opt-level = 3 }
536
537[profile.release]
538debug = "limited"
539lto = "thin"
540codegen-units = 1
541
542[profile.release.package]
543zed = { codegen-units = 16 }
544
545[profile.release-fast]
546inherits = "release"
547debug = "full"
548lto = false
549codegen-units = 16
550
551[workspace.lints.clippy]
552dbg_macro = "deny"
553todo = "deny"
554
555# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
556# warning on this rule produces a lot of noise.
557single_range_in_vec_init = "allow"
558
559# These are all of the rules that currently have violations in the Zed
560# codebase.
561#
562# We'll want to drive this list down by either:
563# 1. fixing violations of the rule and begin enforcing it
564# 2. deciding we want to allow the rule permanently, at which point
565#    we should codify that separately above.
566#
567# This list shouldn't be added to; it should only get shorter.
568# =============================================================================
569
570# There are a bunch of rules currently failing in the `style` group, so
571# allow all of those, for now.
572style = { level = "allow", priority = -1 }
573
574# Individual rules that have violations in the codebase:
575type_complexity = "allow"
576
577[workspace.metadata.cargo-machete]
578ignored = ["bindgen", "cbindgen", "prost_build", "serde"]