Using Scarb in a starket-foundry project requires having a Rust toolchain installed.
Install Rust with:
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
And try to build