Re: [PATCH 12/22] rust: pin-init: remove kernel-crate dependency

From: Fiona Behrens
Date: Wed Mar 05 2025 - 04:28:05 EST


Benno Lossin <benno.lossin@xxxxxxxxx> writes:

> In order to make pin-init a standalone crate, remove dependencies on
> kernel-specific code such as `ScopeGuard` and `KBox`.
>
> `ScopeGuard` is only used in the `[pin_]init_array_from_fn` functions
> and can easily be replaced by a primitive construct.
>
> `KBox` is only used for type variance of unsized types and can also
> easily be replaced.
>
> Signed-off-by: Benno Lossin <benno.lossin@xxxxxxxxx>

Reviewed-by: Fiona Behrens <me@xxxxxxxxxx>