#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

#2240 in Rust patterns

Download history 415/week @ 2023-12-01 660/week @ 2023-12-08 595/week @ 2023-12-15 498/week @ 2023-12-22 573/week @ 2023-12-29 673/week @ 2024-01-05 543/week @ 2024-01-12 653/week @ 2024-01-19 576/week @ 2024-01-26 662/week @ 2024-02-02 579/week @ 2024-02-09 1041/week @ 2024-02-16 613/week @ 2024-02-23 511/week @ 2024-03-01 612/week @ 2024-03-08 525/week @ 2024-03-15

2,461 downloads per month
Used in 278 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