Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 741 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 741 Bytes

Bag   Build Status License

Bag is badass declarative asset loader and bundler for Rust.

bag!{static LOGO: TryBag<RgbaImage> = "image/logo.png"};
bag!{static LICENCE: TryBag<str> = "LICENSE"};
[alias]
"image/**" = "public/img/**"

[runtime.alias]
"image/**" = "assets/**"

[target."cfg(wasm)"]
static = true

[asset."LICENSE"]
static = true

[format."image::RgbaImage"]
loader = "bag_image::LoadImageBuffer"

None of the above actually works yet, but I can dream.