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/editor",
 28    "crates/extension",
 29    "crates/extension_api",
 30    "crates/extension_cli",
 31    "crates/extensions_ui",
 32    "crates/feature_flags",
 33    "crates/feedback",
 34    "crates/file_finder",
 35    "crates/file_icons",
 36    "crates/fs",
 37    "crates/fsevent",
 38    "crates/fuzzy",
 39    "crates/git",
 40    "crates/git_hosting_providers",
 41    "crates/go_to_line",
 42    "crates/google_ai",
 43    "crates/gpui",
 44    "crates/gpui_macros",
 45    "crates/headless",
 46    "crates/html_to_markdown",
 47    "crates/http_client",
 48    "crates/image_viewer",
 49    "crates/indexed_docs",
 50    "crates/inline_completion_button",
 51    "crates/install_cli",
 52    "crates/journal",
 53    "crates/language",
 54    "crates/language_model",
 55    "crates/language_selector",
 56    "crates/language_tools",
 57    "crates/languages",
 58    "crates/live_kit_client",
 59    "crates/live_kit_server",
 60    "crates/lsp",
 61    "crates/markdown",
 62    "crates/markdown_preview",
 63    "crates/media",
 64    "crates/menu",
 65    "crates/multi_buffer",
 66    "crates/node_runtime",
 67    "crates/notifications",
 68    "crates/ollama",
 69    "crates/open_ai",
 70    "crates/outline",
 71    "crates/outline_panel",
 72    "crates/paths",
 73    "crates/performance",
 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" }
