1 stable release

Uses old Rust 2015

1.0.0 Dec 11, 2017

#7 in #instantiate

MIT license

3KB

AppInstance

Instantiate once in application anytime, will be destroyed once at application exit

pub struct Application { main_window: Window }

impl Application
{
	// Instantiated an Application once
	AppInstance!(pub static instance: Application = Application::new());
	fn new() -> Self { ... }
}
// Application::main_window::drop is going to be called at exit

lib.rs:

Lazy static, dropped value when application is exiting normally

No runtime deps