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