3 releases

Uses old Rust 2015

0.1.2 Apr 11, 2016
0.1.1 Jan 15, 2016
0.1.0 Jan 14, 2016

#1268 in Data structures

Download history 13673/week @ 2023-11-24 7407/week @ 2023-12-01 6458/week @ 2023-12-08 10845/week @ 2023-12-15 4357/week @ 2023-12-22 3061/week @ 2023-12-29 3811/week @ 2024-01-05 2312/week @ 2024-01-12 3818/week @ 2024-01-19 881/week @ 2024-01-26 284/week @ 2024-02-02 482/week @ 2024-02-09 392/week @ 2024-02-16 3346/week @ 2024-02-23 547/week @ 2024-03-01 365/week @ 2024-03-08

4,705 downloads per month
Used in 17 crates (2 directly)

Apache-2.0 OR MIT

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

No runtime deps