Re: [PATCH 2/6] rust: binder: transmute transaction data
From: Miguel Ojeda
Date: Tue May 26 2026 - 15:26:54 EST
On Tue, May 26, 2026 at 8:01 PM Tamir Duberstein <tamird@xxxxxxxxxx> wrote:
>
> It is possible to do these conversions through pointer casts that
> avoid `as` so we don't need a function with an `#[allow]`. The
> greppable function you're after here is basically
> https://github.com/rust-lang/project-safe-transmute.
If you mean with the usual combination of `cast*`, `from*` etc. like
we did for others, then that sounds fine.
Regarding Project Safe Transmute, what I have been told last time I
asked about it is that it will take a while for that to come to
fruition... (but we do want it, and meanwhile we will get whatever
`zerocopy` can give us :)
Cheers,
Miguel