Cargo.toml

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