Cargo.toml

   1[workspace]
   2resolver = "2"
   3members = [
   4    "crates/acp_thread",
   5    "crates/acp_tools",
   6    "crates/action_log",
   7    "crates/activity_indicator",
   8    "crates/agent",
   9    "crates/agent_servers",
  10    "crates/agent_settings",
  11    "crates/agent_ui",
  12    "crates/ai_onboarding",
  13    "crates/anthropic",
  14    "crates/askpass",
  15    "crates/assets",
  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/cloud_api_client",
  30    "crates/cloud_api_types",
  31    "crates/cloud_llm_client",
  32    "crates/codestral",
  33    "crates/collab",
  34    "crates/collab_ui",
  35    "crates/collections",
  36    "crates/command_palette",
  37    "crates/command_palette_hooks",
  38    "crates/component",
  39    "crates/component_preview",
  40    "crates/context_server",
  41    "crates/copilot",
  42    "crates/copilot_chat",
  43    "crates/crashes",
  44    "crates/credentials_provider",
  45    "crates/csv_preview",
  46    "crates/dap",
  47    "crates/dap_adapters",
  48    "crates/db",
  49    "crates/debug_adapter_extension",
  50    "crates/debugger_tools",
  51    "crates/debugger_ui",
  52    "crates/deepseek",
  53    "crates/denoise",
  54    "crates/dev_container",
  55    "crates/diagnostics",
  56    "crates/docs_preprocessor",
  57    "crates/edit_prediction",
  58    "crates/edit_prediction_cli",
  59    "crates/edit_prediction_context",
  60    "crates/edit_prediction_types",
  61    "crates/edit_prediction_ui",
  62    "crates/editor",
  63    "crates/encoding_selector",
  64    "crates/env_var",
  65    "crates/etw_tracing",
  66    "crates/eval_cli",
  67    "crates/eval_utils",
  68    "crates/explorer_command_injector",
  69    "crates/extension",
  70    "crates/extension_api",
  71    "crates/extension_cli",
  72    "crates/extension_host",
  73    "crates/extensions_ui",
  74    "crates/feature_flags",
  75    "crates/feedback",
  76    "crates/file_finder",
  77    "crates/file_icons",
  78    "crates/fs",
  79    "crates/fs_benchmarks",
  80    "crates/fuzzy",
  81    "crates/fuzzy_nucleo",
  82    "crates/git",
  83    "crates/git_graph",
  84    "crates/git_hosting_providers",
  85    "crates/git_ui",
  86    "crates/go_to_line",
  87    "crates/google_ai",
  88    "crates/grammars",
  89    "crates/gpui",
  90    "crates/gpui_shared_string",
  91    "crates/gpui_linux",
  92    "crates/gpui_macos",
  93    "crates/gpui_macros",
  94    "crates/gpui_platform",
  95    "crates/gpui_tokio",
  96    "crates/gpui_util",
  97    "crates/gpui_web",
  98    "crates/gpui_wgpu",
  99    "crates/gpui_windows",
 100    "crates/html_to_markdown",
 101    "crates/http_client",
 102    "crates/http_client_tls",
 103    "crates/icons",
 104    "crates/image_viewer",
 105    "crates/inspector_ui",
 106    "crates/install_cli",
 107    "crates/journal",
 108    "crates/json_schema_store",
 109    "crates/keymap_editor",
 110    "crates/language",
 111    "crates/language_core",
 112    "crates/language_extension",
 113    "crates/language_model",
 114    "crates/language_model_core",
 115    "crates/language_models",
 116    "crates/language_models_cloud",
 117    "crates/language_onboarding",
 118    "crates/language_selector",
 119    "crates/language_tools",
 120    "crates/languages",
 121    "crates/line_ending_selector",
 122    "crates/livekit_api",
 123    "crates/livekit_client",
 124    "crates/lmstudio",
 125    "crates/lsp",
 126    "crates/markdown",
 127    "crates/markdown_preview",
 128    "crates/media",
 129    "crates/menu",
 130    "crates/migrator",
 131    "crates/miniprofiler_ui",
 132    "crates/mistral",
 133    "crates/multi_buffer",
 134    "crates/nc",
 135    "crates/net",
 136    "crates/node_runtime",
 137    "crates/notifications",
 138    "crates/ollama",
 139    "crates/onboarding",
 140    "crates/opencode",
 141    "crates/open_ai",
 142    "crates/open_path_prompt",
 143    "crates/open_router",
 144    "crates/outline",
 145    "crates/outline_panel",
 146    "crates/panel",
 147    "crates/paths",
 148    "crates/picker",
 149    "crates/platform_title_bar",
 150    "crates/prettier",
 151    "crates/project",
 152    "crates/project_benchmarks",
 153    "crates/project_panel",
 154    "crates/project_symbols",
 155    "crates/prompt_store",
 156    "crates/proto",
 157    "crates/recent_projects",
 158    "crates/refineable",
 159    "crates/refineable/derive_refineable",
 160    "crates/release_channel",
 161    "crates/remote",
 162    "crates/remote_connection",
 163    "crates/remote_server",
 164    "crates/repl",
 165    "crates/reqwest_client",
 166    "crates/rope",
 167    "crates/rpc",
 168    "crates/rules_library",
 169    "crates/scheduler",
 170    "crates/schema_generator",
 171    "crates/search",
 172    "crates/session",
 173    "crates/settings",
 174    "crates/settings_content",
 175    "crates/settings_json",
 176    "crates/settings_macros",
 177    "crates/settings_profile_selector",
 178    "crates/settings_ui",
 179    "crates/shell_command_parser",
 180    "crates/sidebar",
 181    "crates/snippet",
 182    "crates/snippet_provider",
 183    "crates/snippets_ui",
 184    "crates/sqlez",
 185    "crates/sqlez_macros",
 186    "crates/story",
 187    "crates/storybook",
 188    "crates/streaming_diff",
 189    "crates/sum_tree",
 190    "crates/svg_preview",
 191    "crates/system_specs",
 192    "crates/syntax_theme",
 193    "crates/tab_switcher",
 194    "crates/task",
 195    "crates/tasks_ui",
 196    "crates/telemetry",
 197    "crates/telemetry_events",
 198    "crates/terminal",
 199    "crates/terminal_view",
 200    "crates/text",
 201    "crates/theme",
 202    "crates/theme_extension",
 203    "crates/theme_settings",
 204    "crates/theme_importer",
 205    "crates/theme_selector",
 206    "crates/time_format",
 207    "crates/title_bar",
 208    "crates/toolchain_selector",
 209    "crates/ui",
 210    "crates/ui_input",
 211    "crates/ui_macros",
 212    "crates/ui_prompt",
 213    "crates/util",
 214    "crates/util_macros",
 215    "crates/vercel",
 216    "crates/vim",
 217    "crates/vim_mode_setting",
 218    "crates/watch",
 219    "crates/web_search",
 220    "crates/web_search_providers",
 221    "crates/which_key",
 222    "crates/workspace",
 223    "crates/worktree",
 224    "crates/worktree_benchmarks",
 225    "crates/x_ai",
 226    "crates/zed",
 227    "crates/zed_actions",
 228    "crates/zed_credentials_provider",
 229    "crates/zed_env_vars",
 230    "crates/zeta_prompt",
 231    "crates/zlog",
 232    "crates/zlog_settings",
 233    "crates/ztracing",
 234    "crates/ztracing_macro",
 235
 236    #
 237    # Extensions
 238    #
 239
 240    "extensions/glsl",
 241    "extensions/html",
 242    "extensions/proto",
 243    "extensions/test-extension",
 244
 245    #
 246    # Tooling
 247    #
 248
 249    "tooling/compliance",
 250    "tooling/perf",
 251    "tooling/xtask",
 252]
 253default-members = ["crates/zed"]
 254
 255[workspace.package]
 256publish = false
 257edition = "2024"
 258
 259[workspace.dependencies]
 260
 261#
 262# Workspace member crates
 263#
 264
 265acp_tools = { path = "crates/acp_tools" }
 266acp_thread = { path = "crates/acp_thread" }
 267action_log = { path = "crates/action_log" }
 268agent = { path = "crates/agent" }
 269activity_indicator = { path = "crates/activity_indicator" }
 270agent_ui = { path = "crates/agent_ui" }
 271agent_settings = { path = "crates/agent_settings" }
 272agent_servers = { path = "crates/agent_servers" }
 273ai_onboarding = { path = "crates/ai_onboarding" }
 274anthropic = { path = "crates/anthropic" }
 275askpass = { path = "crates/askpass" }
 276assets = { path = "crates/assets" }
 277audio = { path = "crates/audio" }
 278auto_update = { path = "crates/auto_update" }
 279auto_update_ui = { path = "crates/auto_update_ui" }
 280aws_http_client = { path = "crates/aws_http_client" }
 281bedrock = { path = "crates/bedrock" }
 282breadcrumbs = { path = "crates/breadcrumbs" }
 283buffer_diff = { path = "crates/buffer_diff" }
 284call = { path = "crates/call" }
 285channel = { path = "crates/channel" }
 286cli = { path = "crates/cli" }
 287client = { path = "crates/client" }
 288clock = { path = "crates/clock" }
 289cloud_api_client = { path = "crates/cloud_api_client" }
 290cloud_api_types = { path = "crates/cloud_api_types" }
 291cloud_llm_client = { path = "crates/cloud_llm_client" }
 292collab = { path = "crates/collab" }
 293collab_ui = { path = "crates/collab_ui" }
 294collections = { path = "crates/collections", version = "0.1.0" }
 295command_palette = { path = "crates/command_palette" }
 296command_palette_hooks = { path = "crates/command_palette_hooks" }
 297compliance = { path = "tooling/compliance" }
 298component = { path = "crates/component" }
 299component_preview = { path = "crates/component_preview" }
 300context_server = { path = "crates/context_server" }
 301copilot = { path = "crates/copilot" }
 302copilot_chat = { path = "crates/copilot_chat" }
 303copilot_ui = { path = "crates/copilot_ui" }
 304crashes = { path = "crates/crashes" }
 305credentials_provider = { path = "crates/credentials_provider" }
 306crossbeam = "0.8.4"
 307csv_preview = { path = "crates/csv_preview"}
 308dap = { path = "crates/dap" }
 309dap_adapters = { path = "crates/dap_adapters" }
 310db = { path = "crates/db" }
 311debug_adapter_extension = { path = "crates/debug_adapter_extension" }
 312debugger_tools = { path = "crates/debugger_tools" }
 313debugger_ui = { path = "crates/debugger_ui" }
 314deepseek = { path = "crates/deepseek" }
 315derive_refineable = { path = "crates/refineable/derive_refineable" }
 316dev_container = { path = "crates/dev_container" }
 317diagnostics = { path = "crates/diagnostics" }
 318editor = { path = "crates/editor" }
 319encoding_selector = { path = "crates/encoding_selector" }
 320env_var = { path = "crates/env_var" }
 321etw_tracing = { path = "crates/etw_tracing" }
 322eval_utils = { path = "crates/eval_utils" }
 323extension = { path = "crates/extension" }
 324extension_host = { path = "crates/extension_host" }
 325extensions_ui = { path = "crates/extensions_ui" }
 326feature_flags = { path = "crates/feature_flags" }
 327feedback = { path = "crates/feedback" }
 328file_finder = { path = "crates/file_finder" }
 329file_icons = { path = "crates/file_icons" }
 330fs = { path = "crates/fs" }
 331fuzzy = { path = "crates/fuzzy" }
 332fuzzy_nucleo = { path = "crates/fuzzy_nucleo" }
 333git = { path = "crates/git" }
 334git_graph = { path = "crates/git_graph" }
 335git_hosting_providers = { path = "crates/git_hosting_providers" }
 336git_ui = { path = "crates/git_ui" }
 337go_to_line = { path = "crates/go_to_line" }
 338google_ai = { path = "crates/google_ai" }
 339grammars = { path = "crates/grammars" }
 340gpui = { path = "crates/gpui", default-features = false }
 341gpui_shared_string = { path = "crates/gpui_shared_string" }
 342gpui_linux = { path = "crates/gpui_linux", default-features = false }
 343gpui_macos = { path = "crates/gpui_macos", default-features = false }
 344gpui_macros = { path = "crates/gpui_macros" }
 345gpui_platform = { path = "crates/gpui_platform", default-features = false }
 346gpui_web = { path = "crates/gpui_web" }
 347gpui_wgpu = { path = "crates/gpui_wgpu" }
 348gpui_windows = { path = "crates/gpui_windows", default-features = false }
 349gpui_tokio = { path = "crates/gpui_tokio" }
 350gpui_util = { path = "crates/gpui_util" }
 351html_to_markdown = { path = "crates/html_to_markdown" }
 352http_client = { path = "crates/http_client" }
 353http_client_tls = { path = "crates/http_client_tls" }
 354icons = { path = "crates/icons" }
 355image_viewer = { path = "crates/image_viewer" }
 356edit_prediction_types = { path = "crates/edit_prediction_types" }
 357edit_prediction_ui = { path = "crates/edit_prediction_ui" }
 358edit_prediction_context = { path = "crates/edit_prediction_context" }
 359inspector_ui = { path = "crates/inspector_ui" }
 360install_cli = { path = "crates/install_cli" }
 361journal = { path = "crates/journal" }
 362json_schema_store = { path = "crates/json_schema_store" }
 363keymap_editor = { path = "crates/keymap_editor" }
 364language = { path = "crates/language" }
 365language_core = { path = "crates/language_core" }
 366language_extension = { path = "crates/language_extension" }
 367language_model = { path = "crates/language_model" }
 368language_model_core = { path = "crates/language_model_core" }
 369language_models = { path = "crates/language_models" }
 370language_models_cloud = { path = "crates/language_models_cloud" }
 371language_onboarding = { path = "crates/language_onboarding" }
 372language_selector = { path = "crates/language_selector" }
 373language_tools = { path = "crates/language_tools" }
 374languages = { path = "crates/languages" }
 375line_ending_selector = { path = "crates/line_ending_selector" }
 376livekit_api = { path = "crates/livekit_api" }
 377livekit_client = { path = "crates/livekit_client" }
 378lmstudio = { path = "crates/lmstudio" }
 379lsp = { path = "crates/lsp" }
 380markdown = { path = "crates/markdown" }
 381markdown_preview = { path = "crates/markdown_preview" }
 382svg_preview = { path = "crates/svg_preview" }
 383media = { path = "crates/media" }
 384menu = { path = "crates/menu" }
 385mermaid-rs-renderer = { git = "https://github.com/zed-industries/mermaid-rs-renderer", rev = "374db9ead5426697c6c2111151d9f246899bc638", default-features = false }
 386migrator = { path = "crates/migrator" }
 387mistral = { path = "crates/mistral" }
 388multi_buffer = { path = "crates/multi_buffer" }
 389miniprofiler_ui = { path = "crates/miniprofiler_ui" }
 390nc = { path = "crates/nc" }
 391net = { path = "crates/net" }
 392node_runtime = { path = "crates/node_runtime" }
 393notifications = { path = "crates/notifications" }
 394ollama = { path = "crates/ollama" }
 395onboarding = { path = "crates/onboarding" }
 396opencode = { path = "crates/opencode" }
 397open_ai = { path = "crates/open_ai" }
 398open_path_prompt = { path = "crates/open_path_prompt" }
 399open_router = { path = "crates/open_router", features = ["schemars"] }
 400outline = { path = "crates/outline" }
 401outline_panel = { path = "crates/outline_panel" }
 402panel = { path = "crates/panel" }
 403paths = { path = "crates/paths" }
 404perf = { path = "tooling/perf" }
 405picker = { path = "crates/picker" }
 406prettier = { path = "crates/prettier" }
 407settings_profile_selector = { path = "crates/settings_profile_selector" }
 408project = { path = "crates/project" }
 409project_panel = { path = "crates/project_panel" }
 410project_symbols = { path = "crates/project_symbols" }
 411prompt_store = { path = "crates/prompt_store" }
 412proto = { path = "crates/proto" }
 413recent_projects = { path = "crates/recent_projects" }
 414refineable = { path = "crates/refineable" }
 415release_channel = { path = "crates/release_channel" }
 416remote = { path = "crates/remote" }
 417remote_connection = { path = "crates/remote_connection" }
 418remote_server = { path = "crates/remote_server" }
 419repl = { path = "crates/repl" }
 420reqwest_client = { path = "crates/reqwest_client" }
 421rodio = { git = "https://github.com/RustAudio/rodio", rev = "e50e726ddd0292f6ef9de0dda6b90af4ed1fb66a", features = ["wav", "playback", "wav_output", "recording"] }
 422rope = { path = "crates/rope" }
 423rpc = { path = "crates/rpc" }
 424rules_library = { path = "crates/rules_library" }
 425scheduler = { path = "crates/scheduler" }
 426search = { path = "crates/search" }
 427session = { path = "crates/session" }
 428sidebar = { path = "crates/sidebar" }
 429settings = { path = "crates/settings" }
 430settings_content = { path = "crates/settings_content" }
 431settings_json = { path = "crates/settings_json" }
 432settings_macros = { path = "crates/settings_macros" }
 433settings_ui = { path = "crates/settings_ui" }
 434shell_command_parser = { path = "crates/shell_command_parser" }
 435snippet = { path = "crates/snippet" }
 436snippet_provider = { path = "crates/snippet_provider" }
 437snippets_ui = { path = "crates/snippets_ui" }
 438sqlez = { path = "crates/sqlez" }
 439sqlez_macros = { path = "crates/sqlez_macros" }
 440story = { path = "crates/story" }
 441streaming_diff = { path = "crates/streaming_diff" }
 442sum_tree = { path = "crates/sum_tree" }
 443codestral = { path = "crates/codestral" }
 444system_specs = { path = "crates/system_specs" }
 445syntax_theme = { path = "crates/syntax_theme" }
 446tab_switcher = { path = "crates/tab_switcher" }
 447task = { path = "crates/task" }
 448tasks_ui = { path = "crates/tasks_ui" }
 449telemetry = { path = "crates/telemetry" }
 450telemetry_events = { path = "crates/telemetry_events" }
 451terminal = { path = "crates/terminal" }
 452terminal_view = { path = "crates/terminal_view" }
 453text = { path = "crates/text" }
 454theme = { path = "crates/theme" }
 455theme_extension = { path = "crates/theme_extension" }
 456theme_settings = { path = "crates/theme_settings" }
 457theme_selector = { path = "crates/theme_selector" }
 458time_format = { path = "crates/time_format" }
 459platform_title_bar = { path = "crates/platform_title_bar" }
 460title_bar = { path = "crates/title_bar" }
 461toolchain_selector = { path = "crates/toolchain_selector" }
 462ui = { path = "crates/ui" }
 463ui_input = { path = "crates/ui_input" }
 464ui_macros = { path = "crates/ui_macros" }
 465ui_prompt = { path = "crates/ui_prompt" }
 466util = { path = "crates/util" }
 467util_macros = { path = "crates/util_macros" }
 468vercel = { path = "crates/vercel" }
 469vim = { path = "crates/vim" }
 470vim_mode_setting = { path = "crates/vim_mode_setting" }
 471which_key = { path = "crates/which_key" }
 472
 473watch = { path = "crates/watch" }
 474web_search = { path = "crates/web_search" }
 475web_search_providers = { path = "crates/web_search_providers" }
 476workspace = { path = "crates/workspace" }
 477worktree = { path = "crates/worktree" }
 478x_ai = { path = "crates/x_ai" }
 479zed = { path = "crates/zed" }
 480zed_actions = { path = "crates/zed_actions" }
 481zed_credentials_provider = { path = "crates/zed_credentials_provider" }
 482zed_env_vars = { path = "crates/zed_env_vars" }
 483edit_prediction = { path = "crates/edit_prediction" }
 484zeta_prompt = { path = "crates/zeta_prompt" }
 485zlog = { path = "crates/zlog" }
 486zlog_settings = { path = "crates/zlog_settings" }
 487ztracing = { path = "crates/ztracing" }
 488ztracing_macro = { path = "crates/ztracing_macro" }
 489
 490#
 491# External crates
 492#
 493
 494agent-client-protocol = { version = "=0.10.2", features = ["unstable"] }
 495aho-corasick = "1.1"
 496alacritty_terminal = { git = "https://github.com/zed-industries/alacritty", rev = "9d9640d4" }
 497any_vec = "0.14"
 498anyhow = "1.0.86"
 499ashpd = { version = "0.13", default-features = false, features = [
 500    "async-io",
 501    "notification",
 502    "open_uri",
 503    "file_chooser",
 504    "settings",
 505    "trash"
 506] }
 507async-channel = "2.5.0"
 508async-compat = "0.2.1"
 509async-compression = { version = "0.4", features = ["bzip2", "gzip", "futures-io"] }
 510async-dispatcher = "0.1"
 511async-fs = "2.1"
 512async-lock = "2.1"
 513async-pipe = { git = "https://github.com/zed-industries/async-pipe-rs", rev = "82d00a04211cf4e1236029aa03e6b6ce2a74c553" }
 514async-recursion = "1.0.0"
 515async-tar = "0.5.1"
 516async-task = "4.7"
 517async-trait = "0.1"
 518async-tungstenite = "0.31.0"
 519async_zip = { version = "0.0.18", features = ["deflate", "deflate64"] }
 520aws-config = { version = "1.8.10", features = ["behavior-version-latest"] }
 521aws-credential-types = { version = "1.2.8", features = [
 522    "hardcoded-credentials",
 523] }
 524aws-sdk-bedrockruntime = { version = "1.112.0", features = [
 525    "behavior-version-latest",
 526] }
 527aws-smithy-runtime-api = { version = "1.9.2", features = ["http-1x", "client"] }
 528aws-smithy-types = { version = "1.3.4", features = ["http-body-1-x"] }
 529backtrace = "0.3"
 530base64 = "0.22"
 531bitflags = "2.6.0"
 532brotli = "8.0.2"
 533bytes = "1.0"
 534cargo_metadata = "0.19"
 535cargo_toml = "0.21"
 536brush-parser = "0.3"
 537cfg-if = "1.0.3"
 538chardetng = "0.1"
 539chrono = { version = "0.4", features = ["serde"] }
 540ciborium = "0.2"
 541circular-buffer = "1.0"
 542clap = { version = "4.4", features = ["derive", "wrap_help"] }
 543cocoa = "=0.26.0"
 544cocoa-foundation = "=0.2.0"
 545convert_case = "0.8.0"
 546core-foundation = "=0.10.0"
 547core-foundation-sys = "0.8.6"
 548core-video = { version = "0.5.2", features = ["metal"] }
 549cpal = "0.17"
 550crash-handler = "0.6"
 551criterion = { version = "0.5", features = ["html_reports"] }
 552ctor = "0.4.0"
 553dap-types = { git = "https://github.com/zed-industries/dap-types", rev = "1b461b310481d01e02b2603c16d7144b926339f8" }
 554dashmap = "6.0"
 555derive_more = { version = "2.1.1", features = [
 556    "add",
 557    "add_assign",
 558    "deref",
 559    "deref_mut",
 560    "display",
 561    "from_str",
 562    "mul",
 563    "mul_assign",
 564    "not",
 565] }
 566dirs = "4.0"
 567documented = "0.9.1"
 568dotenvy = "0.15.0"
 569dunce = "1.0"
 570ec4rs = "1.1"
 571emojis = "0.6.1"
 572env_logger = "0.11"
 573encoding_rs = "0.8"
 574exec = "0.3.1"
 575fancy-regex = "0.17.0"
 576fork = "0.4.0"
 577futures = "0.3"
 578futures-concurrency = "7.7.1"
 579futures-lite = "1.13"
 580gh-workflow = { git = "https://github.com/zed-industries/gh-workflow", rev = "37f3c0575d379c218a9c455ee67585184e40d43f" }
 581git2 = { version = "0.20.1", default-features = false, features = ["vendored-libgit2"] }
 582globset = "0.4"
 583heapless = "0.9.2"
 584handlebars = "4.3"
 585heck = "0.5"
 586heed = { version = "0.21.0", features = ["read-txn-no-tls"] }
 587hex = "0.4.3"
 588human_bytes = "0.4.1"
 589html5ever = "0.27.0"
 590http = "1.1"
 591http-body = "1.0"
 592ignore = "0.4.22"
 593image = "0.25.1"
 594imara-diff = "0.1.8"
 595indexmap = { version = "2.7.0", features = ["serde"] }
 596indoc = "2"
 597inventory = "0.3.19"
 598itertools = "0.14.0"
 599json_dotpath = "1.1"
 600jsonschema = "0.37.0"
 601jsonwebtoken = "10.0"
 602jupyter-protocol = "1.4.0"
 603jupyter-websocket-client = "1.0.0"
 604libc = "0.2"
 605libsqlite3-sys = { version = "0.30.1", features = ["bundled"] }
 606linkify = "0.10.0"
 607libwebrtc = "0.3.26"
 608livekit = { version = "0.7.32", features = ["tokio", "rustls-tls-native-roots"] }
 609log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
 610lsp-types = { git = "https://github.com/zed-industries/lsp-types", rev = "c7396459fefc7886b4adfa3b596832405ae1e880" }
 611mach2 = "0.5"
 612markup5ever_rcdom = "0.3.0"
 613metal = "0.33"
 614minidumper = "0.9"
 615moka = { version = "0.12.10", features = ["sync"] }
 616naga = { version = "29.0", features = ["wgsl-in"] }
 617nanoid = "0.4"
 618nbformat = "1.2.0"
 619nix = "0.29"
 620nucleo = "0.5"
 621num-format = "0.4.4"
 622objc = "0.2"
 623objc2-app-kit = { version = "0.3", default-features = false, features = [ "NSGraphics" ] }
 624objc2-foundation = { version = "=0.3.2", default-features = false, features = [
 625    "NSArray",
 626    "NSAttributedString",
 627    "NSBundle",
 628    "NSCoder",
 629    "NSData",
 630    "NSDate",
 631    "NSDictionary",
 632    "NSEnumerator",
 633    "NSError",
 634    "NSGeometry",
 635    "NSNotification",
 636    "NSNull",
 637    "NSObjCRuntime",
 638    "NSObject",
 639    "NSProcessInfo",
 640    "NSRange",
 641    "NSRunLoop",
 642    "NSString",
 643    "NSURL",
 644    "NSUndoManager",
 645    "NSValue",
 646    "objc2-core-foundation",
 647    "std",
 648] }
 649open = "5.0.0"
 650ordered-float = "2.1.1"
 651palette = { version = "0.7.5", default-features = false, features = ["std"] }
 652parking_lot = "0.12.1"
 653partial-json-fixer = "0.5.3"
 654parse_int = "0.9"
 655pciid-parser = "0.8.0"
 656pathdiff = "0.2"
 657percent-encoding = "2.3.2"
 658pet = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "9e61a22af989fe54937bf07c9f9cff1bc53d9056" }
 659pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "9e61a22af989fe54937bf07c9f9cff1bc53d9056" }
 660pet-core = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "9e61a22af989fe54937bf07c9f9cff1bc53d9056" }
 661pet-fs = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "9e61a22af989fe54937bf07c9f9cff1bc53d9056" }
 662pet-poetry = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "9e61a22af989fe54937bf07c9f9cff1bc53d9056" }
 663pet-reporter = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "9e61a22af989fe54937bf07c9f9cff1bc53d9056" }
 664pet-virtualenv = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "9e61a22af989fe54937bf07c9f9cff1bc53d9056" }
 665portable-pty = "0.9.0"
 666postage = { version = "0.5", features = ["futures-traits"] }
 667pretty_assertions = { version = "1.3.0", features = ["unstable"] }
 668proc-macro2 = "1.0.93"
 669profiling = "1"
 670# replace this with main when #635 is merged
 671proptest = { git = "https://github.com/proptest-rs/proptest", rev = "3dca198a8fef1b32e3a66f1e1897c955b4dc5b5b", features = ["attr-macro"] }
 672proptest-derive = "0.8.0"
 673prost = "0.9"
 674prost-build = "0.9"
 675prost-types = "0.9"
 676pollster = "0.4.0"
 677pulldown-cmark = { version = "0.13.0", default-features = false }
 678quote = "1.0.9"
 679rand = "0.9"
 680rayon = "1.8"
 681regex = "1.5"
 682# WARNING: If you change this, you must also publish a new version of zed-reqwest to crates.io
 683reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "c15662463bda39148ba154100dd44d3fba5873a4", default-features = false, features = [
 684    "charset",
 685    "http2",
 686    "macos-system-configuration",
 687    "multipart",
 688    "rustls-tls-native-roots",
 689    "socks",
 690    "stream",
 691], package = "zed-reqwest", version = "0.12.15-zed" }
 692rsa = "0.9.6"
 693runtimelib = { version = "1.4.0", default-features = false, features = [
 694    "async-dispatcher-runtime", "aws-lc-rs"
 695] }
 696rust-embed = { version = "8.11", features = ["include-exclude"] }
 697rustc-hash = "2.1.0"
 698rustls = { version = "0.23.26" }
 699rustls-platform-verifier = "0.5.0"
 700# WARNING: If you change this, you must also publish a new version of zed-scap to crates.io
 701scap = { git = "https://github.com/zed-industries/scap", rev = "4afea48c3b002197176fb19cd0f9b180dd36eaac", default-features = false, package = "zed-scap", version = "0.0.8-zed" }
 702schemars = { version = "1.0", features = ["indexmap2"] }
 703semver = { version = "1.0", features = ["serde"] }
 704serde = { version = "1.0.221", features = ["derive", "rc"] }
 705serde_json = { version = "1.0.144", features = ["preserve_order", "raw_value"] }
 706serde_json_lenient = { version = "0.2", features = [
 707    "preserve_order",
 708    "raw_value",
 709] }
 710serde_path_to_error = "0.1.17"
 711serde_urlencoded = "0.7"
 712sha2 = "0.10"
 713shellexpand = "2.1.0"
 714shlex = "1.3.0"
 715simplelog = "0.12.2"
 716slotmap = "1.0.6"
 717smallvec = { version = "1.6", features = ["union", "const_new"] }
 718smol = "2.0"
 719sqlformat = "0.2"
 720stacksafe = "0.1"
 721streaming-iterator = "0.1"
 722strsim = "0.11"
 723strum = { version = "0.27.2", features = ["derive"] }
 724syn = { version = "2.0.101", features = ["full", "extra-traits", "visit-mut"] }
 725sys-locale = "0.3.1"
 726sysinfo = "0.37.0"
 727take-until = "0.2.0"
 728tempfile = "3.20.0"
 729thiserror = "2.0.12"
 730tiktoken-rs = { git = "https://github.com/zed-industries/tiktoken-rs", rev = "2570c4387a8505fb8f1d3f3557454b474f1e8271" }
 731time = { version = "0.3", features = [
 732    "macros",
 733    "parsing",
 734    "serde",
 735    "serde-well-known",
 736    "formatting",
 737    "local-offset",
 738] }
 739tiny_http = "0.12"
 740tokio = { version = "1" }
 741tokio-socks = { version = "0.5.2", default-features = false, features = [
 742    "futures-io",
 743    "tokio",
 744] }
 745toml = "0.8"
 746toml_edit = { version = "0.22", default-features = false, features = [
 747    "display",
 748    "parse",
 749    "serde",
 750] }
 751tower-http = "0.4.4"
 752tree-sitter = { version = "0.26.8", features = ["wasm"] }
 753tree-sitter-bash = "0.25.1"
 754tree-sitter-c = "0.24.1"
 755tree-sitter-cpp = { git = "https://github.com/tree-sitter/tree-sitter-cpp", rev = "5cb9b693cfd7bfacab1d9ff4acac1a4150700609" }
 756tree-sitter-css = "0.23"
 757tree-sitter-diff = "0.1.0"
 758tree-sitter-elixir = "0.3"
 759tree-sitter-embedded-template = "0.23.0"
 760tree-sitter-gitcommit = { git = "https://github.com/zed-industries/tree-sitter-git-commit", rev = "88309716a69dd13ab83443721ba6e0b491d37ee9" }
 761tree-sitter-go = "0.25"
 762tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "2e886870578eeba1927a2dc4bd2e2b3f598c5f9a", package = "tree-sitter-gomod" }
 763tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }
 764tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }
 765tree-sitter-html = "0.23"
 766tree-sitter-jsdoc = "0.23"
 767tree-sitter-json = "0.24"
 768tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" }
 769tree-sitter-python = "0.25"
 770tree-sitter-regex = "0.24"
 771tree-sitter-ruby = "0.23"
 772tree-sitter-rust = "0.24.2"
 773tree-sitter-typescript = { git = "https://github.com/zed-industries/tree-sitter-typescript", rev = "e2c53597d6a5d9cf7bbe8dccde576fe1e46c5899" } # https://github.com/tree-sitter/tree-sitter-typescript/pull/347
 774tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
 775tracing = "0.1.40"
 776unicase = "2.6"
 777unicode-script = "0.5.7"
 778unicode-segmentation = "1.10"
 779unicode-width = "0.2"
 780unindent = "0.2.0"
 781url = "2.2"
 782urlencoding = "2.1.2"
 783uuid = { version = "1.1.2", features = ["v4", "v5", "v7", "serde"] }
 784walkdir = "2.5"
 785wasm-encoder = "0.221"
 786wasmparser = "0.221"
 787wasmtime = { version = "36", default-features = false, features = [
 788    "async",
 789    "demangle",
 790    "runtime",
 791    "cranelift",
 792    "component-model",
 793    "incremental-cache",
 794    "parallel-compilation",
 795] }
 796wasmtime-wasi = "36"
 797wax = "0.7"
 798which = "6.0.0"
 799wasm-bindgen = "0.2.113"
 800web-time = "1.1.0"
 801webrtc-sys = "0.3.23"
 802wgpu = { git = "https://github.com/zed-industries/wgpu.git", branch = "v29" }
 803windows-core = "0.61"
 804yawc = "0.2.5"
 805zeroize = "1.8"
 806zstd = "0.11"
 807
 808
 809[workspace.dependencies.windows]
 810version = "0.61"
 811features = [
 812    "Foundation_Numerics",
 813    "Globalization_DateTimeFormatting",
 814    "Storage_Search",
 815    "Storage_Streams",
 816    "System_Threading",
 817    "UI_ViewManagement",
 818    "Wdk_System_SystemServices",
 819    "Win32_Foundation",
 820    "Win32_Globalization",
 821    "Win32_Graphics_Direct3D",
 822    "Win32_Graphics_Direct3D11",
 823    "Win32_Graphics_Direct3D_Fxc",
 824    "Win32_Graphics_DirectComposition",
 825    "Win32_Graphics_DirectWrite",
 826    "Win32_Graphics_DirectManipulation",
 827    "Win32_Graphics_Dwm",
 828    "Win32_Graphics_Dxgi",
 829    "Win32_Graphics_Dxgi_Common",
 830    "Win32_Graphics_Gdi",
 831    "Win32_Graphics_Imaging",
 832    "Win32_Graphics_Hlsl",
 833    "Win32_Networking_WinSock",
 834    "Win32_Security",
 835    "Win32_Security_Credentials",
 836    "Win32_Security_Cryptography",
 837    "Win32_Storage_FileSystem",
 838    "Win32_System_Com",
 839    "Win32_System_Com_StructuredStorage",
 840    "Win32_System_Console",
 841    "Win32_System_Diagnostics_Debug",
 842    "Win32_System_DataExchange",
 843    "Win32_System_IO",
 844    "Win32_System_LibraryLoader",
 845    "Win32_System_Memory",
 846    "Win32_System_Ole",
 847    "Win32_System_Performance",
 848    "Win32_System_Pipes",
 849    "Win32_System_RestartManager",
 850    "Win32_System_SystemInformation",
 851    "Win32_System_SystemServices",
 852    "Win32_System_Threading",
 853    "Win32_System_Variant",
 854    "Win32_System_WinRT",
 855    "Win32_UI_Controls",
 856    "Win32_UI_HiDpi",
 857    "Win32_UI_Input_Ime",
 858    "Win32_UI_Input_KeyboardAndMouse",
 859    "Win32_UI_Input_Pointer",
 860    "Win32_UI_Shell",
 861    "Win32_UI_Shell_Common",
 862    "Win32_UI_Shell_PropertiesSystem",
 863    "Win32_UI_WindowsAndMessaging",
 864    "Win32_Media",
 865]
 866
 867[patch.crates-io]
 868async-task = { git = "https://github.com/smol-rs/async-task.git", rev = "b4486cd71e4e94fbda54ce6302444de14f4d190e" }
 869notify = { git = "https://github.com/zed-industries/notify.git", rev = "ce58c24cad542c28e04ced02e20325a4ec28a31d" }
 870notify-types = { git = "https://github.com/zed-industries/notify.git", rev = "ce58c24cad542c28e04ced02e20325a4ec28a31d" }
 871windows-capture = { git = "https://github.com/zed-industries/windows-capture.git", rev = "f0d6c1b6691db75461b732f6d5ff56eed002eeb9" }
 872calloop = { git = "https://github.com/zed-industries/calloop" }
 873livekit = { git = "https://github.com/zed-industries/livekit-rust-sdks", rev = "147fbca3d4b592d96d33f5e6a84b59fc0b5d9bf1" }
 874libwebrtc = { git = "https://github.com/zed-industries/livekit-rust-sdks", rev = "147fbca3d4b592d96d33f5e6a84b59fc0b5d9bf1" }
 875webrtc-sys = { git = "https://github.com/zed-industries/livekit-rust-sdks", rev = "147fbca3d4b592d96d33f5e6a84b59fc0b5d9bf1" }
 876
 877[profile.dev]
 878split-debuginfo = "unpacked"
 879incremental = true
 880codegen-units = 16
 881
 882# mirror configuration for crates compiled for the build platform
 883# (without this cargo will compile ~400 crates twice)
 884[profile.dev.build-override]
 885codegen-units = 16
 886split-debuginfo = "unpacked"
 887debug = true
 888
 889[profile.dev.package]
 890# proc-macros start
 891gpui_macros = { opt-level = 3 }
 892derive_refineable = { opt-level = 3 }
 893settings_macros = { opt-level = 3 }
 894sqlez_macros = { opt-level = 3, codegen-units = 1 }
 895ui_macros = { opt-level = 3 }
 896util_macros = { opt-level = 3 }
 897quote = { opt-level = 3 }
 898syn = { opt-level = 3 }
 899proc-macro2 = { opt-level = 3 }
 900# proc-macros end
 901
 902taffy = { opt-level = 3 }
 903resvg = { opt-level = 3 }
 904wasmtime = { opt-level = 3 }
 905# Build single-source-file crates with cg=1 as it helps make `cargo build` of a whole workspace a bit faster
 906activity_indicator = { codegen-units = 1 }
 907assets = { codegen-units = 1 }
 908breadcrumbs = { codegen-units = 1 }
 909collections = { codegen-units = 1 }
 910command_palette = { codegen-units = 1 }
 911command_palette_hooks = { codegen-units = 1 }
 912feature_flags = { codegen-units = 1 }
 913file_icons = { codegen-units = 1 }
 914image_viewer = { codegen-units = 1 }
 915edit_prediction_ui = { codegen-units = 1 }
 916install_cli = { codegen-units = 1 }
 917journal = { codegen-units = 1 }
 918json_schema_store = { codegen-units = 1 }
 919lmstudio = { codegen-units = 1 }
 920menu = { codegen-units = 1 }
 921notifications = { codegen-units = 1 }
 922ollama = { codegen-units = 1 }
 923outline = { codegen-units = 1 }
 924paths = { codegen-units = 1 }
 925prettier = { codegen-units = 1 }
 926project_symbols = { codegen-units = 1 }
 927refineable = { codegen-units = 1 }
 928release_channel = { codegen-units = 1 }
 929reqwest_client = { codegen-units = 1 }
 930session = { codegen-units = 1 }
 931sidebar = { codegen-units = 1 }
 932snippet = { codegen-units = 1 }
 933snippets_ui = { codegen-units = 1 }
 934story = { codegen-units = 1 }
 935telemetry_events = { codegen-units = 1 }
 936theme_selector = { codegen-units = 1 }
 937time_format = { codegen-units = 1 }
 938ui_input = { codegen-units = 1 }
 939zed_actions = { codegen-units = 1 }
 940
 941[profile.release]
 942debug = "limited"
 943lto = "thin"
 944codegen-units = 1
 945
 946[profile.release.package]
 947zed = { codegen-units = 16 }
 948
 949[profile.release-fast]
 950inherits = "release"
 951debug = "full"
 952lto = false
 953codegen-units = 16
 954
 955[workspace.lints.rust]
 956unexpected_cfgs = { level = "allow" }
 957
 958[workspace.lints.clippy]
 959dbg_macro = "deny"
 960todo = "deny"
 961
 962declare_interior_mutable_const = "deny"
 963
 964redundant_clone = "deny"
 965disallowed_methods = "deny"
 966
 967# We currently do not restrict any style rules
 968# as it slows down shipping code to Zed.
 969#
 970# Running ./script/clippy can take several minutes, and so it's
 971# common to skip that step and let CI do it. Any unexpected failures
 972# (which also take minutes to discover) thus require switching back
 973# to an old branch, manual fixing, and re-pushing.
 974#
 975# In the future we could improve this by either making sure
 976# Zed can surface clippy errors in diagnostics (in addition to the
 977# rust-analyzer errors), or by having CI fix style nits automatically.
 978style = { level = "allow", priority = -1 }
 979
 980# Individual rules that have violations in the codebase:
 981type_complexity = "allow"
 982let_underscore_future = "allow"
 983
 984# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
 985# warning on this rule produces a lot of noise.
 986single_range_in_vec_init = "allow"
 987
 988# in Rust it can be very tedious to reduce argument count without
 989# running afoul of the borrow checker.
 990too_many_arguments = "allow"
 991
 992# We often have large enum variants yet we rarely actually bother with splitting them up.
 993large_enum_variant = "allow"
 994
 995# Boolean expressions can be hard to read, requiring only the minimal form gets in the way
 996nonminimal_bool = "allow"
 997
 998[workspace.metadata.cargo-machete]
 999ignored = [
1000    "bindgen",
1001    "cbindgen",
1002    "prost_build",
1003    "serde",
1004    "component",
1005    "documented",
1006    "sea-orm-macros",
1007]