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