#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

#2282 in Rust patterns

Download history 814/week @ 2024-02-14 890/week @ 2024-02-21 554/week @ 2024-02-28 535/week @ 2024-03-06 476/week @ 2024-03-13 728/week @ 2024-03-20 1119/week @ 2024-03-27 643/week @ 2024-04-03 433/week @ 2024-04-10 577/week @ 2024-04-17 647/week @ 2024-04-24 916/week @ 2024-05-01 612/week @ 2024-05-08 687/week @ 2024-05-15 673/week @ 2024-05-22 670/week @ 2024-05-29

2,750 downloads per month
Used in 279 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