Globals 🌎
Painless globals in Rust for people who don't mind being unsafe because sometimes it's not a big deal. Library writers (especially in web assembly) are many times forced to write global data because they don't have a single point of entry. This library isn't gauranteed multi-thread safe for now, but that may not be a problem given your use case.
[]
= "0.0.2"
add something into global state
let f = Foo
let handle = add;
get something from global state
let f = get;
let f = get_mut;
remove something from global state
let f = remove;
get all things of a certain type
let fs = ;
for f in fs.iter
get a singleton of a type
Type must implement Default
let f = ;
let f = ;