[PATCH v9 2/4] rust: replace `CStr` with `core::ffi::CStr`