Steven Fackler
Steven Fackler
👍 on moving it out!
When would the lambda run? lazy_static is called lazy static because the lambda is evaluated on first access. If you want that behavior, you can just make a lazy static...
Creating a unit lazy static is the same thing as creating a lazy static of any other type - your initializer does some computation and then returns `()`. You can...
All code runs from a function scope. These two code samples are basically equivalent: ```rust static ONCE: Once = Once::new(); fn init_stuff() { ONCE.call_once(|| do_stuff()); } ``` ```rust lazy_static! {...
That error does not have anything to do with the attribute. The type of MY_MUTEX is not `Mutex`, but rather a new type (named `MY_MUTEX`) that derefs to `Mutex`. You...
What code specifically compiles or does not compile?
Oh, sorry, I thought that error was coming from the usage site. It doesn't appear to be due to the complexity of the cfg, just if the cfg evaluates to...
Good question! This crate is almost identical to the unix::net module right now. I think the only difference is that this crate will accept abstract namespace addresses while the standard...
Nursery crates need to build against the last two Rust releases (i.e. 1.9 and 1.10 right now), so we'll have to wait a bit to do that.
Abstract addresses will be broken as they're not supported by the standard library implementation.