Installing Cargo/Rest on Raspberry Pi 400

On my Raspberry Pi 400 I’m running the 64bit Raspberry Pi OS. The version of Cargo and Rustc are not recent enough to install ncgopher. What worked for me was to first install cargo via the instructions in the The Cargo Book.

curl -sSf | sh

An important note is if you previously installed a version of Cargo/Rust via the debian package system you should uninstall it before running the instructions above from the Cargo Book.

With this version I was able to install ncgopher using the simple recipe of

cargo install ncgopher