[PATCH v10 3/5] rust: replace `CStr` with `core::ffi::CStr`