diff --git a/Cargo.toml b/Cargo.toml index 1b63932..3ada0e1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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] diff --git a/README.md b/README.md index 230678d..e93125c 100644 --- a/README.md +++ b/README.md @@ -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: