Crate static_assets

Crate static_assets 

Source
Expand description

This crate contains macros for statically including assets in release mode, but dynamically loading them in debug mode.

This is primarily intended for games, allowing you to both avoid file IO in release builds and dynamically reload assets in debug mode.

Macros§

asset_bytes
Load a binary asset statically in release mode, or dynamically in debug.
asset_str
Load a text asset statically in release mode, or dynamically in debug.

Functions§

load_bytes
Used internally by asset_bytes! when loading dynamically.
load_str
Used internally by asset_str! when loading dynamically.