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