#memory #zeroed #unsafe #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

#1990 in Rust patterns

Download history 968/week @ 2024-12-07 899/week @ 2024-12-14 529/week @ 2024-12-21 251/week @ 2024-12-28 637/week @ 2025-01-04 798/week @ 2025-01-11 767/week @ 2025-01-18 667/week @ 2025-01-25 708/week @ 2025-02-01 854/week @ 2025-02-08 913/week @ 2025-02-15 1016/week @ 2025-02-22 852/week @ 2025-03-01 1036/week @ 2025-03-08 1289/week @ 2025-03-15 929/week @ 2025-03-22

4,255 downloads per month
Used in 282 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