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