-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
18 lines (16 loc) · 962 Bytes
/
Cargo.toml
File metadata and controls
18 lines (16 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[package]
name = "tedium"
version = "0.1.0"
authors = ["Tauseefk <tauseef25@gmail.com>"]
edition = "2021"
[dependencies]
bevy = { version = "0.14" }
bevy_ecs_ldtk = "0.10"
pathfinding = "4.11.0"
animatron = { version = "0.2.2", features = ["derive"] }
shadowcaster = "0.1.0"
# 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]
bevy_ecs_tilemap = { version = "0.14", features = ["atlas"] }