Skip to main content

export_global

Macro export_global 

Source
macro_rules! export_global {
    (static REGISTRY: $ty:ty = $init:expr;) => { ... };
}
Expand description

export_global! { static REGISTRY: ty = expr; } exports the provided registry as the global registry singleton.

This macro must only be used at most once in every binary or shared library.