rust-analyzer: Failed to load manifest for workspace member
Hello all
I just cloned the repo, and when I run cargo xtask install --server, I get the following error:
error: failed to load manifest at rust-analyzer/xtask/Cargo.toml
Caused by:
failed to parse manifest at rust-analyzer/xtask/Cargo.toml
Caused by:
feature edition2021 is required
consider adding cargo-features = ["edition2021"] to the manifest
Can someone please help me? I really want to have a rust server up and running because currently, I’m learning rust. Huge thanks to anyone who tries to help! 😃
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (6 by maintainers)
Okay, I finally got it to work. For those who have the same issue, use this command:
curl https://sh.rustup.rs -sSf | shThat will, hopefully, install and/or update your
rustcversion. Thanks for all of your help. I’m going to go ahead and close this issue now, since I found the solution.I am using the latest version of rustc
rustc 1.60.0-nightly (27f5d830e 2022-02-02)but still have the same errorIf you’re on Debian/Ubuntu, you should install the toolchain using https://rustup.rs, not the system package.
You will need to update your rustc version. Rustc 1.56 is the oldest currently supported version: https://github.com/rust-analyzer/rust-analyzer/blob/3b3063fb2d1804b3dc42184027ef08073de03fd9/xtask/Cargo.toml#L7