Skip to content

Allow assets exported from libraries to be preloaded by the consumer #50

@ealmloff

Description

@ealmloff

Specific Demand

Libraries can't preload assets directly, but they could export an asset that could be preloaded by the final binary

Implement Suggestion

mod library {
    const ASSET: &Asset = manganis::mg!("image.png");
}

// You could preload the asset defined in the library in the final binary
const ASSET: &Asset = manganis::mg!(ASSET.preload());

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions