3 releases (breaking)
0.4.0 | Oct 18, 2023 |
---|---|
0.3.0 | Sep 14, 2023 |
0.2.0 | Apr 18, 2023 |
#19 in #asset-manager
116 downloads per month
Used in 21 crates
(via wick-config)
32KB
862 lines
This crate provides a derive macro for the AssetManager trait.
Example
use derive_asset_container::AssetManager;
#[derive(Clone, AssetManager)]
#[asset(asset(TestAsset))]
struct Struct {
field: TestAsset,
inner: InnerStruct,
}
#[derive(Clone, AssetManager)]
#[asset(asset(TestAsset), lazy)]
struct InnerStruct {
field: TestAsset,
}
Dependencies
~1.2–2MB
~40K SLoC