diff --git a/Cargo.toml b/Cargo.toml index 618303ef44d70..bb7b766ff1db6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,8 +22,8 @@ default = [ "bevy_gltf", "bevy_wgpu", "bevy_winit", - "bevy_dynload", "render", + "dynamic_plugins", "png", "hdr", "mp3", @@ -31,6 +31,7 @@ default = [ ] profiler = ["bevy_ecs/profiler", "bevy_diagnostic/profiler"] wgpu_trace = ["bevy_wgpu/trace"] +dynamic_plugins = ["bevy_dynamic_plugin"] # Rendering support render = ["bevy_pbr", "bevy_render", "bevy_sprite", "bevy_text", "bevy_ui"] @@ -75,7 +76,7 @@ bevy_audio = { path = "crates/bevy_audio", optional = true, version = "0.2.1" } bevy_gltf = { path = "crates/bevy_gltf", optional = true, version = "0.2.1" } bevy_pbr = { path = "crates/bevy_pbr", optional = true, version = "0.2.1" } bevy_render = { path = "crates/bevy_render", optional = true, version = "0.2.1" } -bevy_dynload = { path = "crates/bevy_dynload", optional = true, version = "0.2.1" } +bevy_dynamic_plugin = { path = "crates/bevy_dynamic_plugin", optional = true, version = "0.2.1" } bevy_sprite = { path = "crates/bevy_sprite", optional = true, version = "0.2.1" } bevy_text = { path = "crates/bevy_text", optional = true, version = "0.2.1" } bevy_ui = { path = "crates/bevy_ui", optional = true, version = "0.2.1" } diff --git a/crates/bevy_dynload/Cargo.toml b/crates/bevy_dynamic_plugin/Cargo.toml similarity index 95% rename from crates/bevy_dynload/Cargo.toml rename to crates/bevy_dynamic_plugin/Cargo.toml index 1df4ed7499d67..b46ee9676eefe 100644 --- a/crates/bevy_dynload/Cargo.toml +++ b/crates/bevy_dynamic_plugin/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "bevy_dynload" +name = "bevy_dynamic_plugin" version = "0.2.1" authors = [ "Bevy Contributors ", diff --git a/crates/bevy_dynload/src/lib.rs b/crates/bevy_dynamic_plugin/src/lib.rs similarity index 100% rename from crates/bevy_dynload/src/lib.rs rename to crates/bevy_dynamic_plugin/src/lib.rs diff --git a/crates/bevy_dynload/src/loader.rs b/crates/bevy_dynamic_plugin/src/loader.rs similarity index 100% rename from crates/bevy_dynload/src/loader.rs rename to crates/bevy_dynamic_plugin/src/loader.rs diff --git a/docs/cargo_features.md b/docs/cargo_features.md index 4d389a63d8f37..441bc41e2bf45 100644 --- a/docs/cargo_features.md +++ b/docs/cargo_features.md @@ -21,8 +21,8 @@ Make use of GPU via [WebGPU](https://gpuweb.github.io/gpuweb/) support. ### render The render pipeline and all render related plugins. -### bevy_dynload -Allows for dynamic loading of plugins (previously dynamic_plugins) +### dynamic_plugins +Plugins for dynamic loading (libloading) ### png diff --git a/src/lib.rs b/src/lib.rs index 282e62ff728f1..42b2ede77920b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -82,5 +82,5 @@ pub use bevy_winit as winit; #[cfg(feature = "bevy_wgpu")] pub use bevy_wgpu as wgpu; -#[cfg(feature = "bevy_dynload")] -pub use bevy_dynload as dynload; +#[cfg(feature = "dynamic_plugins")] +pub use bevy_dynamic_plugin as dynamic_plugin; diff --git a/src/prelude.rs b/src/prelude.rs index 3351c9b9ac795..6a5fe079db012 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -22,5 +22,5 @@ pub use crate::text::prelude::*; #[cfg(feature = "bevy_ui")] pub use crate::ui::prelude::*; -#[cfg(feature = "bevy_dynload")] -pub use crate::dynload::*; +#[cfg(feature = "dynamic_plugins")] +pub use crate::dynamic_plugin::*; diff --git a/tools/publish.sh b/tools/publish.sh index 5d80d471f04d9..220c1d5b4916f 100644 --- a/tools/publish.sh +++ b/tools/publish.sh @@ -8,7 +8,7 @@ crates=( bevy_ecs/hecs bevy_ecs bevy_app - bevy_dynload + bevy_dynamic_plugin bevy_property/bevy_property_derive bevy_property bevy_type_registry