Skip to content

Files

Latest commit

f217259 · Mar 8, 2024

History

History
20 lines (13 loc) · 820 Bytes

faster_compile_time.md

File metadata and controls

20 lines (13 loc) · 820 Bytes

Faster Compile Time

Bevy is a considerable library that might require long compile time. There is a way to speed the compiler up by adding the dynamic_linking feature.

The Cargo.toml file may look like this:

[dependencies]
bevy = { version = "0.12.1", features = ["dynamic_linking"] }

You might need to compile a Bevy project without the dynamic_linking feature once, and then compile with the feature enabled for the following compilations to avoid compilation error.

However, dynamic_linking is not suitable in release mode. So, please be sure to remove this feature when your project is ready to be released.

➡️ Next: An App With A Window

📘 Back: Table of contents