Skip to content

Cargo tries to install windows-gnu even it seems not require. #4425

@Jason5Lee

Description

@Jason5Lee

Problem

I got this issue when I tried to build zed on Windows. When I run any cargo command under the zed repo, it starts info: syncing channel updates for '1.88-x86_64-pc-windows-gnu'. It's weird since the document requires me to install MSVC and Windows SDK, inferring that it uses MSVC toolchain. So I tries rustup default stable-msvc, then I see:
info: note that the toolchain '1.88-x86_64-pc-windows-gnu' is currently in use (overridden '<zed repo path>\rust-toolchain.toml').

Then I open that rust-toolchain.toml file. It has nothing about windows-gnu, only a windows-msvc target, and now I don't get why it wants to use windows-gnu toolchain.

Steps

  1. Clone the zed repository.
  2. Tries to build it on Windows.

Possible Solution(s)

No response

Notes

No response

Version

cargo 1.88.0 (873a06493 2025-05-10)
release: 1.88.0
commit-hash: 873a0649350c486caf67be772828a4f36bb4734c
commit-date: 2025-05-10
host: x86_64-pc-windows-msvc
libgit2: 1.9.0 (sys:0.20.0 vendored)
libcurl: 8.12.1-DEV (sys:0.4.80+curl-8.12.1 vendored ssl:Schannel)
os: Windows 10.0.26100 (Windows 11 Professional) [64-bit]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions