I'm trying to run a project in rust. I keep running into this edition 2021 error:
% rustc --version
rustc 1.60.0-nightly (a7e2e3396 2022-01-08)
I ran all this:
If you are trying to migrate from the previous edition (2018), the
process requires following these steps:
1. Start with edition = "2018" in Cargo.toml
2. Run cargo fix --edition
3. Modify Cargo.toml to set edition = "2021"
4. Run cargo build or cargo test to verify the fixes worked
I keep getting this error:
Failed to obtain package metadata: Error during execution of cargo metadata: error: failed to parse manifest at /workdir/program/Cargo.toml
Caused by:
the cargo feature edition2021 requires a nightly version of Cargo, but this is the stable channel
I'm at a total loss here. I've found a lot of conflicting information. I've changed directories, found answers on SO like this: Unable to specify `edition2021` in order to use unstable packages in Rust
I'm at a total loss here. What is the step I'm missing here? I'm on MacOS Big Sur.