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