pub fn add_lib<T>(lib: T) where
Registers an instance of a library type.
Library types are singletons: if the active
Runtime already contains a library of type
T, this function will panic.
When the active
Runtime is dropped, each of its libraries will be dropped in the
reverse order that they were registered.