1[workspace]
2resolver = "2"
3members = [
4 "crates/activity_indicator",
5 "crates/anthropic",
6 "crates/assets",
7 "crates/assistant",
8 "crates/assistant_slash_command",
9 "crates/assistant_tool",
10 "crates/audio",
11 "crates/auto_update",
12 "crates/breadcrumbs",
13 "crates/call",
14 "crates/channel",
15 "crates/cli",
16 "crates/client",
17 "crates/clock",
18 "crates/collab",
19 "crates/collab_ui",
20 "crates/collections",
21 "crates/command_palette",
22 "crates/command_palette_hooks",
23 "crates/context_servers",
24 "crates/copilot",
25 "crates/db",
26 "crates/dev_server_projects",
27 "crates/diagnostics",
28 "crates/docs_preprocessor",
29 "crates/editor",
30 "crates/evals",
31 "crates/extension",
32 "crates/extension_api",
33 "crates/extension_cli",
34 "crates/extensions_ui",
35 "crates/feature_flags",
36 "crates/feedback",
37 "crates/file_finder",
38 "crates/file_icons",
39 "crates/fs",
40 "crates/fsevent",
41 "crates/fuzzy",
42 "crates/git",
43 "crates/git_hosting_providers",
44 "crates/go_to_line",
45 "crates/google_ai",
46 "crates/gpui",
47 "crates/gpui_macros",
48 "crates/headless",
49 "crates/html_to_markdown",
50 "crates/http_client",
51 "crates/image_viewer",
52 "crates/indexed_docs",
53 "crates/inline_completion_button",
54 "crates/install_cli",
55 "crates/journal",
56 "crates/language",
57 "crates/language_model",
58 "crates/language_selector",
59 "crates/language_tools",
60 "crates/languages",
61 "crates/live_kit_client",
62 "crates/live_kit_server",
63 "crates/lsp",
64 "crates/markdown",
65 "crates/markdown_preview",
66 "crates/media",
67 "crates/menu",
68 "crates/multi_buffer",
69 "crates/node_runtime",
70 "crates/notifications",
71 "crates/ollama",
72 "crates/open_ai",
73 "crates/outline",
74 "crates/outline_panel",
75 "crates/paths",
76 "crates/picker",
77 "crates/prettier",
78 "crates/project",
79 "crates/project_panel",
80 "crates/project_symbols",
81 "crates/proto",
82 "crates/quick_action_bar",
83 "crates/recent_projects",
84 "crates/refineable",
85 "crates/refineable/derive_refineable",
86 "crates/release_channel",
87 "crates/remote",
88 "crates/remote_server",
89 "crates/repl",
90 "crates/reqwest_client",
91 "crates/rich_text",
92 "crates/rope",
93 "crates/rpc",
94 "crates/search",
95 "crates/semantic_index",
96 "crates/semantic_version",
97 "crates/session",
98 "crates/settings",
99 "crates/settings_ui",
100 "crates/snippet",
101 "crates/snippet_provider",
102 "crates/snippets_ui",
103 "crates/sqlez",
104 "crates/sqlez_macros",
105 "crates/story",
106 "crates/storybook",
107 "crates/sum_tree",
108 "crates/supermaven",
109 "crates/supermaven_api",
110 "crates/tab_switcher",
111 "crates/task",
112 "crates/tasks_ui",
113 "crates/telemetry_events",
114 "crates/terminal",
115 "crates/terminal_view",
116 "crates/text",
117 "crates/theme",
118 "crates/theme_importer",
119 "crates/theme_selector",
120 "crates/time_format",
121 "crates/title_bar",
122 "crates/ui",
123 "crates/ui_input",
124 "crates/ui_macros",
125 "crates/ureq_client",
126 "crates/util",
127 "crates/vcs_menu",
128 "crates/vim",
129 "crates/welcome",
130 "crates/workspace",
131 "crates/worktree",
132 "crates/zed",
133 "crates/zed_actions",
134
135 #
136 # Extensions
137 #
138
139 "extensions/astro",
140 "extensions/clojure",
141 "extensions/csharp",
142 "extensions/dart",
143 "extensions/deno",
144 "extensions/elixir",
145 "extensions/elm",
146 "extensions/emmet",
147 "extensions/erlang",
148 "extensions/gleam",
149 "extensions/glsl",
150 "extensions/haskell",
151 "extensions/html",
152 "extensions/lua",
153 "extensions/ocaml",
154 "extensions/php",
155 "extensions/perplexity",
156 "extensions/prisma",
157 "extensions/proto",
158 "extensions/purescript",
159 "extensions/ruff",
160 "extensions/ruby",
161 "extensions/slash-commands-example",
162 "extensions/snippets",
163 "extensions/svelte",
164 "extensions/terraform",
165 "extensions/test-extension",
166 "extensions/toml",
167 "extensions/uiua",
168 "extensions/vue",
169 "extensions/zig",
170
171 #
172 # Tooling
173 #
174
175 "tooling/xtask",
176]
177default-members = ["crates/zed"]
178
179[workspace.dependencies]
180
181#
182# Workspace member crates
183#
184
185activity_indicator = { path = "crates/activity_indicator" }
186ai = { path = "crates/ai" }
187anthropic = { path = "crates/anthropic" }
188assets = { path = "crates/assets" }
189assistant = { path = "crates/assistant" }
190assistant_slash_command = { path = "crates/assistant_slash_command" }
191assistant_tool = { path = "crates/assistant_tool" }
192audio = { path = "crates/audio" }
193auto_update = { path = "crates/auto_update" }
194breadcrumbs = { path = "crates/breadcrumbs" }
195call = { path = "crates/call" }
196channel = { path = "crates/channel" }
197cli = { path = "crates/cli" }
198client = { path = "crates/client" }
199clock = { path = "crates/clock" }
200collab = { path = "crates/collab" }
201collab_ui = { path = "crates/collab_ui" }
202collections = { path = "crates/collections" }
203command_palette = { path = "crates/command_palette" }
204command_palette_hooks = { path = "crates/command_palette_hooks" }
205context_servers = { path = "crates/context_servers" }
206copilot = { path = "crates/copilot" }
207db = { path = "crates/db" }
208dev_server_projects = { path = "crates/dev_server_projects" }
209diagnostics = { path = "crates/diagnostics" }
210editor = { path = "crates/editor" }
211extension = { path = "crates/extension" }
212extensions_ui = { path = "crates/extensions_ui" }
213feature_flags = { path = "crates/feature_flags" }
214feedback = { path = "crates/feedback" }
215file_finder = { path = "crates/file_finder" }
216file_icons = { path = "crates/file_icons" }
217fs = { path = "crates/fs" }
218fsevent = { path = "crates/fsevent" }
219fuzzy = { path = "crates/fuzzy" }
220git = { path = "crates/git" }
221git_hosting_providers = { path = "crates/git_hosting_providers" }
222go_to_line = { path = "crates/go_to_line" }
223google_ai = { path = "crates/google_ai" }
224gpui = { path = "crates/gpui" }
225gpui_macros = { path = "crates/gpui_macros" }
226headless = { path = "crates/headless" }
227html_to_markdown = { path = "crates/html_to_markdown" }
228http_client = { path = "crates/http_client" }
229image_viewer = { path = "crates/image_viewer" }
230indexed_docs = { path = "crates/indexed_docs" }
231inline_completion_button = { path = "crates/inline_completion_button" }
232install_cli = { path = "crates/install_cli" }
233journal = { path = "crates/journal" }
234language = { path = "crates/language" }
235language_model = { path = "crates/language_model" }
236language_selector = { path = "crates/language_selector" }
237language_tools = { path = "crates/language_tools" }
238languages = { path = "crates/languages" }
239live_kit_client = { path = "crates/live_kit_client" }
240live_kit_server = { path = "crates/live_kit_server" }
241lsp = { path = "crates/lsp" }
242markdown = { path = "crates/markdown" }
243markdown_preview = { path = "crates/markdown_preview" }
244media = { path = "crates/media" }
245menu = { path = "crates/menu" }
246multi_buffer = { path = "crates/multi_buffer" }
247node_runtime = { path = "crates/node_runtime" }
248notifications = { path = "crates/notifications" }
249ollama = { path = "crates/ollama" }
250open_ai = { path = "crates/open_ai" }
251outline = { path = "crates/outline" }
252outline_panel = { path = "crates/outline_panel" }
253paths = { path = "crates/paths" }
254picker = { path = "crates/picker" }
255plugin = { path = "crates/plugin" }
256plugin_macros = { path = "crates/plugin_macros" }
257prettier = { path = "crates/prettier" }
258project = { path = "crates/project" }
259project_panel = { path = "crates/project_panel" }
260project_symbols = { path = "crates/project_symbols" }
261proto = { path = "crates/proto" }
262quick_action_bar = { path = "crates/quick_action_bar" }
263recent_projects = { path = "crates/recent_projects" }
264refineable = { path = "crates/refineable" }
265release_channel = { path = "crates/release_channel" }
266remote = { path = "crates/remote" }
267remote_server = { path = "crates/remote_server" }
268repl = { path = "crates/repl" }
269reqwest_client = { path = "crates/reqwest_client" }
270rich_text = { path = "crates/rich_text" }
271rope = { path = "crates/rope" }
272rpc = { path = "crates/rpc" }
273search = { path = "crates/search" }
274semantic_index = { path = "crates/semantic_index" }
275semantic_version = { path = "crates/semantic_version" }
276session = { path = "crates/session" }
277settings = { path = "crates/settings" }
278settings_ui = { path = "crates/settings_ui" }
279snippet = { path = "crates/snippet" }
280snippet_provider = { path = "crates/snippet_provider" }
281snippets_ui = { path = "crates/snippets_ui" }
282sqlez = { path = "crates/sqlez" }
283sqlez_macros = { path = "crates/sqlez_macros" }
284story = { path = "crates/story" }
285storybook = { path = "crates/storybook" }
286sum_tree = { path = "crates/sum_tree" }
287supermaven = { path = "crates/supermaven" }
288supermaven_api = { path = "crates/supermaven_api" }
289tab_switcher = { path = "crates/tab_switcher" }
290task = { path = "crates/task" }
291tasks_ui = { path = "crates/tasks_ui" }
292telemetry_events = { path = "crates/telemetry_events" }
293terminal = { path = "crates/terminal" }
294terminal_view = { path = "crates/terminal_view" }
295text = { path = "crates/text" }
296theme = { path = "crates/theme" }
297theme_importer = { path = "crates/theme_importer" }
298theme_selector = { path = "crates/theme_selector" }
299time_format = { path = "crates/time_format" }
300title_bar = { path = "crates/title_bar" }
301ui = { path = "crates/ui" }
302ui_input = { path = "crates/ui_input" }
303ui_macros = { path = "crates/ui_macros" }
304ureq_client = { path = "crates/ureq_client" }
305util = { path = "crates/util" }
306vcs_menu = { path = "crates/vcs_menu" }
307vim = { path = "crates/vim" }
308welcome = { path = "crates/welcome" }
309workspace = { path = "crates/workspace" }
310worktree = { path = "crates/worktree" }
311zed = { path = "crates/zed" }
312zed_actions = { path = "crates/zed_actions" }
313
314#
315# External crates
316#
317
318aho-corasick = "1.1"
319alacritty_terminal = { git = "https://github.com/alacritty/alacritty", rev = "91d034ff8b53867143c005acfaa14609147c9a2c" }
320any_vec = "0.14"
321anyhow = "1.0.86"
322arrayvec = { version = "0.7.4", features = ["serde"] }
323ashpd = "0.9.1"
324async-compat = "0.2.1"
325async-compression = { version = "0.4", features = ["gzip", "futures-io"] }
326async-dispatcher = "0.1"
327async-fs = "1.6"
328async-pipe = { git = "https://github.com/zed-industries/async-pipe-rs", rev = "82d00a04211cf4e1236029aa03e6b6ce2a74c553" }
329async-recursion = "1.0.0"
330async-tar = "0.5.0"
331async-trait = "0.1"
332async-tungstenite = "0.28"
333async-watch = "0.3.1"
334async_zip = { version = "0.0.17", features = ["deflate", "deflate64"] }
335base64 = "0.22"
336bitflags = "2.6.0"
337blade-graphics = { git = "https://github.com/kvark/blade", rev = "e142a3a5e678eb6a13e642ad8401b1f3aa38e969" }
338blade-macros = { git = "https://github.com/kvark/blade", rev = "e142a3a5e678eb6a13e642ad8401b1f3aa38e969" }
339blade-util = { git = "https://github.com/kvark/blade", rev = "e142a3a5e678eb6a13e642ad8401b1f3aa38e969" }
340blake3 = "1.5.3"
341cargo_metadata = "0.18"
342cargo_toml = "0.20"
343chrono = { version = "0.4", features = ["serde"] }
344clap = { version = "4.4", features = ["derive"] }
345clickhouse = "0.11.6"
346cocoa = "0.26"
347convert_case = "0.6.0"
348core-foundation = "0.9.3"
349core-foundation-sys = "0.8.6"
350ctor = "0.2.6"
351dashmap = "6.0"
352derive_more = "0.99.17"
353dirs = "4.0"
354emojis = "0.6.1"
355env_logger = "0.11"
356exec = "0.3.1"
357fork = "0.2.0"
358futures = "0.3"
359futures-batch = "0.6.1"
360futures-lite = "1.13"
361git2 = { version = "0.19", default-features = false }
362globset = "0.4"
363handlebars = "4.3"
364heed = { version = "0.20.1", features = ["read-txn-no-tls"] }
365hex = "0.4.3"
366html5ever = "0.27.0"
367hyper = "0.14"
368ignore = "0.4.22"
369image = "0.25.1"
370indexmap = { version = "1.6.2", features = ["serde"] }
371indoc = "2"
372itertools = "0.13.0"
373jsonwebtoken = "9.3"
374libc = "0.2"
375linkify = "0.10.0"
376log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
377markup5ever_rcdom = "0.3.0"
378nanoid = "0.4"
379nix = "0.29"
380num-format = "0.4.4"
381once_cell = "1.19.0"
382ordered-float = "2.1.1"
383palette = { version = "0.7.5", default-features = false, features = ["std"] }
384parking_lot = "0.12.1"
385pathdiff = "0.2"
386postage = { version = "0.5", features = ["futures-traits"] }
387pretty_assertions = "1.3.0"
388profiling = "1"
389prost = "0.9"
390prost-build = "0.9"
391prost-types = "0.9"
392pulldown-cmark = { version = "0.12.0", default-features = false }
393rand = "0.8.5"
394regex = "1.5"
395repair_json = "0.1.0"
396reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "fd110f6998da16bbca97b6dddda9be7827c50e29" }
397rsa = "0.9.6"
398runtimelib = { version = "0.15", default-features = false, features = [
399 "async-dispatcher-runtime",
400] }
401rustc-demangle = "0.1.23"
402rust-embed = { version = "8.4", features = ["include-exclude"] }
403rustls = "0.21.12"
404rustls-native-certs = "0.8.0"
405schemars = { version = "0.8", features = ["impl_json_schema"] }
406semver = "1.0"
407serde = { version = "1.0", features = ["derive", "rc"] }
408serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
409serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
410serde_json_lenient = { version = "0.2", features = [
411 "preserve_order",
412 "raw_value",
413] }
414serde_repr = "0.1"
415sha2 = "0.10"
416shellexpand = "2.1.0"
417shlex = "1.3.0"
418signal-hook = "0.3.17"
419similar = "1.3"
420simplelog = "0.12.2"
421smallvec = { version = "1.6", features = ["union"] }
422smol = "1.2"
423sqlformat = "0.2"
424strsim = "0.11"
425strum = { version = "0.25.0", features = ["derive"] }
426subtle = "2.5.0"
427sys-locale = "0.3.1"
428sysinfo = "0.31.0"
429tempfile = "3.9.0"
430thiserror = "1.0.29"
431tiktoken-rs = "0.5.9"
432time = { version = "0.3", features = [
433 "macros",
434 "parsing",
435 "serde",
436 "serde-well-known",
437 "formatting",
438] }
439tiny_http = "0.8"
440toml = "0.8"
441tokio = { version = "1", features = ["full"] }
442tower-http = "0.4.4"
443tree-sitter = { version = "0.23", features = ["wasm"] }
444tree-sitter-bash = "0.23"
445tree-sitter-c = "0.23"
446tree-sitter-cpp = "0.23"
447tree-sitter-css = "0.23"
448tree-sitter-elixir = "0.3"
449tree-sitter-embedded-template = "0.23.0"
450tree-sitter-go = "0.23"
451tree-sitter-go-mod = { git = "https://github.com/zed-industries/tree-sitter-go-mod", rev = "a9aea5e358cde4d0f8ff20b7bc4fa311e359c7ca", package = "tree-sitter-gomod" }
452tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
453tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
454tree-sitter-html = "0.20"
455tree-sitter-jsdoc = "0.23"
456tree-sitter-json = "0.23"
457tree-sitter-md = { git = "https://github.com/zed-industries/tree-sitter-markdown", rev = "4cfa6aad6b75052a5077c80fd934757d9267d81b" }
458tree-sitter-python = "0.23"
459tree-sitter-regex = "0.23"
460tree-sitter-ruby = "0.23"
461tree-sitter-rust = "0.23"
462tree-sitter-typescript = "0.23"
463tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
464unicase = "2.6"
465unindent = "0.1.7"
466unicode-segmentation = "1.10"
467url = "2.2"
468uuid = { version = "1.1.2", features = ["v4", "v5", "serde"] }
469wasmparser = "0.215"
470wasm-encoder = "0.215"
471wasmtime = { version = "24", default-features = false, features = [
472 "async",
473 "demangle",
474 "runtime",
475 "cranelift",
476 "component-model",
477] }
478wasmtime-wasi = "24"
479which = "6.0.0"
480wit-component = "0.201"
481
482[workspace.dependencies.async-stripe]
483version = "0.39"
484default-features = false
485features = [
486 "runtime-tokio-hyper-rustls",
487 "billing",
488 "checkout",
489 "events",
490 # The features below are only enabled to get the `events` feature to build.
491 "chrono",
492 "connect",
493]
494
495[workspace.dependencies.windows]
496version = "0.58"
497features = [
498 "implement",
499 "Foundation_Numerics",
500 "Storage",
501 "System_Threading",
502 "UI_ViewManagement",
503 "Wdk_System_SystemServices",
504 "Win32_Globalization",
505 "Win32_Graphics_Direct2D",
506 "Win32_Graphics_Direct2D_Common",
507 "Win32_Graphics_DirectWrite",
508 "Win32_Graphics_Dwm",
509 "Win32_Graphics_Dxgi_Common",
510 "Win32_Graphics_Gdi",
511 "Win32_Graphics_Imaging",
512 "Win32_Graphics_Imaging_D2D",
513 "Win32_Security",
514 "Win32_Security_Credentials",
515 "Win32_Storage_FileSystem",
516 "Win32_System_Com",
517 "Win32_System_Com_StructuredStorage",
518 "Win32_System_DataExchange",
519 "Win32_System_LibraryLoader",
520 "Win32_System_Memory",
521 "Win32_System_Ole",
522 "Win32_System_SystemInformation",
523 "Win32_System_SystemServices",
524 "Win32_System_Threading",
525 "Win32_System_WinRT",
526 "Win32_UI_Controls",
527 "Win32_UI_HiDpi",
528 "Win32_UI_Input_Ime",
529 "Win32_UI_Input_KeyboardAndMouse",
530 "Win32_UI_Shell",
531 "Win32_UI_Shell_Common",
532 "Win32_UI_WindowsAndMessaging",
533]
534
535[profile.dev]
536split-debuginfo = "unpacked"
537debug = "limited"
538codegen-units = 16
539
540[profile.dev.package]
541taffy = { opt-level = 3 }
542cranelift-codegen = { opt-level = 3 }
543resvg = { opt-level = 3 }
544rustybuzz = { opt-level = 3 }
545ttf-parser = { opt-level = 3 }
546wasmtime-cranelift = { opt-level = 3 }
547wasmtime = { opt-level = 3 }
548
549[profile.release]
550debug = "limited"
551lto = "thin"
552codegen-units = 1
553
554[profile.release.package]
555zed = { codegen-units = 16 }
556
557[profile.release-fast]
558inherits = "release"
559debug = "full"
560lto = false
561codegen-units = 16
562
563[workspace.lints.clippy]
564dbg_macro = "deny"
565todo = "deny"
566
567# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
568# warning on this rule produces a lot of noise.
569single_range_in_vec_init = "allow"
570
571# These are all of the rules that currently have violations in the Zed
572# codebase.
573#
574# We'll want to drive this list down by either:
575# 1. fixing violations of the rule and begin enforcing it
576# 2. deciding we want to allow the rule permanently, at which point
577# we should codify that separately above.
578#
579# This list shouldn't be added to; it should only get shorter.
580# =============================================================================
581
582# There are a bunch of rules currently failing in the `style` group, so
583# allow all of those, for now.
584style = { level = "allow", priority = -1 }
585
586# Temporary list of style lints that we've fixed so far.
587module_inception = { level = "deny" }
588question_mark = { level = "deny" }
589redundant_closure = { level = "deny" }
590# Individual rules that have violations in the codebase:
591type_complexity = "allow"
592# We often return trait objects from `new` functions.
593new_ret_no_self = { level = "allow" }
594# We have a few `next` functions that differ in lifetimes
595# compared to Iterator::next. Yet, clippy complains about those.
596should_implement_trait = { level = "allow" }
597
598[workspace.metadata.cargo-machete]
599ignored = ["bindgen", "cbindgen", "prost_build", "serde"]