diff --git a/Cargo.lock b/Cargo.lock index 59129db..bfa3f89 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -295,6 +295,7 @@ version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "611dd99f412e862610adb43e2243b16436c6d8009f6d9dbe8ce3d6d840b34029" dependencies = [ + "bevy_dylib", "bevy_internal", ] @@ -471,6 +472,15 @@ dependencies = [ "sysinfo", ] +[[package]] +name = "bevy_dylib" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3b3b76f0d7a4da8f944e5316f2d2d2af3bbb40d87508355993ea69afbc9411c" +dependencies = [ + "bevy_internal", +] + [[package]] name = "bevy_ecs" version = "0.13.0" diff --git a/Cargo.toml b/Cargo.toml index d5c06f7..8680075 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,4 +6,12 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -bevy = "0.13.0" +bevy = { version = "0.13.0", features = ["dynamic_linking"] } + +# Enable a small amount of optimization in debug mode +[profile.dev] +opt-level = 1 + +# Enable high optimizations for dependencies (incl. Bevy), but not for our code: +[profile.dev.package."*"] +opt-level = 3 \ No newline at end of file