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