bevy_ecs_ldtk
bevy_ecs_ldtk copied to clipboard
Usage help for Bevy 0.13 users
You will likely be running into a host of problems attempting to use this plugin with Bevy 0.13 as bevy_ecs_tilemap has not yet released changes to support 0.13 (see StarArawn/bevy_ecs_tilemap#516). To resolve this, add the following to your Cargo.toml:
[dependencies]
# Use unstable version for Bevy 0.13 support
bevy_ecs_ldtk = { git = "https://github.com/Trouv/bevy_ecs_ldtk.git" }
[patch.crates-io]
# Patch unstable version to resolve conflicting dependencies from bevy_ecs_ldtk
bevy_ecs_tilemap = { git = "https://github.com/StarArawn/bevy_ecs_tilemap" }
@Trouv feel free to close this if you deem so, but I thought it would be helpful for new users trying to figure this out.
This does work, but I'd argue that it shouldn't be necessary.
Versions of bevy_ecs_ldtk that claim in the README to track the main branch of bevy_ecs_tilemap, should just have bevy_ecs_tilemap as a git dependency in the Cargo.toml. Ideally also pinned to exact commit that was last tested.
Otherwise this repo is essentially in an invalid state.
Yeah I agree somewhat. Next time we end up in this in-between state I do plan to add it as a git dependency rather than a patch, and will probably do a pre-release on crates.io as well. I intend to do it for the current version too but haven't gotten around to it.
I believe that crates.io doesn't allow crates with unpublished dependencies. cargo#6738 And it does make sense, if that were possible then any crate could break unpredictably.