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