Cargo.toml

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