Pretty sure the recent Coldcard exploit couldn’t happen in Rust.
The Rust compiler would have certainly caught the uncalled function.
And the #ifdef directive — that entire category of bug-prone textual preprocessor-based handling — just doesn’t exist in the same guise in Rust.