Closed benma closed 1 year ago
Our own str_from_null_terminated could also be replaced with core::ffi::CStr::from_bytes_until_nul which was stabilized in this Rust release. See https://github.com/rust-lang/rust/blob/b92a41c6760801a7128ca0ec69ba4ba9c9194054/RELEASES.md#stabilized-apis.
str_from_null_terminated
core::ffi::CStr::from_bytes_until_nul
Unfortunately with this release the firmware.bin comes out 1928 bytes larger.
Our own
str_from_null_terminated
could also be replaced withcore::ffi::CStr::from_bytes_until_nul
which was stabilized in this Rust release. See https://github.com/rust-lang/rust/blob/b92a41c6760801a7128ca0ec69ba4ba9c9194054/RELEASES.md#stabilized-apis.Unfortunately with this release the firmware.bin comes out 1928 bytes larger.