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.22"
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 = "6.0"
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"
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.12", 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"
406strum = { version = "0.25.0", features = ["derive"] }
407subtle = "2.5.0"
408sys-locale = "0.3.1"
409sysinfo = "0.30.7"
410tempfile = "3.9.0"
411thiserror = "1.0.29"
412tiktoken-rs = "0.5.9"
413time = { version = "0.3", features = [
414    "macros",
415    "parsing",
416    "serde",
417    "serde-well-known",
418    "formatting",
419] }
420tiny_http = "0.8"
421toml = "0.8"
422tokio = { version = "1", features = ["full"] }
423tower-http = "0.4.4"
424tree-sitter = { version = "0.22", features = ["wasm"] }
425tree-sitter-bash = "0.21"
426tree-sitter-c = "0.21"
427tree-sitter-cpp = "0.22"
428tree-sitter-css = "0.21"
429tree-sitter-elixir = "0.2"
430tree-sitter-embedded-template = "0.20.0"
431tree-sitter-go = "0.21"
432tree-sitter-go-mod = { git = "https://github.com/SomeoneToIgnore/tree-sitter-go-mod", rev = "8c1f54f12bb4c846336b634bc817645d6f35d641", package = "tree-sitter-gomod" }
433tree-sitter-gowork = { git = "https://github.com/d1y/tree-sitter-go-work", rev = "dcbabff454703c3a4bc98a23cf8778d4be46fd22" }
434tree-sitter-heex = { git = "https://github.com/phoenixframework/tree-sitter-heex", rev = "6dd0303acf7138dd2b9b432a229e16539581c701" }
435tree-sitter-html = "0.20"
436tree-sitter-jsdoc = "0.21"
437tree-sitter-json = "0.21"
438tree-sitter-md = { git = "https://github.com/zed-industries/tree-sitter-markdown", rev = "e3855e37f8f2c71aa7513c18a9c95fb7461b1b10" }
439protols-tree-sitter-proto = "0.2"
440tree-sitter-python = "0.21"
441tree-sitter-regex = "0.21"
442tree-sitter-ruby = "0.21"
443tree-sitter-rust = "0.21"
444tree-sitter-typescript = "0.21"
445tree-sitter-yaml = "0.6"
446unindent = "0.1.7"
447unicase = "2.6"
448unicode-segmentation = "1.10"
449url = "2.2"
450uuid = { version = "1.1.2", features = ["v4", "v5", "serde"] }
451wasmparser = "0.201"
452wasm-encoder = "0.201"
453wasmtime = { version = "21.0.1", default-features = false, features = [
454    "async",
455    "demangle",
456    "runtime",
457    "cranelift",
458    "component-model",
459] }
460wasmtime-wasi = "21.0.1"
461which = "6.0.0"
462wit-component = "0.201"
463
464[workspace.dependencies.windows]
465version = "0.58"
466features = [
467    "implement",
468    "Foundation_Numerics",
469    "System",
470    "System_Threading",
471    "UI_ViewManagement",
472    "Wdk_System_SystemServices",
473    "Win32_Globalization",
474    "Win32_Graphics_Direct2D",
475    "Win32_Graphics_Direct2D_Common",
476    "Win32_Graphics_DirectWrite",
477    "Win32_Graphics_Dwm",
478    "Win32_Graphics_Dxgi_Common",
479    "Win32_Graphics_Gdi",
480    "Win32_Graphics_Imaging",
481    "Win32_Graphics_Imaging_D2D",
482    "Win32_Security",
483    "Win32_Security_Credentials",
484    "Win32_Storage_FileSystem",
485    "Win32_System_Com",
486    "Win32_System_Com_StructuredStorage",
487    "Win32_System_DataExchange",
488    "Win32_System_LibraryLoader",
489    "Win32_System_Memory",
490    "Win32_System_Ole",
491    "Win32_System_SystemInformation",
492    "Win32_System_SystemServices",
493    "Win32_System_Threading",
494    "Win32_System_WinRT",
495    "Win32_UI_Controls",
496    "Win32_UI_HiDpi",
497    "Win32_UI_Input_Ime",
498    "Win32_UI_Input_KeyboardAndMouse",
499    "Win32_UI_Shell",
500    "Win32_UI_WindowsAndMessaging",
501]
502
503[patch.crates-io]
504# Patch Tree-sitter for updated wasmtime.
505tree-sitter = { git = "https://github.com/tree-sitter/tree-sitter", rev = "7f4a57817d58a2f134fe863674acad6bbf007228" }
506
507[profile.dev]
508split-debuginfo = "unpacked"
509debug = "limited"
510codegen-units = 16
511
512[profile.dev.package]
513taffy = { opt-level = 3 }
514cranelift-codegen = { opt-level = 3 }
515resvg = { opt-level = 3 }
516rustybuzz = { opt-level = 3 }
517ttf-parser = { opt-level = 3 }
518wasmtime-cranelift = { opt-level = 3 }
519wasmtime = { opt-level = 3 }
520
521[profile.release]
522debug = "limited"
523lto = "thin"
524codegen-units = 1
525
526[profile.release.package]
527zed = { codegen-units = 16 }
528
529[profile.release-fast]
530inherits = "release"
531lto = false
532codegen-units = 16
533
534[workspace.lints.clippy]
535dbg_macro = "deny"
536todo = "deny"
537
538# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
539# warning on this rule produces a lot of noise.
540single_range_in_vec_init = "allow"
541
542# These are all of the rules that currently have violations in the Zed
543# codebase.
544#
545# We'll want to drive this list down by either:
546# 1. fixing violations of the rule and begin enforcing it
547# 2. deciding we want to allow the rule permanently, at which point
548#    we should codify that separately above.
549#
550# This list shouldn't be added to; it should only get shorter.
551# =============================================================================
552
553# There are a bunch of rules currently failing in the `style` group, so
554# allow all of those, for now.
555style = { level = "allow", priority = -1 }
556
557# Individual rules that have violations in the codebase:
558type_complexity = "allow"
559
560[workspace.metadata.cargo-machete]
561ignored = ["bindgen", "cbindgen", "prost_build", "serde"]