1 unstable release
0.1.0 | Nov 4, 2024 |
---|
#3 in #now
145 downloads per month
9KB
pin-utils
Utilities for pinning
Note: Since Rust 1.68, all APIs in this crate are now soft-deprecated or deprecated:
pin_utils::pin_mut!
is soft-deprecated in favor ofpin!
macro in the standard library that stabilized in Rust 1.68.pin_utils::{unsafe_pinned,unsafe_unpinned}
are deprecated in favor of safe alternatives: pin-project, pin-project-lite
Usage
First, add this to your Cargo.toml
:
[dependencies]
pin-utils = "0.1"
Now, you can use it:
use pin_utils::pin_mut; // And more...
The current pin-utils requires Rust 1.33 or later.
License
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in pin-utils by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.