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