Cargo.toml

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