Re: [PATCH v8 0/4] rust: replace kernel::str::CStr w/ core::ffi::CStr

From: Tamir Duberstein
Date: Fri Feb 21 2025 - 11:12:30 EST


On Fri, Feb 21, 2025 at 9:28 AM Gary Guo <gary@xxxxxxxxxxx> wrote:
>
> I'd want to add that we currently also have our own `BStr` and then we
> have the `CStr` -> `BStr` -> `[u8]` deref chain which is quite often
> useful. If we move to the `core::ffi::CStr` then we would lose ability
> to do so.

True. The best we could do is `impl AsRef<BStr> for CStr`, I think.