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