Expand description

An example of the usage and generated docs.

Example code:

init_token::init! {
    /// The magic token to get [`MY_STATIC`] working.
    pub token MyToken;
    /// My cool static.
    pub static MY_STATIC: i32 = std::env::var("MY_STATIC").unwrap().parse().unwrap();
}

init_token::init_big! {
    /// The magic token to get [`MY_BIG_STATIC`] working.
    pub token MyBigToken;
    /// My cool static.
    pub static MY_BIG_STATIC: i32 = 0;

    init(s) {
        *s = std::env::var("MY_STATIC").unwrap().parse().unwrap();
    }
}

Structs

The magic token to get MY_BIG_STATIC working.

The magic token to get MY_STATIC working.

Statics

My cool static.

My cool static.