#uninitialized-memory #unsafe #memory #zeroed #nue

uninitialized

Opt-in unsafe uninitialized memory

2 releases

Uses old Rust 2015

0.0.2 Jul 9, 2016
0.0.1 Jul 21, 2015

#2177 in Rust patterns

Download history 844/week @ 2024-07-21 712/week @ 2024-07-28 567/week @ 2024-08-04 1048/week @ 2024-08-11 884/week @ 2024-08-18 941/week @ 2024-08-25 679/week @ 2024-09-01 631/week @ 2024-09-08 728/week @ 2024-09-15 724/week @ 2024-09-22 814/week @ 2024-09-29 596/week @ 2024-10-06 724/week @ 2024-10-13 880/week @ 2024-10-20 857/week @ 2024-10-27 744/week @ 2024-11-03

3,224 downloads per month
Used in 280 crates (4 directly)

MIT license

4KB

uninitialized-rs

travis-badge release-badge docs-badge license-badge

uninitialized provides std::mem::uninitialized() behaviour only when a project is willing to take the risk of uninitialized data being passed to external interfaces. By default it is equivalent to std::mem::zeroed().

Enabling uninitialized

The feature uninitialized may be turned on to revert to the unsafe behaviour. Optionally, the UNSAFE_UNINITIALIZED=1 environment variable may be set at build time.

Documentation

See the documentation for up to date information.

No runtime deps