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