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" }
167color = { path = "crates/color" }
168command_palette = { path = "crates/command_palette" }
169command_palette_hooks = { path = "crates/command_palette_hooks" }
170copilot = { path = "crates/copilot" }
171dashmap = "5.5.3"
172db = { path = "crates/db" }
173diagnostics = { path = "crates/diagnostics" }
174editor = { path = "crates/editor" }
175extension = { path = "crates/extension" }
176extensions_ui = { path = "crates/extensions_ui" }
177feature_flags = { path = "crates/feature_flags" }
178feedback = { path = "crates/feedback" }
179file_finder = { path = "crates/file_finder" }
180file_icons = { path = "crates/file_icons" }
181fs = { path = "crates/fs" }
182fsevent = { path = "crates/fsevent" }
183fuzzy = { path = "crates/fuzzy" }
184git = { path = "crates/git" }
185git_hosting_providers = { path = "crates/git_hosting_providers" }
186go_to_line = { path = "crates/go_to_line" }
187google_ai = { path = "crates/google_ai" }
188gpui = { path = "crates/gpui" }
189gpui_macros = { path = "crates/gpui_macros" }
190headless = { path = "crates/headless" }
191html_to_markdown = { path = "crates/html_to_markdown" }
192http = { path = "crates/http" }
193install_cli = { path = "crates/install_cli" }
194image_viewer = { path = "crates/image_viewer" }
195inline_completion_button = { path = "crates/inline_completion_button" }
196journal = { path = "crates/journal" }
197language = { path = "crates/language" }
198language_selector = { path = "crates/language_selector" }
199language_tools = { path = "crates/language_tools" }
200languages = { path = "crates/languages" }
201live_kit_client = { path = "crates/live_kit_client" }
202live_kit_server = { path = "crates/live_kit_server" }
203lsp = { path = "crates/lsp" }
204markdown = { path = "crates/markdown" }
205markdown_preview = { path = "crates/markdown_preview" }
206media = { path = "crates/media" }
207menu = { path = "crates/menu" }
208multi_buffer = { path = "crates/multi_buffer" }
209node_runtime = { path = "crates/node_runtime" }
210notifications = { path = "crates/notifications" }
211open_ai = { path = "crates/open_ai" }
212outline = { path = "crates/outline" }
213picker = { path = "crates/picker" }
214plugin = { path = "crates/plugin" }
215plugin_macros = { path = "crates/plugin_macros" }
216prettier = { path = "crates/prettier" }
217project = { path = "crates/project" }
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/kvark/blade", rev = "bdaf8c534fbbc9fbca71d1cf272f45640b3a068d" }
272blade-macros = { git = "https://github.com/kvark/blade", rev = "bdaf8c534fbbc9fbca71d1cf272f45640b3a068d" }
273blade-util = { git = "https://github.com/kvark/blade", rev = "bdaf8c534fbbc9fbca71d1cf272f45640b3a068d" }
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" }
279ctor = "0.2.6"
280signal-hook = "0.3.17"
281core-foundation = { version = "0.9.3" }
282core-foundation-sys = "0.8.6"
283derive_more = "0.99.17"
284emojis = "0.6.1"
285env_logger = "0.9"
286exec = "0.3.1"
287fork = "0.1.23"
288futures = "0.3"
289futures-batch = "0.6.1"
290futures-lite = "1.13"
291git2 = { version = "0.18", default-features = false }
292globset = "0.4"
293heed = { version = "0.20.1", features = ["read-txn-no-tls"] }
294hex = "0.4.3"
295html5ever = "0.27.0"
296ignore = "0.4.22"
297indoc = "1"
298# We explicitly disable http2 support in isahc.
299isahc = { version = "1.7.2", default-features = false, features = [
300    "static-curl",
301    "text-decoding",
302] }
303itertools = "0.11.0"
304lazy_static = "1.4.0"
305libc = "0.2"
306linkify = "0.10.0"
307log = { version = "0.4.16", features = ["kv_unstable_serde"] }
308markup5ever_rcdom = "0.3.0"
309nanoid = "0.4"
310nix = "0.28"
311num-format = "0.4.4"
312once_cell = "1.19.0"
313ordered-float = "2.1.1"
314palette = { version = "0.7.5", default-features = false, features = ["std"] }
315parking_lot = "0.12.1"
316pathdiff = "0.2"
317profiling = "1"
318postage = { version = "0.5", features = ["futures-traits"] }
319pretty_assertions = "1.3.0"
320prost = "0.9"
321prost-build = "0.9"
322prost-types = "0.9"
323proto = { path = "./crates/proto" }
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"
344smallvec = { version = "1.6", features = ["union"] }
345smol = "1.2"
346strum = { version = "0.25.0", features = ["derive"] }
347subtle = "2.5.0"
348sysinfo = "0.30.7"
349tempfile = "3.9.0"
350thiserror = "1.0.29"
351tiktoken-rs = "0.5.9"
352time = { version = "0.3", features = [
353    "macros",
354    "parsing",
355    "serde",
356    "serde-well-known",
357    "formatting",
358] }
359toml = "0.8"
360tokio = { version = "1", features = ["full"] }
361tower-http = "0.4.4"
362tree-sitter = { version = "0.20", features = ["wasm"] }
363tree-sitter-bash = "0.20.5"
364tree-sitter-c = "0.20.1"
365tree-sitter-cpp = "0.20.5"
366tree-sitter-css = "0.20"
367tree-sitter-elixir = "0.1.1"
368tree-sitter-embedded-template = "0.20.0"
369tree-sitter-go = { git = "https://github.com/tree-sitter/tree-sitter-go", rev = "b82ab803d887002a0af11f6ce63d72884580bf33" }
370tree-sitter-gomod = "1.0.1"
371tree-sitter-gowork = { git = "https://github.com/d1y/tree-sitter-go-work" }
372rustc-demangle = "0.1.23"
373tree-sitter-heex = { git = "https://github.com/phoenixframework/tree-sitter-heex", rev = "2e1348c3cf2c9323e87c2744796cf3f3868aa82a" }
374tree-sitter-html = "0.19.0"
375tree-sitter-jsdoc = { git = "https://github.com/tree-sitter/tree-sitter-jsdoc", rev = "6a6cf9e7341af32d8e2b2e24a37fbfebefc3dc55" }
376tree-sitter-json = "0.20.2"
377tree-sitter-markdown = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "330ecab87a3e3a7211ac69bbadc19eabecdb1cca" }
378tree-sitter-proto = { git = "https://github.com/rewinfrey/tree-sitter-proto", rev = "36d54f288aee112f13a67b550ad32634d0c2cb52" }
379tree-sitter-python = "0.20.2"
380tree-sitter-regex = "0.20.0"
381tree-sitter-ruby = "0.20.0"
382tree-sitter-rust = "0.20.3"
383tree-sitter-typescript = "0.20.5"
384tree-sitter-yaml = "0.0.1"
385unindent = "0.1.7"
386unicase = "2.6"
387unicode-segmentation = "1.10"
388url = "2.2"
389uuid = { version = "1.1.2", features = ["v4", "v5", "serde"] }
390wasmparser = "0.201"
391wasm-encoder = "0.201"
392wasmtime = { version = "19.0.0", default-features = false, features = [
393    "async",
394    "demangle",
395    "runtime",
396    "cranelift",
397    "component-model",
398] }
399wasmtime-wasi = "19.0.0"
400which = "6.0.0"
401wit-component = "0.201"
402sys-locale = "0.3.1"
403
404[workspace.dependencies.windows]
405version = "0.56.0"
406features = [
407    "implement",
408    "Foundation_Numerics",
409    "System",
410    "System_Threading",
411    "Wdk_System_SystemServices",
412    "Win32_Globalization",
413    "Win32_Graphics_Direct2D",
414    "Win32_Graphics_Direct2D_Common",
415    "Win32_Graphics_DirectWrite",
416    "Win32_Graphics_Dwm",
417    "Win32_Graphics_Dxgi_Common",
418    "Win32_Graphics_Gdi",
419    "Win32_Graphics_Imaging",
420    "Win32_Graphics_Imaging_D2D",
421    "Win32_Security",
422    "Win32_Security_Credentials",
423    "Win32_Storage_FileSystem",
424    "Win32_System_LibraryLoader",
425    "Win32_System_Com",
426    "Win32_System_Com_StructuredStorage",
427    "Win32_System_DataExchange",
428    "Win32_System_LibraryLoader",
429    "Win32_System_Ole",
430    "Win32_System_SystemInformation",
431    "Win32_System_SystemServices",
432    "Win32_System_Threading",
433    "Win32_System_Time",
434    "Win32_System_WinRT",
435    "Win32_UI_Controls",
436    "Win32_UI_HiDpi",
437    "Win32_UI_Input_Ime",
438    "Win32_UI_Input_KeyboardAndMouse",
439    "Win32_UI_Shell",
440    "Win32_UI_WindowsAndMessaging",
441]
442
443[patch.crates-io]
444tree-sitter = { git = "https://github.com/tree-sitter/tree-sitter", rev = "7b4894ba2ae81b988846676f54c0988d4027ef4f" }
445# Workaround for a broken nightly build of gpui: See #7644 and revisit once 0.5.3 is released.
446pathfinder_simd = { git = "https://github.com/servo/pathfinder.git", rev = "30419d07660dc11a21e42ef4a7fa329600cff152" }
447
448[profile.dev]
449split-debuginfo = "unpacked"
450debug = "limited"
451
452[profile.dev.package]
453taffy = { opt-level = 3 }
454cranelift-codegen = { opt-level = 3 }
455resvg = { opt-level = 3 }
456rustybuzz = { opt-level = 3 }
457ttf-parser = { opt-level = 3 }
458wasmtime-cranelift = { opt-level = 3 }
459wasmtime = { opt-level = 3 }
460
461[profile.release]
462debug = "limited"
463lto = "thin"
464codegen-units = 1
465
466[profile.release.package]
467zed = { codegen-units = 16 }
468
469[workspace.lints.clippy]
470dbg_macro = "deny"
471todo = "deny"
472
473# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
474# warning on this rule produces a lot of noise.
475single_range_in_vec_init = "allow"
476
477# These are all of the rules that currently have violations in the Zed
478# codebase.
479#
480# We'll want to drive this list down by either:
481# 1. fixing violations of the rule and begin enforcing it
482# 2. deciding we want to allow the rule permanently, at which point
483#    we should codify that separately above.
484#
485# This list shouldn't be added to; it should only get shorter.
486# =============================================================================
487
488# There are a bunch of rules currently failing in the `style` group, so
489# allow all of those, for now.
490style = "allow"
491
492# Individual rules that have violations in the codebase:
493almost_complete_range = "allow"
494arc_with_non_send_sync = "allow"
495borrowed_box = "allow"
496let_underscore_future = "allow"
497map_entry = "allow"
498non_canonical_partial_ord_impl = "allow"
499reversed_empty_ranges = "allow"
500type_complexity = "allow"
501
502[workspace.metadata.cargo-machete]
503ignored = ["bindgen", "cbindgen", "prost_build", "serde"]