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