"--features dev": easier toggling between static/dynamic linking
This commit is contained in:
parent
55a44db714
commit
e34b2b3eb7
|
@ -15,8 +15,10 @@ bevy_embedded_assets = "0.10.2"
|
||||||
|
|
||||||
[dependencies."bevy"]
|
[dependencies."bevy"]
|
||||||
version = "0.13.0"
|
version = "0.13.0"
|
||||||
features = ["jpeg", "minimp3", "dynamic_linking"] # For debug builds
|
features = ["jpeg", "minimp3"]
|
||||||
#features = ["jpeg", "minimp3"] # For release builds
|
|
||||||
|
[features]
|
||||||
|
dev = ["bevy/dynamic_linking"]
|
||||||
|
|
||||||
# Enable a small amount of optimization in debug mode
|
# Enable a small amount of optimization in debug mode
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
|
|
|
@ -43,6 +43,14 @@ WGPU_BACKEND=gl cargo run
|
||||||
However, this may result in poor performance and visual glitches.
|
However, this may result in poor performance and visual glitches.
|
||||||
|
|
||||||
# Building
|
# 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
|
## On Linux
|
||||||
|
|
||||||
To run the pre-compiled version on Arch Linux, you need some basic libs:
|
To run the pre-compiled version on Arch Linux, you need some basic libs:
|
||||||
|
|
Loading…
Reference in a new issue