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

Download history 48/week @ 2024-07-21 52/week @ 2024-07-28 36/week @ 2024-08-04 42/week @ 2024-08-11 36/week @ 2024-08-18 33/week @ 2024-08-25 37/week @ 2024-09-01 38/week @ 2024-09-08 35/week @ 2024-09-15 41/week @ 2024-09-22 36/week @ 2024-09-29 1/week @ 2024-10-06 24/week @ 2024-10-13 22/week @ 2024-10-20 31/week @ 2024-10-27 39/week @ 2024-11-03

116 downloads per month
Used in 21 crates (via wick-config)

Apache-2.0

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