8 releases

0.1.2 Oct 18, 2025
0.1.1 Dec 10, 2023
0.1.1-rc1 Dec 6, 2023
0.1.0 Jul 20, 2023
0.0.0 Jun 20, 2023

#493 in Development tools

Download history 1070/week @ 2025-09-22 1310/week @ 2025-09-29 771/week @ 2025-10-06 819/week @ 2025-10-13 1657/week @ 2025-10-20 1292/week @ 2025-10-27 1836/week @ 2025-11-03 1413/week @ 2025-11-10 117/week @ 2025-11-17 125/week @ 2025-11-24 161/week @ 2025-12-01 192/week @ 2025-12-08 168/week @ 2025-12-15 156/week @ 2025-12-22 127/week @ 2025-12-29 2791/week @ 2026-01-05

3,255 downloads per month
Used in 8 crates (5 directly)

Zlib OR MIT OR Apache-2.0

32KB
310 lines

::maybe-dangling

ManuallyDrop<T> and MaybeDangling<T> semantics in stable Rust as per https://github.com/rust-lang/rfcs/pull/3336

Repository Latest version Documentation MSRV License CI no_std compatible

This crates offers two types, ManuallyDrop<T>, and MaybeDangling<T>, which do not carry aliasing/dereferenceable-ity properties w.r.t. the T they each contain, which means they are allowed to:

  1. have some expired value inside of them, such as T = &'expired,
  2. be fed to a function that does not inspect its value (such as ::core::mem::forget()),
  3. exhibit well-defined behavior (no UB!).

References

No runtime deps

Features