Jesus… Did you even follow the link the error gave you ? There’s literally a step by step guide there…
- Switch to whatever user you run hass as
- curl https://sh.rustup.rs -sSf | sh
- wait
- try run
rustc
andcargo
from the command line to see if it works - as the user you run hass as.
done.