Skip to content

Commit 3b5ec29

Browse files
committed
add warning
1 parent 24e59c5 commit 3b5ec29

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,23 @@
66
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/Rust-for-Linux/pin-init/test.yml)
77
# `pin-init`
88

9+
> [!WARNING]
10+
>
11+
> This crate will migrate to the `pin-init` crate in a future version.
12+
>
13+
> * A new version of the `pinned-init` crate will be released stating which is
14+
> the version of `pin-init` to upgrade to.
15+
> * No further updates will happen under the name `pinned-init` and all users
16+
> should change to use `pin-init` instead.
17+
> * As of writing the migration has not yet been started, so the `pin-init`
18+
> crate is currently not a drop-in replacement for this crate.
19+
> * You can follow development of this crate over at
20+
> <https://github.com/Rust-for-Linux/pin-init> (that repository already has
21+
> been renamed). The `pinned-init` crate's contents are found in the [legacy
22+
> branch].
23+
24+
[legacy branch]: https://github.com/Rust-for-Linux/pin-init/tree/legacy
25+
926
<!-- cargo-rdme start -->
1027

1128
Library to safely and fallibly initialize pinned `struct`s using in-place constructors.

src/lib.rs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
// SPDX-License-Identifier: Apache-2.0 OR MIT
22

3+
//! <div class="warning">
4+
//!
5+
//! # **Warning:** This crate will migrate to the `pin-init` crate in a future version.
6+
//!
7+
//! * A new version of the `pinned-init` crate will be released stating which is the version of
8+
//! `pin-init` to upgrade to.
9+
//! * No further updates will happen under the name `pinned-init` and all users should change to
10+
//! use `pin-init` instead.
11+
//! * As of writing the migration has not yet been started, so the `pin-init` crate is currently
12+
//! not a drop-in replacement for this crate.
13+
//! * You can follow development of this crate over at <https://github.com/Rust-for-Linux/pin-init>
14+
//! (that repository already has been renamed). The `pinned-init` crate's contents are found in
15+
//! the [legacy branch].
16+
//!
17+
//! [legacy branch]: https://github.com/Rust-for-Linux/pin-init/tree/legacy
18+
//!
19+
//! </div>
20+
//!
21+
//!
22+
//!
323
//! Library to safely and fallibly initialize pinned `struct`s using in-place constructors.
424
//!
525
//! [Pinning][pinning] is Rust's way of ensuring data does not move.

0 commit comments

Comments
 (0)