40 releases

Uses new Rust 2024

new 0.16.1 May 30, 2025
0.16.0-rc.3 Mar 31, 2025
0.15.0 Nov 29, 2024
0.14.0 Jul 4, 2024
0.4.0 Dec 19, 2020

#2883 in Game dev

Download history 9601/week @ 2025-02-09 5317/week @ 2025-02-16 9627/week @ 2025-02-23 5205/week @ 2025-03-02 8719/week @ 2025-03-09 8675/week @ 2025-03-16 9124/week @ 2025-03-23 4889/week @ 2025-03-30 6719/week @ 2025-04-06 6273/week @ 2025-04-13 10166/week @ 2025-04-20 11998/week @ 2025-04-27 8568/week @ 2025-05-04 3910/week @ 2025-05-11 3714/week @ 2025-05-18 5255/week @ 2025-05-25

23,048 downloads per month
Used in 65 crates (via bevy)

MIT/Apache

68KB
250 lines

Forces dynamic linking of Bevy.

Dynamic linking causes Bevy to be built and linked as a dynamic library. This will make incremental builds compile much faster.

Warning

Do not enable this feature for release builds because this would require you to ship libstd.so and libbevy_dylib.so with your game.

Enabling dynamic linking

The easiest way to enable dynamic linking is to use the --features bevy/dynamic_linking flag when using the cargo run command:

cargo run --features bevy/dynamic_linking

The unrecommended way

It is also possible to enable the dynamic_linking feature inside of the Cargo.toml file. This is unrecommended because it requires you to remove this feature every time you want to create a release build to avoid having to ship additional files with your game.

To enable dynamic linking inside of the Cargo.toml file add the dynamic_linking feature to the bevy dependency:

features = ["dynamic_linking"]

The manual way

Manually enabling dynamic linking is achieved by adding bevy_dylib as a dependency and adding the following code to the main.rs file:

#[allow(unused_imports)]
use bevy_dylib;

It is recommended to disable the bevy_dylib dependency in release mode by adding the following code to the use statement to avoid having to ship additional files with your game:

#[allow(unused_imports)]
#[cfg(debug_assertions)] // new
use bevy_dylib;

Bevy Dynamic Library

License Crates.io Downloads Docs Discord

Dependencies

~18–24MB
~411K SLoC

OSZAR »