diff --git a/Cargo.toml b/Cargo.toml index 9074ab3..3dec577 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,9 +21,9 @@ name = "multiple" required-features = ["inspect"] [features] -default = ["serialize"] +default = ["serde"] inspect = ["bevy-inspector-egui"] -serialize = ["serde"] +serde = ["dep:serde"] [dependencies] bevy = { version = "0.11", default-features = false, features = [ @@ -34,4 +34,4 @@ bevy-inspector-egui = { version = "0.19", optional = true } serde = { version = "^1", features = ["derive"], optional = true } [dev-dependencies] -bevy = "0.11" \ No newline at end of file +bevy = "0.11" diff --git a/README.md b/README.md index c9e115a..b44a27a 100644 --- a/README.md +++ b/README.md @@ -45,13 +45,13 @@ Aviable and compatible versions # Features - inspect: for world inspect with egui inspector -- serialize (default): for serialization support for all types (usable for save and load settings) +- serde (default): for serialization support for all types (usable for save and load settings) ```toml virtual_joystick = { version = "*", default-features = false, - features = [ "inspect", "serialize" ] + features = [ "inspect", "serde" ] } ``` @@ -66,7 +66,7 @@ cargo run --example simple -F=inspect Add to Cargo.toml ```toml [dependencies] -bevy = "0.10.1" +bevy = "0.11" virtual_joystick = "*" # Add your version ``` diff --git a/src/behaviour.rs b/src/behaviour.rs index 3fbe95f..55cbb3a 100644 --- a/src/behaviour.rs +++ b/src/behaviour.rs @@ -2,12 +2,12 @@ use bevy::prelude::*; #[cfg(feature = "inspect")] use bevy_inspector_egui::prelude::*; -#[cfg(feature = "serialize")] +#[cfg(feature = "serde")] use serde::{Deserialize, Serialize}; #[derive(Reflect, Clone, Copy, Debug, Default, PartialEq, Eq)] #[cfg_attr(feature = "inspect", derive(InspectorOptions))] -#[cfg_attr(feature = "serialize", derive(Serialize, Deserialize))] +#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] #[cfg_attr(feature = "inspect", reflect(InspectorOptions))] pub enum VirtualJoystickAxis { #[default] @@ -40,7 +40,7 @@ impl VirtualJoystickAxis { #[derive(Reflect, Clone, Copy, Debug, Default, PartialEq, Eq)] #[cfg_attr(feature = "inspect", derive(InspectorOptions))] -#[cfg_attr(feature = "serialize", derive(Serialize, Deserialize))] +#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] #[cfg_attr(feature = "inspect", reflect(InspectorOptions))] pub enum VirtualJoystickType { /// Static position