Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/crates/bevy_animation/macros/src/lib.rs
6849 views
1
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
2
3
//! Macros for deriving animation behaviors.
4
5
extern crate proc_macro;
6
7
mod animation_event;
8
9
use proc_macro::TokenStream;
10
11
/// Implements the `AnimationEvent` trait for a type - see the trait
12
/// docs for an example usage.
13
#[proc_macro_derive(AnimationEvent)]
14
pub fn derive_animation_event(input: TokenStream) -> TokenStream {
15
animation_event::derive_animation_event(input)
16
}
17
18