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