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