rust: pin-init: Implement `Wrapper` for `UnsafePinned` behind feature flag.
authorChristian Schrefl <chrisi.schrefl@gmail.com>
Mon, 21 Apr 2025 22:18:06 +0000 (22:18 +0000)
committerBenno Lossin <benno.lossin@proton.me>
Thu, 1 May 2025 16:13:56 +0000 (18:13 +0200)
commitb862aac8fd46601fa20226c9f5d6c6d308678b4d
tree583de3eec0aa42ea5664e823dd961afd53e4f850
parent2f7c73825f8f435ebdfb2cfa3b01cfa2b1c79041
rust: pin-init: Implement `Wrapper` for `UnsafePinned` behind feature flag.

Add the `unsafe-pinned` feature which gates the `Wrapper`
implementation of the `core::pin::UnsafePinned` struct.

For now this is just a cargo feature, but once `core::pin::UnsafePinned`
is stable a config flag can be added to allow the usage of this
implementation in the linux kernel.

Signed-off-by: Christian Schrefl <chrisi.schrefl@gmail.com>
Link: https://github.com/Rust-for-Linux/pin-init/pull/37/commits/99cb1934425357e780ea5b0628f66633123847b8
[ Fixed commit authorship. - Benno ]
Signed-off-by: Benno Lossin <benno.lossin@proton.me>
rust/pin-init/src/lib.rs