"--features dev": easier toggling between static/dynamic linking

This commit is contained in:
yuni 2024-03-30 14:31:02 +01:00
parent 55a44db714
commit e34b2b3eb7
2 changed files with 12 additions and 2 deletions

View file

@ -15,8 +15,10 @@ bevy_embedded_assets = "0.10.2"
[dependencies."bevy"]
version = "0.13.0"
features = ["jpeg", "minimp3", "dynamic_linking"] # For debug builds
#features = ["jpeg", "minimp3"] # For release builds
features = ["jpeg", "minimp3"]
[features]
dev = ["bevy/dynamic_linking"]
# Enable a small amount of optimization in debug mode
[profile.dev]

View file

@ -43,6 +43,14 @@ WGPU_BACKEND=gl cargo run
However, this may result in poor performance and visual glitches.
# Building
## General notes
For development, it's recommended to use `--features dev` to enable dynamic linking, e.g. like this:
```
cargo [run|build] --features dev
```
## On Linux
To run the pre-compiled version on Arch Linux, you need some basic libs: