Skip to content
Snippets Groups Projects
Verified Commit 8dbbafde authored by Louis's avatar Louis :fire:
Browse files

Remove Kayak derive

parent 9a36d975
No related branches found
No related tags found
No related merge requests found
[0.7.0]
### Changed
- Required Bevy version is now 0.15
### Removed
- Removed `KayakWidget` derive
\ No newline at end of file
...@@ -11,10 +11,6 @@ name = "micro_games_macros" ...@@ -11,10 +11,6 @@ name = "micro_games_macros"
path = "src/lib.rs" path = "src/lib.rs"
proc-macro = true proc-macro = true
[features]
default = ["kayak"]
kayak = []
[dependencies] [dependencies]
proc-macro2 = "1.0" proc-macro2 = "1.0"
quote = "1.0" quote = "1.0"
......
...@@ -69,6 +69,3 @@ fq!(BevyAsyncRead => ::bevy::asset::AsyncReadExt); ...@@ -69,6 +69,3 @@ fq!(BevyAsyncRead => ::bevy::asset::AsyncReadExt);
fq!(BevyAssetReader => ::bevy::asset::io::Reader); fq!(BevyAssetReader => ::bevy::asset::io::Reader);
fq!(send_event => ::micro_bevy_world_utils::send_event); fq!(send_event => ::micro_bevy_world_utils::send_event);
#[cfg(feature = "kayak")]
fq!(KayakWidget => ::kayak_ui::prelude::Widget);
mod widget;
pub use widget::derive_widget;
use proc_macro2::TokenStream;
use quote::quote;
use syn::DeriveInput;
use crate::fqpath::*;
pub fn derive_widget(DeriveInput { ident, .. }: DeriveInput) -> TokenStream {
quote! {
#[automatically_derived]
impl #KayakWidget for #ident {}
}
}
...@@ -101,8 +101,6 @@ pub(crate) mod utils; ...@@ -101,8 +101,6 @@ pub(crate) mod utils;
pub(crate) mod asset_system; pub(crate) mod asset_system;
pub(crate) mod event_system; pub(crate) mod event_system;
pub(crate) mod json_loader; pub(crate) mod json_loader;
#[cfg(feature = "kayak")]
pub(crate) mod kayak;
pub(crate) mod std_traits; pub(crate) mod std_traits;
pub(crate) mod tag_finder; pub(crate) mod tag_finder;
...@@ -323,13 +321,6 @@ pub fn loader_property(_: TokenStream, input: TokenStream) -> TokenStream { ...@@ -323,13 +321,6 @@ pub fn loader_property(_: TokenStream, input: TokenStream) -> TokenStream {
input input
} }
#[proc_macro_derive(Widget)]
#[cfg(feature = "kayak")]
pub fn derive_kayak_wigdet(input: TokenStream) -> TokenStream {
let input = parse_macro_input!(input as DeriveInput);
kayak::derive_widget(input).into()
}
/// Derive [std::convert::From] for single property tuple or named struct types /// Derive [std::convert::From] for single property tuple or named struct types
/// ///
/// ## Examples /// ## Examples
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment