FFI-proof slice::from_raw_parts
Rust Internals [Unofficial]
February 4, 2026
I think having a checked version of these functions for FFI use is a good idea. There's little downside to having the checks. And if you do need every to save every cycle of performance then the uncheck version still exists and can be used in that specific situation.
Discussion in the ATmosphere