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