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