[][src]Module jupiter::builder

Provides a builder which can be used to setup and initialize the framework.

This can be used to crate and setup central parts of the framework. As Jupiter provides some optional modules, a builder permits to selectively enable or disable them.

Example

Setting up the framework with all features enabled:

#[tokio::main]
fn main() {
    // Enable all features and build the platform...
    let platform = Builder::new().enable_all().build();

    // Register custom functions here...

    // Start the main event loop of the server...
    platform.require::<Server>().event_loop().await;
}

Structs

Builder

Initializes the framework by creating and initializing all core components.