vleue / bevy_easings

Bevy plugin for easings and simple animations
181 stars 28 forks source link

breakage due to new Asset API in bevy #2

Closed inodentry closed 4 years ago

inodentry commented 4 years ago

With the latest master commit of Bevy, compilation errors occur, due to changes in Bevy's Asset API.

In bevy_ninepatch:

error[E0277]: the trait bound `ninepatch::NinePatchBuilder<T>: TypeUuid` is not satisfied
   --> /home/jamadazi/.cargo/git/checkouts/bevy_extra-5808b82edd9c06c1/1f3f3b3/bevy_ninepatch/src/plugin.rs:258:23
    |
258 |     mut nine_patches: ResMut<Assets<NinePatchBuilder<T>>>,
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `TypeUuid` is not implemented for `ninepatch::NinePatchBuilder<T>`
    |
   ::: /home/jamadazi/.cargo/git/checkouts/bevy-f7ffde730c324c74/c32e637/crates/bevy_asset/src/assets.rs:48:22
    |
48  | pub struct Assets<T: Asset> {
    |                      ----- required by this bound in `Assets`
    |
    = note: required because of the requirements on the impl of `Asset` for `ninepatch::NinePatchBuilder<T>`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
error: could not compile `bevy_ninepatch`

In bevy_easings:

error[E0277]: the trait bound `T: TypeUuid` is not satisfied
   --> /home/jamadazi/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_easings-0.1.1/src/plugin.rs:181:17
    |
181 |     mut assets: ResMut<Assets<T>>,
    |                 ^^^^^^^^^^^^^^^^^ the trait `TypeUuid` is not implemented for `T`
    |
   ::: /home/jamadazi/.cargo/git/checkouts/bevy-f7ffde730c324c74/c32e637/crates/bevy_asset/src/assets.rs:48:22
    |
48  | pub struct Assets<T: Asset> {
    |                      ----- required by this bound in `bevy::prelude::Assets`
    |
    = note: required because of the requirements on the impl of `Asset` for `T`
help: consider further restricting this bound
    |
188 |     T: IntermediateLerp + TypeUuid,
    |                         ^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
error: could not compile `bevy_easings`