The Hidden Costs of Rust and How to Avoid Them