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