Skip to content

Commit dacdf1c

Browse files
committed
Rename crate and feature for clarity
1 parent 8bc51ed commit dacdf1c

File tree

8 files changed

+11
-10
lines changed

8 files changed

+11
-10
lines changed

Cargo.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,16 @@ default = [
2222
"bevy_gltf",
2323
"bevy_wgpu",
2424
"bevy_winit",
25-
"bevy_dynload",
2625
"render",
26+
"dynamic_plugins",
2727
"png",
2828
"hdr",
2929
"mp3",
3030
"x11",
3131
]
3232
profiler = ["bevy_ecs/profiler", "bevy_diagnostic/profiler"]
3333
wgpu_trace = ["bevy_wgpu/trace"]
34+
dynamic_plugins = ["bevy_dynamic_plugin"]
3435

3536
# Rendering support
3637
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" }
7576
bevy_gltf = { path = "crates/bevy_gltf", optional = true, version = "0.2.1" }
7677
bevy_pbr = { path = "crates/bevy_pbr", optional = true, version = "0.2.1" }
7778
bevy_render = { path = "crates/bevy_render", optional = true, version = "0.2.1" }
78-
bevy_dynload = { path = "crates/bevy_dynload", optional = true, version = "0.2.1" }
79+
bevy_dynamic_plugin = { path = "crates/bevy_dynamic_plugin", optional = true, version = "0.2.1" }
7980
bevy_sprite = { path = "crates/bevy_sprite", optional = true, version = "0.2.1" }
8081
bevy_text = { path = "crates/bevy_text", optional = true, version = "0.2.1" }
8182
bevy_ui = { path = "crates/bevy_ui", optional = true, version = "0.2.1" }

crates/bevy_dynload/Cargo.toml renamed to crates/bevy_dynamic_plugin/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "bevy_dynload"
2+
name = "bevy_dynamic_plugin"
33
version = "0.2.1"
44
authors = [
55
"Bevy Contributors <bevyengine@gmail.com>",

docs/cargo_features.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ Make use of GPU via [WebGPU](https://gpuweb.github.io/gpuweb/) support.
2121
### render
2222
The render pipeline and all render related plugins.
2323

24-
### bevy_dynload
25-
Allows for dynamic loading of plugins (previously dynamic_plugins)
24+
### dynamic_plugins
25+
Plugins for dynamic loading (libloading)
2626

2727
### png
2828

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,5 @@ pub use bevy_winit as winit;
8282
#[cfg(feature = "bevy_wgpu")]
8383
pub use bevy_wgpu as wgpu;
8484

85-
#[cfg(feature = "bevy_dynload")]
86-
pub use bevy_dynload as dynload;
85+
#[cfg(feature = "dynamic_plugins")]
86+
pub use bevy_dynamic_plugin as dynamic_plugin;

src/prelude.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ pub use crate::text::prelude::*;
2222
#[cfg(feature = "bevy_ui")]
2323
pub use crate::ui::prelude::*;
2424

25-
#[cfg(feature = "bevy_dynload")]
26-
pub use crate::dynload::*;
25+
#[cfg(feature = "dynamic_plugins")]
26+
pub use crate::dynamic_plugin::*;

tools/publish.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ crates=(
88
bevy_ecs/hecs
99
bevy_ecs
1010
bevy_app
11-
bevy_dynload
11+
bevy_dynamic_plugin
1212
bevy_property/bevy_property_derive
1313
bevy_property
1414
bevy_type_registry

0 commit comments

Comments
 (0)