Using Cargo
You can follow the instructions to install cargo and rust compiler, among other standard ecosystem tools with the tool, which is maintained by the Rust Foundation.
On Debian/Ubuntu, you can install Cargo, the Rust source and the Rust formatter with
Some folks also like to use the family of IDEs, which do their own analysis but have their own tradeoffs. If you prefer them, you can install the Rust Plugin. Please take note that as of January 2023 debugging only works on the CLion version of the JetBrains IDEA suite.