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