1[workspace]
2resolver = "2"
3members = [
4 "crates/activity_indicator",
5 "crates/agent_ui",
6 "crates/agent",
7 "crates/agent_settings",
8 "crates/anthropic",
9 "crates/askpass",
10 "crates/assets",
11 "crates/assistant_context",
12 "crates/assistant_slash_command",
13 "crates/assistant_slash_commands",
14 "crates/assistant_tool",
15 "crates/assistant_tools",
16 "crates/audio",
17 "crates/auto_update",
18 "crates/auto_update_helper",
19 "crates/auto_update_ui",
20 "crates/aws_http_client",
21 "crates/bedrock",
22 "crates/breadcrumbs",
23 "crates/buffer_diff",
24 "crates/call",
25 "crates/channel",
26 "crates/cli",
27 "crates/client",
28 "crates/clock",
29 "crates/collab",
30 "crates/collab_ui",
31 "crates/collections",
32 "crates/command_palette",
33 "crates/command_palette_hooks",
34 "crates/component",
35 "crates/context_server",
36 "crates/copilot",
37 "crates/credentials_provider",
38 "crates/dap",
39 "crates/dap_adapters",
40 "crates/db",
41 "crates/debug_adapter_extension",
42 "crates/debugger_tools",
43 "crates/debugger_ui",
44 "crates/deepseek",
45 "crates/diagnostics",
46 "crates/docs_preprocessor",
47 "crates/editor",
48 "crates/eval",
49 "crates/extension",
50 "crates/extension_api",
51 "crates/extension_cli",
52 "crates/extension_host",
53 "crates/extensions_ui",
54 "crates/feature_flags",
55 "crates/feedback",
56 "crates/file_finder",
57 "crates/file_icons",
58 "crates/fs",
59 "crates/fsevent",
60 "crates/fuzzy",
61 "crates/git",
62 "crates/git_hosting_providers",
63 "crates/git_ui",
64 "crates/go_to_line",
65 "crates/google_ai",
66 "crates/gpui",
67 "crates/gpui_macros",
68 "crates/gpui_tokio",
69
70 "crates/html_to_markdown",
71 "crates/http_client",
72 "crates/http_client_tls",
73 "crates/icons",
74 "crates/image_viewer",
75 "crates/indexed_docs",
76 "crates/inline_completion",
77 "crates/inline_completion_button",
78 "crates/inspector_ui",
79 "crates/install_cli",
80 "crates/jj",
81 "crates/jj_ui",
82 "crates/journal",
83 "crates/language",
84 "crates/language_extension",
85 "crates/language_model",
86 "crates/language_models",
87 "crates/language_selector",
88 "crates/language_tools",
89 "crates/languages",
90 "crates/livekit_api",
91 "crates/livekit_client",
92 "crates/lmstudio",
93 "crates/lsp",
94 "crates/markdown",
95 "crates/markdown_preview",
96 "crates/media",
97 "crates/menu",
98 "crates/svg_preview",
99 "crates/migrator",
100 "crates/mistral",
101 "crates/multi_buffer",
102 "crates/node_runtime",
103 "crates/notifications",
104 "crates/ollama",
105 "crates/onboarding_ui",
106 "crates/open_ai",
107 "crates/open_router",
108 "crates/outline",
109 "crates/outline_panel",
110 "crates/panel",
111 "crates/paths",
112 "crates/picker",
113 "crates/prettier",
114 "crates/project",
115 "crates/project_panel",
116 "crates/project_symbols",
117 "crates/prompt_store",
118 "crates/proto",
119 "crates/recent_projects",
120 "crates/refineable",
121 "crates/refineable/derive_refineable",
122 "crates/release_channel",
123 "crates/remote",
124 "crates/remote_server",
125 "crates/repl",
126 "crates/reqwest_client",
127 "crates/rich_text",
128 "crates/rope",
129 "crates/rpc",
130 "crates/rules_library",
131 "crates/schema_generator",
132 "crates/search",
133 "crates/semantic_index",
134 "crates/semantic_version",
135 "crates/session",
136 "crates/settings",
137 "crates/settings_ui",
138 "crates/snippet",
139 "crates/snippet_provider",
140 "crates/snippets_ui",
141 "crates/sqlez",
142 "crates/sqlez_macros",
143 "crates/story",
144 "crates/storybook",
145 "crates/streaming_diff",
146 "crates/sum_tree",
147 "crates/supermaven",
148 "crates/supermaven_api",
149 "crates/tab_switcher",
150 "crates/task",
151 "crates/tasks_ui",
152 "crates/telemetry",
153 "crates/telemetry_events",
154 "crates/terminal",
155 "crates/terminal_view",
156 "crates/text",
157 "crates/theme",
158 "crates/theme_extension",
159 "crates/theme_importer",
160 "crates/theme_selector",
161 "crates/time_format",
162 "crates/title_bar",
163 "crates/toolchain_selector",
164 "crates/ui",
165 "crates/ui_input",
166 "crates/ui_macros",
167 "crates/ui_prompt",
168 "crates/util",
169 "crates/util_macros",
170 "crates/vercel",
171 "crates/vim",
172 "crates/vim_mode_setting",
173 "crates/watch",
174 "crates/web_search",
175 "crates/web_search_providers",
176 "crates/welcome",
177 "crates/workspace",
178 "crates/worktree",
179 "crates/zed",
180 "crates/zed_actions",
181 "crates/zeta",
182 "crates/zlog",
183 "crates/zlog_settings",
184
185 #
186 # Extensions
187 #
188
189 "extensions/emmet",
190 "extensions/glsl",
191 "extensions/html",
192 "extensions/perplexity",
193 "extensions/proto",
194 "extensions/ruff",
195 "extensions/slash-commands-example",
196 "extensions/snippets",
197 "extensions/test-extension",
198 "extensions/toml",
199
200 #
201 # Tooling
202 #
203
204 "tooling/workspace-hack",
205 "tooling/xtask",
206]
207default-members = ["crates/zed"]
208
209[workspace.package]
210publish = false
211edition = "2024"
212
213[workspace.dependencies]
214
215#
216# Workspace member crates
217#
218
219activity_indicator = { path = "crates/activity_indicator" }
220agent = { path = "crates/agent" }
221agent_ui = { path = "crates/agent_ui" }
222agent_settings = { path = "crates/agent_settings" }
223ai = { path = "crates/ai" }
224anthropic = { path = "crates/anthropic" }
225askpass = { path = "crates/askpass" }
226assets = { path = "crates/assets" }
227assistant_context = { path = "crates/assistant_context" }
228assistant_slash_command = { path = "crates/assistant_slash_command" }
229assistant_slash_commands = { path = "crates/assistant_slash_commands" }
230assistant_tool = { path = "crates/assistant_tool" }
231assistant_tools = { path = "crates/assistant_tools" }
232audio = { path = "crates/audio" }
233auto_update = { path = "crates/auto_update" }
234auto_update_helper = { path = "crates/auto_update_helper" }
235auto_update_ui = { path = "crates/auto_update_ui" }
236aws_http_client = { path = "crates/aws_http_client" }
237bedrock = { path = "crates/bedrock" }
238breadcrumbs = { path = "crates/breadcrumbs" }
239buffer_diff = { path = "crates/buffer_diff" }
240call = { path = "crates/call" }
241channel = { path = "crates/channel" }
242cli = { path = "crates/cli" }
243client = { path = "crates/client" }
244clock = { path = "crates/clock" }
245collab = { path = "crates/collab" }
246collab_ui = { path = "crates/collab_ui" }
247collections = { path = "crates/collections" }
248command_palette = { path = "crates/command_palette" }
249command_palette_hooks = { path = "crates/command_palette_hooks" }
250component = { path = "crates/component" }
251context_server = { path = "crates/context_server" }
252copilot = { path = "crates/copilot" }
253credentials_provider = { path = "crates/credentials_provider" }
254dap = { path = "crates/dap" }
255dap_adapters = { path = "crates/dap_adapters" }
256db = { path = "crates/db" }
257debug_adapter_extension = { path = "crates/debug_adapter_extension" }
258debugger_tools = { path = "crates/debugger_tools" }
259debugger_ui = { path = "crates/debugger_ui" }
260deepseek = { path = "crates/deepseek" }
261diagnostics = { path = "crates/diagnostics" }
262editor = { path = "crates/editor" }
263extension = { path = "crates/extension" }
264extension_host = { path = "crates/extension_host" }
265extensions_ui = { path = "crates/extensions_ui" }
266feature_flags = { path = "crates/feature_flags" }
267feedback = { path = "crates/feedback" }
268file_finder = { path = "crates/file_finder" }
269file_icons = { path = "crates/file_icons" }
270fs = { path = "crates/fs" }
271fsevent = { path = "crates/fsevent" }
272fuzzy = { path = "crates/fuzzy" }
273git = { path = "crates/git" }
274git_hosting_providers = { path = "crates/git_hosting_providers" }
275git_ui = { path = "crates/git_ui" }
276go_to_line = { path = "crates/go_to_line" }
277google_ai = { path = "crates/google_ai" }
278gpui = { path = "crates/gpui", default-features = false, features = [
279 "http_client",
280] }
281gpui_macros = { path = "crates/gpui_macros" }
282gpui_tokio = { path = "crates/gpui_tokio" }
283html_to_markdown = { path = "crates/html_to_markdown" }
284http_client = { path = "crates/http_client" }
285http_client_tls = { path = "crates/http_client_tls" }
286icons = { path = "crates/icons" }
287image_viewer = { path = "crates/image_viewer" }
288indexed_docs = { path = "crates/indexed_docs" }
289inline_completion = { path = "crates/inline_completion" }
290inline_completion_button = { path = "crates/inline_completion_button" }
291inspector_ui = { path = "crates/inspector_ui" }
292install_cli = { path = "crates/install_cli" }
293jj = { path = "crates/jj" }
294jj_ui = { path = "crates/jj_ui" }
295journal = { path = "crates/journal" }
296language = { path = "crates/language" }
297language_extension = { path = "crates/language_extension" }
298language_model = { path = "crates/language_model" }
299language_models = { path = "crates/language_models" }
300language_selector = { path = "crates/language_selector" }
301language_tools = { path = "crates/language_tools" }
302languages = { path = "crates/languages" }
303livekit_api = { path = "crates/livekit_api" }
304livekit_client = { path = "crates/livekit_client" }
305lmstudio = { path = "crates/lmstudio" }
306lsp = { path = "crates/lsp" }
307markdown = { path = "crates/markdown" }
308markdown_preview = { path = "crates/markdown_preview" }
309svg_preview = { path = "crates/svg_preview" }
310media = { path = "crates/media" }
311menu = { path = "crates/menu" }
312migrator = { path = "crates/migrator" }
313mistral = { path = "crates/mistral" }
314multi_buffer = { path = "crates/multi_buffer" }
315node_runtime = { path = "crates/node_runtime" }
316notifications = { path = "crates/notifications" }
317ollama = { path = "crates/ollama" }
318onboarding_ui = { path = "crates/onboarding_ui" }
319open_ai = { path = "crates/open_ai" }
320open_router = { path = "crates/open_router", features = ["schemars"] }
321outline = { path = "crates/outline" }
322outline_panel = { path = "crates/outline_panel" }
323panel = { path = "crates/panel" }
324paths = { path = "crates/paths" }
325picker = { path = "crates/picker" }
326plugin = { path = "crates/plugin" }
327plugin_macros = { path = "crates/plugin_macros" }
328prettier = { path = "crates/prettier" }
329project = { path = "crates/project" }
330project_panel = { path = "crates/project_panel" }
331project_symbols = { path = "crates/project_symbols" }
332prompt_store = { path = "crates/prompt_store" }
333proto = { path = "crates/proto" }
334recent_projects = { path = "crates/recent_projects" }
335refineable = { path = "crates/refineable" }
336release_channel = { path = "crates/release_channel" }
337remote = { path = "crates/remote" }
338remote_server = { path = "crates/remote_server" }
339repl = { path = "crates/repl" }
340reqwest_client = { path = "crates/reqwest_client" }
341rich_text = { path = "crates/rich_text" }
342rope = { path = "crates/rope" }
343rpc = { path = "crates/rpc" }
344rules_library = { path = "crates/rules_library" }
345search = { path = "crates/search" }
346semantic_index = { path = "crates/semantic_index" }
347semantic_version = { path = "crates/semantic_version" }
348session = { path = "crates/session" }
349settings = { path = "crates/settings" }
350settings_ui = { path = "crates/settings_ui" }
351snippet = { path = "crates/snippet" }
352snippet_provider = { path = "crates/snippet_provider" }
353snippets_ui = { path = "crates/snippets_ui" }
354sqlez = { path = "crates/sqlez" }
355sqlez_macros = { path = "crates/sqlez_macros" }
356story = { path = "crates/story" }
357storybook = { path = "crates/storybook" }
358streaming_diff = { path = "crates/streaming_diff" }
359sum_tree = { path = "crates/sum_tree" }
360supermaven = { path = "crates/supermaven" }
361supermaven_api = { path = "crates/supermaven_api" }
362tab_switcher = { path = "crates/tab_switcher" }
363task = { path = "crates/task" }
364tasks_ui = { path = "crates/tasks_ui" }
365telemetry = { path = "crates/telemetry" }
366telemetry_events = { path = "crates/telemetry_events" }
367terminal = { path = "crates/terminal" }
368terminal_view = { path = "crates/terminal_view" }
369text = { path = "crates/text" }
370theme = { path = "crates/theme" }
371theme_extension = { path = "crates/theme_extension" }
372theme_importer = { path = "crates/theme_importer" }
373theme_selector = { path = "crates/theme_selector" }
374time_format = { path = "crates/time_format" }
375title_bar = { path = "crates/title_bar" }
376toolchain_selector = { path = "crates/toolchain_selector" }
377ui = { path = "crates/ui" }
378ui_input = { path = "crates/ui_input" }
379ui_macros = { path = "crates/ui_macros" }
380ui_prompt = { path = "crates/ui_prompt" }
381util = { path = "crates/util" }
382util_macros = { path = "crates/util_macros" }
383vercel = { path = "crates/vercel" }
384vim = { path = "crates/vim" }
385vim_mode_setting = { path = "crates/vim_mode_setting" }
386
387watch = { path = "crates/watch" }
388web_search = { path = "crates/web_search" }
389web_search_providers = { path = "crates/web_search_providers" }
390welcome = { path = "crates/welcome" }
391workspace = { path = "crates/workspace" }
392worktree = { path = "crates/worktree" }
393zed = { path = "crates/zed" }
394zed_actions = { path = "crates/zed_actions" }
395zeta = { path = "crates/zeta" }
396zlog = { path = "crates/zlog" }
397zlog_settings = { path = "crates/zlog_settings" }
398
399#
400# External crates
401#
402
403aho-corasick = "1.1"
404alacritty_terminal = { git = "https://github.com/zed-industries/alacritty.git", branch = "add-hush-login-flag" }
405any_vec = "0.14"
406anyhow = "1.0.86"
407arrayvec = { version = "0.7.4", features = ["serde"] }
408ashpd = { version = "0.11", default-features = false, features = ["async-std"] }
409async-compat = "0.2.1"
410async-compression = { version = "0.4", features = ["gzip", "futures-io"] }
411async-dispatcher = "0.1"
412async-fs = "2.1"
413async-pipe = { git = "https://github.com/zed-industries/async-pipe-rs", rev = "82d00a04211cf4e1236029aa03e6b6ce2a74c553" }
414async-recursion = "1.0.0"
415async-tar = "0.5.0"
416async-trait = "0.1"
417async-tungstenite = "0.29.1"
418async_zip = { version = "0.0.17", features = ["deflate", "deflate64"] }
419aws-config = { version = "1.6.1", features = ["behavior-version-latest"] }
420aws-credential-types = { version = "1.2.2", features = [
421 "hardcoded-credentials",
422] }
423aws-sdk-bedrockruntime = { version = "1.80.0", features = [
424 "behavior-version-latest",
425] }
426aws-smithy-runtime-api = { version = "1.7.4", features = ["http-1x", "client"] }
427aws-smithy-types = { version = "1.3.0", features = ["http-body-1-x"] }
428base64 = "0.22"
429bitflags = "2.6.0"
430blade-graphics = { git = "https://github.com/kvark/blade", rev = "e0ec4e720957edd51b945b64dd85605ea54bcfe5" }
431blade-macros = { git = "https://github.com/kvark/blade", rev = "e0ec4e720957edd51b945b64dd85605ea54bcfe5" }
432blade-util = { git = "https://github.com/kvark/blade", rev = "e0ec4e720957edd51b945b64dd85605ea54bcfe5" }
433blake3 = "1.5.3"
434bytes = "1.0"
435cargo_metadata = "0.19"
436cargo_toml = "0.21"
437chrono = { version = "0.4", features = ["serde"] }
438circular-buffer = "1.0"
439clap = { version = "4.4", features = ["derive"] }
440cocoa = "0.26"
441cocoa-foundation = "0.2.0"
442convert_case = "0.8.0"
443core-foundation = "0.10.0"
444core-foundation-sys = "0.8.6"
445core-video = { version = "0.4.3", features = ["metal"] }
446cpal = "0.16"
447criterion = { version = "0.5", features = ["html_reports"] }
448ctor = "0.4.0"
449dap-types = { git = "https://github.com/zed-industries/dap-types", rev = "b40956a7f4d1939da67429d941389ee306a3a308" }
450dashmap = "6.0"
451derive_more = "0.99.17"
452dirs = "4.0"
453documented = "0.9.1"
454dotenv = "0.15.0"
455ec4rs = "1.1"
456emojis = "0.6.1"
457env_logger = "0.11"
458exec = "0.3.1"
459fancy-regex = "0.14.0"
460fork = "0.2.0"
461futures = "0.3"
462futures-batch = "0.6.1"
463futures-lite = "1.13"
464git2 = { version = "0.20.1", default-features = false }
465globset = "0.4"
466handlebars = "4.3"
467heck = "0.5"
468heed = { version = "0.21.0", features = ["read-txn-no-tls"] }
469hex = "0.4.3"
470html5ever = "0.27.0"
471http = "1.1"
472hyper = "0.14"
473ignore = "0.4.22"
474image = "0.25.1"
475imara-diff = "0.1.8"
476indexmap = { version = "2.7.0", features = ["serde"] }
477indoc = "2"
478inventory = "0.3.19"
479itertools = "0.14.0"
480jj-lib = { git = "https://github.com/jj-vcs/jj", rev = "e18eb8e05efaa153fad5ef46576af145bba1807f" }
481json_dotpath = "1.1"
482jsonschema = "0.30.0"
483jsonwebtoken = "9.3"
484jupyter-protocol = { git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
485jupyter-websocket-client = { git = "https://github.com/ConradIrwin/runtimed" ,rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
486libc = "0.2"
487libsqlite3-sys = { version = "0.30.1", features = ["bundled"] }
488linkify = "0.10.0"
489log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
490lsp-types = { git = "https://github.com/zed-industries/lsp-types", rev = "c9c189f1c5dd53c624a419ce35bc77ad6a908d18" }
491markup5ever_rcdom = "0.3.0"
492metal = "0.29"
493moka = { version = "0.12.10", features = ["sync"] }
494naga = { version = "25.0", features = ["wgsl-in"] }
495nanoid = "0.4"
496nbformat = { git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734" }
497nix = "0.29"
498num-format = "0.4.4"
499objc = "0.2"
500open = "5.0.0"
501ordered-float = "2.1.1"
502palette = { version = "0.7.5", default-features = false, features = ["std"] }
503parking_lot = "0.12.1"
504partial-json-fixer = "0.5.3"
505pathdiff = "0.2"
506pet = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
507pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
508pet-core = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
509pet-fs = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
510pet-pixi = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
511pet-poetry = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
512pet-reporter = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "845945b830297a50de0e24020b980a65e4820559" }
513portable-pty = "0.9.0"
514postage = { version = "0.5", features = ["futures-traits"] }
515pretty_assertions = { version = "1.3.0", features = ["unstable"] }
516proc-macro2 = "1.0.93"
517profiling = "1"
518prost = "0.9"
519prost-build = "0.9"
520prost-types = "0.9"
521pulldown-cmark = { version = "0.12.0", default-features = false }
522quote = "1.0.9"
523rand = "0.8.5"
524rayon = "1.8"
525ref-cast = "1.0.24"
526regex = "1.5"
527reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "951c770a32f1998d6e999cef3e59e0013e6c4415", default-features = false, features = [
528 "charset",
529 "http2",
530 "macos-system-configuration",
531 "rustls-tls-native-roots",
532 "socks",
533 "stream",
534] }
535rsa = "0.9.6"
536runtimelib = { git = "https://github.com/ConradIrwin/runtimed", rev = "7130c804216b6914355d15d0b91ea91f6babd734", default-features = false, features = [
537 "async-dispatcher-runtime",
538] }
539rust-embed = { version = "8.4", features = ["include-exclude"] }
540rustc-demangle = "0.1.23"
541rustc-hash = "2.1.0"
542rustls = { version = "0.23.26" }
543rustls-platform-verifier = "0.5.0"
544scap = { git = "https://github.com/zed-industries/scap", rev = "08f0a01417505cc0990b9931a37e5120db92e0d0", default-features = false }
545schemars = { version = "0.8", features = ["impl_json_schema", "indexmap2"] }
546semver = "1.0"
547serde = { version = "1.0", features = ["derive", "rc"] }
548serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
549serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
550serde_json_lenient = { version = "0.2", features = [
551 "preserve_order",
552 "raw_value",
553] }
554serde_repr = "0.1"
555sha2 = "0.10"
556shellexpand = "2.1.0"
557shlex = "1.3.0"
558simplelog = "0.12.2"
559smallvec = { version = "1.6", features = ["union"] }
560smol = "2.0"
561sqlformat = "0.2"
562streaming-iterator = "0.1"
563strsim = "0.11"
564strum = { version = "0.27.0", features = ["derive"] }
565subtle = "2.5.0"
566syn = { version = "2.0.101", features = ["full", "extra-traits"] }
567sys-locale = "0.3.1"
568sysinfo = "0.31.0"
569take-until = "0.2.0"
570tempfile = "3.20.0"
571thiserror = "2.0.12"
572tiktoken-rs = "0.7.0"
573time = { version = "0.3", features = [
574 "macros",
575 "parsing",
576 "serde",
577 "serde-well-known",
578 "formatting",
579] }
580tiny_http = "0.8"
581tokio = { version = "1" }
582tokio-tungstenite = { version = "0.26", features = ["__rustls-tls"] }
583toml = "0.8"
584tower-http = "0.4.4"
585tree-sitter = { version = "0.25.6", features = ["wasm"] }
586tree-sitter-bash = "0.25.0"
587tree-sitter-c = "0.23"
588tree-sitter-cpp = "0.23"
589tree-sitter-css = "0.23"
590tree-sitter-diff = "0.1.0"
591tree-sitter-elixir = "0.3"
592tree-sitter-embedded-template = "0.23.0"
593tree-sitter-gitcommit = { git = "https://github.com/zed-industries/tree-sitter-git-commit", rev = "88309716a69dd13ab83443721ba6e0b491d37ee9" }
594tree-sitter-go = "0.23"
595tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c", package = "tree-sitter-gomod" }
596tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
597tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
598tree-sitter-html = "0.23"
599tree-sitter-jsdoc = "0.23"
600tree-sitter-json = "0.24"
601tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
602tree-sitter-python = { git = "https://github.com/zed-industries/tree-sitter-python", rev = "218fcbf3fda3d029225f3dec005cb497d111b35e" }
603tree-sitter-regex = "0.24"
604tree-sitter-ruby = "0.23"
605tree-sitter-rust = "0.24"
606tree-sitter-typescript = "0.23"
607tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
608unicase = "2.6"
609unicode-script = "0.5.7"
610unicode-segmentation = "1.10"
611unindent = "0.2.0"
612url = "2.2"
613urlencoding = "2.1.2"
614uuid = { version = "1.1.2", features = ["v4", "v5", "v7", "serde"] }
615walkdir = "2.5"
616wasm-encoder = "0.221"
617wasmparser = "0.221"
618wasmtime = { version = "29", default-features = false, features = [
619 "async",
620 "demangle",
621 "runtime",
622 "cranelift",
623 "component-model",
624 "incremental-cache",
625 "parallel-compilation",
626] }
627wasmtime-wasi = "29"
628which = "6.0.0"
629workspace-hack = "0.1.0"
630zed_llm_client = "0.8.4"
631zstd = "0.11"
632
633[workspace.dependencies.async-stripe]
634git = "https://github.com/zed-industries/async-stripe"
635rev = "3672dd4efb7181aa597bf580bf5a2f5d23db6735"
636default-features = false
637features = [
638 "runtime-tokio-hyper-rustls",
639 "billing",
640 "checkout",
641 "events",
642 # The features below are only enabled to get the `events` feature to build.
643 "chrono",
644 "connect",
645]
646
647[workspace.dependencies.windows]
648version = "0.61"
649features = [
650 "Foundation_Numerics",
651 "Storage_Search",
652 "Storage_Streams",
653 "System_Threading",
654 "UI_ViewManagement",
655 "Wdk_System_SystemServices",
656 "Win32_Globalization",
657 "Win32_Graphics_Direct2D",
658 "Win32_Graphics_Direct2D_Common",
659 "Win32_Graphics_DirectWrite",
660 "Win32_Graphics_Dwm",
661 "Win32_Graphics_Dxgi_Common",
662 "Win32_Graphics_Gdi",
663 "Win32_Graphics_Imaging",
664 "Win32_Graphics_Imaging_D2D",
665 "Win32_Security",
666 "Win32_Security_Credentials",
667 "Win32_Storage_FileSystem",
668 "Win32_System_Com",
669 "Win32_System_Com_StructuredStorage",
670 "Win32_System_Console",
671 "Win32_System_DataExchange",
672 "Win32_System_IO",
673 "Win32_System_LibraryLoader",
674 "Win32_System_Memory",
675 "Win32_System_Ole",
676 "Win32_System_Pipes",
677 "Win32_System_SystemInformation",
678 "Win32_System_SystemServices",
679 "Win32_System_Threading",
680 "Win32_System_Variant",
681 "Win32_System_WinRT",
682 "Win32_UI_Controls",
683 "Win32_UI_HiDpi",
684 "Win32_UI_Input_Ime",
685 "Win32_UI_Input_KeyboardAndMouse",
686 "Win32_UI_Shell",
687 "Win32_UI_Shell_Common",
688 "Win32_UI_Shell_PropertiesSystem",
689 "Win32_UI_WindowsAndMessaging",
690]
691
692[patch.crates-io]
693notify = { git = "https://github.com/zed-industries/notify.git", rev = "bbb9ea5ae52b253e095737847e367c30653a2e96" }
694notify-types = { git = "https://github.com/zed-industries/notify.git", rev = "bbb9ea5ae52b253e095737847e367c30653a2e96" }
695
696# Makes the workspace hack crate refer to the local one, but only when you're building locally
697workspace-hack = { path = "tooling/workspace-hack" }
698
699[profile.dev]
700split-debuginfo = "unpacked"
701codegen-units = 16
702
703[profile.dev.package]
704taffy = { opt-level = 3 }
705cranelift-codegen = { opt-level = 3 }
706cranelift-codegen-meta = { opt-level = 3 }
707cranelift-codegen-shared = { opt-level = 3 }
708resvg = { opt-level = 3 }
709rustybuzz = { opt-level = 3 }
710ttf-parser = { opt-level = 3 }
711wasmtime-cranelift = { opt-level = 3 }
712wasmtime = { opt-level = 3 }
713# Build single-source-file crates with cg=1 as it helps make `cargo build` of a whole workspace a bit faster
714activity_indicator = { codegen-units = 1 }
715assets = { codegen-units = 1 }
716breadcrumbs = { codegen-units = 1 }
717collections = { codegen-units = 1 }
718command_palette = { codegen-units = 1 }
719command_palette_hooks = { codegen-units = 1 }
720extension_cli = { codegen-units = 1 }
721feature_flags = { codegen-units = 1 }
722file_icons = { codegen-units = 1 }
723fsevent = { codegen-units = 1 }
724image_viewer = { codegen-units = 1 }
725inline_completion_button = { codegen-units = 1 }
726install_cli = { codegen-units = 1 }
727journal = { codegen-units = 1 }
728lmstudio = { codegen-units = 1 }
729menu = { codegen-units = 1 }
730notifications = { codegen-units = 1 }
731ollama = { codegen-units = 1 }
732outline = { codegen-units = 1 }
733paths = { codegen-units = 1 }
734prettier = { codegen-units = 1 }
735project_symbols = { codegen-units = 1 }
736refineable = { codegen-units = 1 }
737release_channel = { codegen-units = 1 }
738reqwest_client = { codegen-units = 1 }
739rich_text = { codegen-units = 1 }
740semantic_version = { codegen-units = 1 }
741session = { codegen-units = 1 }
742snippet = { codegen-units = 1 }
743snippets_ui = { codegen-units = 1 }
744sqlez_macros = { codegen-units = 1 }
745story = { codegen-units = 1 }
746supermaven_api = { codegen-units = 1 }
747telemetry_events = { codegen-units = 1 }
748theme_selector = { codegen-units = 1 }
749time_format = { codegen-units = 1 }
750ui_input = { codegen-units = 1 }
751zed_actions = { codegen-units = 1 }
752
753[profile.release]
754debug = "limited"
755lto = "thin"
756codegen-units = 1
757
758[profile.release.package]
759zed = { codegen-units = 16 }
760
761[profile.release-fast]
762inherits = "release"
763debug = "full"
764lto = false
765codegen-units = 16
766
767[workspace.lints.rust]
768unexpected_cfgs = { level = "allow" }
769
770[workspace.lints.clippy]
771dbg_macro = "deny"
772todo = "deny"
773
774# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
775# warning on this rule produces a lot of noise.
776single_range_in_vec_init = "allow"
777
778# These are all of the rules that currently have violations in the Zed
779# codebase.
780#
781# We'll want to drive this list down by either:
782# 1. fixing violations of the rule and begin enforcing it
783# 2. deciding we want to allow the rule permanently, at which point
784# we should codify that separately above.
785#
786# This list shouldn't be added to; it should only get shorter.
787# =============================================================================
788
789# There are a bunch of rules currently failing in the `style` group, so
790# allow all of those, for now.
791style = { level = "allow", priority = -1 }
792
793# Temporary list of style lints that we've fixed so far.
794module_inception = { level = "deny" }
795question_mark = { level = "deny" }
796redundant_closure = { level = "deny" }
797# Individual rules that have violations in the codebase:
798type_complexity = "allow"
799# We often return trait objects from `new` functions.
800new_ret_no_self = { level = "allow" }
801# We have a few `next` functions that differ in lifetimes
802# compared to Iterator::next. Yet, clippy complains about those.
803should_implement_trait = { level = "allow" }
804let_underscore_future = "allow"
805
806# in Rust it can be very tedious to reduce argument count without
807# running afoul of the borrow checker.
808too_many_arguments = "allow"
809
810# We often have large enum variants yet we rarely actually bother with splitting them up.
811large_enum_variant = "allow"
812
813[workspace.metadata.cargo-machete]
814ignored = [
815 "bindgen",
816 "cbindgen",
817 "prost_build",
818 "serde",
819 "component",
820 "documented",
821 "workspace-hack",
822]