3 releases
Uses old Rust 2015
0.1.2 | Apr 11, 2016 |
---|---|
0.1.1 | Jan 15, 2016 |
0.1.0 | Jan 14, 2016 |
#7 in #destructor
4,908 downloads per month
Used in 24 crates
(2 directly)
4KB
94 lines
Leak a piece of data by never calling its destructor
Useful for things that are going to be used for the life of the program, but aren't technically static (because they are created in response to arguments, environment, or other configuration/data read at program start).
This is a modified version of the proposed rfc: https://github.com/rust-lang/rfcs/pull/1233
Notable changes:
- for convenience, leak() is a non-static method