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