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