246performance = { path = "crates/performance" }
247picker = { path = "crates/picker" }
248plugin = { path = "crates/plugin" }
249plugin_macros = { path = "crates/plugin_macros" }
250prettier = { path = "crates/prettier" }
251project = { path = "crates/project" }
252project_panel = { path = "crates/project_panel" }
253project_symbols = { path = "crates/project_symbols" }
254proto = { path = "crates/proto" }
255quick_action_bar = { path = "crates/quick_action_bar" }
256recent_projects = { path = "crates/recent_projects" }
257refineable = { path = "crates/refineable" }
258release_channel = { path = "crates/release_channel" }
259remote = { path = "crates/remote" }
260remote_server = { path = "crates/remote_server" }
261repl = { path = "crates/repl" }
262rich_text = { path = "crates/rich_text" }
263rope = { path = "crates/rope" }
264rpc = { path = "crates/rpc" }
265search = { path = "crates/search" }
266semantic_index = { path = "crates/semantic_index" }
267semantic_version = { path = "crates/semantic_version" }
268session = { path = "crates/session" }
269settings = { path = "crates/settings" }
270settings_ui = { path = "crates/settings_ui" }
271snippet = { path = "crates/snippet" }
272snippet_provider = { path = "crates/snippet_provider" }
273sqlez = { path = "crates/sqlez" }
274sqlez_macros = { path = "crates/sqlez_macros" }
275story = { path = "crates/story" }
276storybook = { path = "crates/storybook" }
277sum_tree = { path = "crates/sum_tree" }
278supermaven = { path = "crates/supermaven" }
279supermaven_api = { path = "crates/supermaven_api" }
280tab_switcher = { path = "crates/tab_switcher" }
281task = { path = "crates/task" }
282tasks_ui = { path = "crates/tasks_ui" }
283telemetry_events = { path = "crates/telemetry_events" }
284terminal = { path = "crates/terminal" }
285terminal_view = { path = "crates/terminal_view" }
286text = { path = "crates/text" }
287theme = { path = "crates/theme" }
288theme_importer = { path = "crates/theme_importer" }
289theme_selector = { path = "crates/theme_selector" }
290time_format = { path = "crates/time_format" }
291title_bar = { path = "crates/title_bar" }
292ui = { path = "crates/ui" }
293ui_input = { path = "crates/ui_input" }
294util = { path = "crates/util" }
295vcs_menu = { path = "crates/vcs_menu" }
296vim = { path = "crates/vim" }
297welcome = { path = "crates/welcome" }
298workspace = { path = "crates/workspace" }
299worktree = { path = "crates/worktree" }
300zed = { path = "crates/zed" }
301zed_actions = { path = "crates/zed_actions" }
302
303#
304# External crates
305#
306
307aho-corasick = "1.1"
308alacritty_terminal = { git = "https://github.com/alacritty/alacritty", rev = "cacdb5bb3b72bad2c729227537979d95af75978f" }
309any_vec = "0.14"
310anyhow = "1.0.86"
311ashpd = "0.9.1"
312async-compression = { version = "0.4", features = ["gzip", "futures-io"] }
313async-dispatcher = "0.1"
314async-fs = "1.6"
315async-pipe = { git = "https://github.com/zed-industries/async-pipe-rs", rev = "82d00a04211cf4e1236029aa03e6b6ce2a74c553" }
316async-recursion = "1.0.0"
317async-tar = "0.4.2"
318async-trait = "0.1"
319async-tungstenite = "0.23"
320async-watch = "0.3.1"
321async_zip = { version = "0.0.17", features = ["deflate", "deflate64"] }
322base64 = "0.22"
323bitflags = "2.6.0"
324blade-graphics = { git = "https://github.com/kvark/blade", rev = "ac25c77ed8d86c386a541c935ffe0a0f6024e701" }
325blade-macros = { git = "https://github.com/kvark/blade", rev = "ac25c77ed8d86c386a541c935ffe0a0f6024e701" }
326blade-util = { git = "https://github.com/kvark/blade", rev = "ac25c77ed8d86c386a541c935ffe0a0f6024e701" }
327cargo_metadata = "0.18"
328cargo_toml = "0.20"
329chrono = { version = "0.4", features = ["serde"] }
330clap = { version = "4.4", features = ["derive"] }
331clickhouse = "0.11.6"
332cocoa = "0.25"
333core-foundation = "0.9.3"
334core-foundation-sys = "0.8.6"
335ctor = "0.2.6"
336dashmap = "6.0"
337derive_more = "0.99.17"
338dirs = "4.0"
339emojis = "0.6.1"
340env_logger = "0.11"
341exec = "0.3.1"
342fork = "0.1.23"
343futures = "0.3"
344futures-batch = "0.6.1"
345futures-lite = "1.13"
346git2 = { version = "0.19", default-features = false }
347globset = "0.4"
348heed = { version = "0.20.1", features = ["read-txn-no-tls"] }
349hex = "0.4.3"
350hyper = "0.14"
351html5ever = "0.27.0"
352ignore = "0.4.22"
353image = "0.25.1"
354indexmap = { version = "1.6.2", features = ["serde"] }
355indoc = "2"
356# We explicitly disable http2 support in isahc.
357isahc = { version = "1.7.2", default-features = false, features = [
358    "text-decoding",
359] }
360itertools = "0.11.0"
361jsonwebtoken = "9.3"
362lazy_static = "1.4.0"
363libc = "0.2"
364linkify = "0.10.0"
365log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
366markup5ever_rcdom = "0.3.0"
367nanoid = "0.4"
368nix = "0.28"
369num-format = "0.4.4"
370once_cell = "1.19.0"
371ordered-float = "2.1.1"
372palette = { version = "0.7.5", default-features = false, features = ["std"] }
373parking_lot = "0.12.1"
374pathdiff = "0.2"
375profiling = "1"
376postage = { version = "0.5", features = ["futures-traits"] }
377pretty_assertions = "1.3.0"
378prost = "0.9"
379prost-build = "0.9"
380prost-types = "0.9"
381pulldown-cmark = { version = "0.10.0", default-features = false }
382rand = "0.8.5"
383regex = "1.5"
384repair_json = "0.1.0"
385rsa = "0.9.6"
386runtimelib = { version = "0.14", default-features = false, features = [
387    "async-dispatcher-runtime",
388] }
389rusqlite = { version = "0.29.0", features = ["blob", "array", "modern_sqlite"] }
390rustc-demangle = "0.1.23"
391rust-embed = { version = "8.4", features = ["include-exclude"] }
392schemars = {version = "0.8", features = ["impl_json_schema"]}
393semver = "1.0"
394serde = { version = "1.0", features = ["derive", "rc"] }
395serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
396serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
397serde_json_lenient = { version = "0.1", features = [
398    "preserve_order",
399    "raw_value",
400] }
401serde_repr = "0.1"
402sha2 = "0.10"
403shellexpand = "2.1.0"
404shlex = "1.3.0"
405signal-hook = "0.3.17"
406similar = "1.3"
407simplelog = "0.12.2"
408smallvec = { version = "1.6", features = ["union"] }
409smol = "1.2"
410strsim = "0.11"
411strum = { version = "0.25.0", features = ["derive"] }
412subtle = "2.5.0"
413sys-locale = "0.3.1"
414sysinfo = "0.30.7"
415tempfile = "3.9.0"
416thiserror = "1.0.29"
417tiktoken-rs = "0.5.9"
418time = { version = "0.3", features = [
419    "macros",
420    "parsing",
421    "serde",
422    "serde-well-known",
423    "formatting",
424] }
425tiny_http = "0.8"
426toml = "0.8"
427tokio = { version = "1", features = ["full"] }
428tower-http = "0.4.4"
429tree-sitter = { version = "0.22", features = ["wasm"] }
430tree-sitter-bash = "0.21"
431tree-sitter-c = "0.21"
432tree-sitter-cpp = "0.22"
433tree-sitter-css = "0.21"
434tree-sitter-elixir = "0.2"
435tree-sitter-embedded-template = "0.20.0"
436tree-sitter-go = "0.21"
437tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "1f55029bacd0a6a11f6eb894c4312d429dcf735c", package = "tree-sitter-gomod" }
438tree-sitter-gowork = { git = "https://github.com/d1y/tree-sitter-go-work", rev = "dcbabff454703c3a4bc98a23cf8778d4be46fd22" }
439tree-sitter-heex = { git = "https://github.com/phoenixframework/tree-sitter-heex", rev = "6dd0303acf7138dd2b9b432a229e16539581c701" }
440tree-sitter-html = "0.20"
441tree-sitter-jsdoc = "0.21"
442tree-sitter-json = "0.21"
443tree-sitter-md = { git = "https://github.com/zed-industries/tree-sitter-markdown", rev = "e3855e37f8f2c71aa7513c18a9c95fb7461b1b10" }
444protols-tree-sitter-proto = "0.2"
445tree-sitter-python = "0.21"
446tree-sitter-regex = "0.21"
447tree-sitter-ruby = "0.21"
448tree-sitter-rust = "0.21"
449tree-sitter-typescript = "0.21"
450tree-sitter-yaml = "0.6"
451unindent = "0.1.7"
452unicase = "2.6"
453unicode-segmentation = "1.10"
454url = "2.2"
455uuid = { version = "1.1.2", features = ["v4", "v5", "serde"] }
456wasmparser = "0.201"
457wasm-encoder = "0.201"
458wasmtime = { version = "21.0.1", default-features = false, features = [
459    "async",
460    "demangle",
461    "runtime",
462    "cranelift",
463    "component-model",
464] }
465wasmtime-wasi = "21.0.1"
466which = "6.0.0"
467wit-component = "0.201"
468
469[workspace.dependencies.async-stripe]
470version = "0.38"
471default-features = false
472features = [
473    "runtime-tokio-hyper-rustls",
474    "billing",
475    "checkout",
476    "events",
477    # The features below are only enabled to get the `events` feature to build.
478    "chrono",
479    "connect",
480]
481
482[workspace.dependencies.windows]
483version = "0.58"
484features = [
485    "implement",
486    "Foundation_Numerics",
487    "System",
488    "System_Threading",
489    "UI_ViewManagement",
490    "Wdk_System_SystemServices",
491    "Win32_Globalization",
492    "Win32_Graphics_Direct2D",
493    "Win32_Graphics_Direct2D_Common",
494    "Win32_Graphics_DirectWrite",
495    "Win32_Graphics_Dwm",
496    "Win32_Graphics_Dxgi_Common",
497    "Win32_Graphics_Gdi",
498    "Win32_Graphics_Imaging",
499    "Win32_Graphics_Imaging_D2D",
500    "Win32_Security",
501    "Win32_Security_Credentials",
502    "Win32_Storage_FileSystem",
503    "Win32_System_Com",
504    "Win32_System_Com_StructuredStorage",
505    "Win32_System_DataExchange",
506    "Win32_System_LibraryLoader",
507    "Win32_System_Memory",
508    "Win32_System_Ole",
509    "Win32_System_SystemInformation",
510    "Win32_System_SystemServices",
511    "Win32_System_Threading",
512    "Win32_System_WinRT",
513    "Win32_UI_Controls",
514    "Win32_UI_HiDpi",
515    "Win32_UI_Input_Ime",
516    "Win32_UI_Input_KeyboardAndMouse",
517    "Win32_UI_Shell",
518    "Win32_UI_WindowsAndMessaging",
519]
520
521[patch.crates-io]
522# Patch Tree-sitter for updated wasmtime.
523tree-sitter = { git = "https://github.com/tree-sitter/tree-sitter", rev = "7f4a57817d58a2f134fe863674acad6bbf007228" }
524
525[profile.dev]
526split-debuginfo = "unpacked"
527debug = "limited"
528codegen-units = 16
529
530[profile.dev.package]
531taffy = { opt-level = 3 }
532cranelift-codegen = { opt-level = 3 }
533resvg = { opt-level = 3 }
534rustybuzz = { opt-level = 3 }
535ttf-parser = { opt-level = 3 }
536wasmtime-cranelift = { opt-level = 3 }
537wasmtime = { opt-level = 3 }
538
539[profile.release]
540debug = "limited"
541lto = "thin"
542codegen-units = 1
543
544[profile.release.package]
545zed = { codegen-units = 16 }
546
547[profile.release-fast]
548inherits = "release"
549lto = false
550codegen-units = 16
551
552[workspace.lints.clippy]
553dbg_macro = "deny"
554todo = "deny"
555
556# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
557# warning on this rule produces a lot of noise.
558single_range_in_vec_init = "allow"
559
560# These are all of the rules that currently have violations in the Zed
561# codebase.
562#
563# We'll want to drive this list down by either:
564# 1. fixing violations of the rule and begin enforcing it
565# 2. deciding we want to allow the rule permanently, at which point
566#    we should codify that separately above.
567#
568# This list shouldn't be added to; it should only get shorter.
569# =============================================================================
570
571# There are a bunch of rules currently failing in the `style` group, so
572# allow all of those, for now.
573style = { level = "allow", priority = -1 }
574
575# Individual rules that have violations in the codebase:
576type_complexity = "allow"
577
578[workspace.metadata.cargo-machete]
579ignored = ["bindgen", "cbindgen", "prost_build", "serde"]