-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml
21 lines (18 loc) · 1.27 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[package]
edition = "2021"
name = "rusty-woods"
version = "0.11.0"
[dependencies]
# This makes builds for development much faster!
# NOTE from official docs:
# Remember to revert this before releasing your game! Otherwise you will need to include libbevy_dylib alongside your game if you want it to run. If you remove the "dynamic" feature, your game executable can run standalone.
bevy = { version = "0.11", features = ["dynamic_linking"] }
# bevy = "0.11"
bevy_ecs_ldtk = "0.8"
bevy_rapier2d = "0.22"
# bevy_ecs_ldtk is using bevy_ecs_tilemap
# bevy_ecs_tilemap has to be run with a feature flag when building to wasm, as they explain here <https://github.com/StarArawn/bevy_ecs_tilemap#running-examples-on-web>
# As expained in the cargo book <https://doc.rust-lang.org/cargo/reference/features.html#feature-unification>, when you define here THE SAME VERSION of the dependency with the required feature, it is automatically accessible also to your other dependencies and solves the issue that bevy_ecs_ldtk doesn't provide a way to activate this through their features.
# [target.'cfg(target_arch = "wasm32")'.dependencies]
# specific 0.11.1 to fix a bug in 0.11.0 (and for some reason it didn't update automatically with a 0.11)
bevy_ecs_tilemap = { version = "0.11.1", features = ["atlas"] }