Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure with bevy_gltf and no default features #16562

Closed
kpreid opened this issue Nov 30, 2024 · 1 comment
Closed

Build failure with bevy_gltf and no default features #16562

kpreid opened this issue Nov 30, 2024 · 1 comment
Labels
C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled

Comments

@kpreid
Copy link

kpreid commented Nov 30, 2024

Bevy version

0.15.0

Relevant system information

cargo 1.83.0 (5ffbef321 2024-10-29)
host: x86_64-apple-darwin

What you did

cargo add bevy --no-default-features --features=bevy_gltf
cargo check

What went wrong

error[E0432]: unresolved import `bevy_animation`
 --> /Users/kpreid/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_gltf-0.15.0/src/loader.rs:7:5
  |
7 | use bevy_animation::animated_field;
  |     ^^^^^^^^^^^^^^ use of undeclared crate or module `bevy_animation`

It appears that the use just needs a #[cfg(feature = "bevy_animation")].

@kpreid kpreid added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels Nov 30, 2024
@kpreid
Copy link
Author

kpreid commented Nov 30, 2024

Whoops, looks like this was fixed in #16551.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled
Projects
None yet
Development

No branches or pull requests

1 participant