Cargo.toml

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