Question : cargo insall cargo-cahe this version of Cargo is older than the `2021` edition, and only supports `2015` and `2018` editions.
Answered by : burraq101325
// update rust and it's nightly vesrsion
rustup default stable && rustup update
rustup update nightly && rustup target add wasm32-unknown-unknown --toolchain nightly
//To check the updated version
rustup show
rustup +nightly show
Source : https://docs.substrate.io/main-docs/install/linux/ | Last Update : Thu, 30 Jun 22