If performance is a critical factor, then formal verification of many c programs is probably cheaper than a rewrite in rust these days. There are still limits (especially around concurrency and syscall modelling), but given the money and energy being poured into the field at the moment, I would be surprised if those remain serious obstacles for long.