Cargo.toml

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