Skip to content

Commit

Permalink
Rename crate and feature for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanYidong committed Sep 21, 2020
1 parent 8bc51ed commit dacdf1c
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 10 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@ default = [
"bevy_gltf",
"bevy_wgpu",
"bevy_winit",
"bevy_dynload",
"render",
"dynamic_plugins",
"png",
"hdr",
"mp3",
"x11",
]
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"]
Expand Down Expand Up @@ -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" }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "bevy_dynload"
name = "bevy_dynamic_plugin"
version = "0.2.1"
authors = [
"Bevy Contributors <[email protected]>",
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions docs/cargo_features.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
4 changes: 2 additions & 2 deletions src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;
2 changes: 1 addition & 1 deletion tools/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dacdf1c

Please sign in to comment.