Cargo.toml

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