INNER CODE UNIT · Rust

default

dust-engine/dust · crates/app/src/lib.rs:11

    fn default() -> Self {
        let project_dirs = directories::ProjectDirs::from("", "DustEngine", "DustBrowser").unwrap();
        // TODO: have more customized behavior for this.
        Self { project_dirs }
    }
}

pub struct DustApp;
impl Plugin for DustApp {
    fn build(&self, app: &mut App) {
        app.init_resource::<ApplicationSettings>();

        app.register_asset_source("bazel", bazel_asset::bazel_asset_source());
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…