rust-lang-nursery / lazy-static.rs

A small macro for defining lazy evaluated static variables in Rust.
Apache License 2.0
1.91k stars 111 forks source link

Update to support Rust 1.18 visibility restrictions (see #80) #81

Closed alekratz closed 6 years ago

alekratz commented 7 years ago

Obviously, if there's something dire that needs to be changed or fixed, please let me know (or fix it). The one concern I had was the weirdness that pub(in module) produces with the macros, because it adds an extra argument. I've added a special rule to __lazy_static_internal that allows for a workaround.

KodrAus commented 6 years ago

@Kimundi do you have any thoughts on this?

Kimundi commented 6 years ago

Sorry for the late response. This patch looks good, thanks!