feat(derive): add Action derive macro
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
[package]
|
||||
name = "bevy_controls_derive"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
|
||||
# [features]
|
||||
# default = []
|
||||
# serialize = ["bevy_input/serialize", "serde"]
|
||||
# reflect = ["dep:bevy_reflect"]
|
||||
# inspector-egui = ["reflect", "dep:bevy-inspector-egui"]
|
||||
|
||||
[dependencies]
|
||||
# bevy-inspector-egui = { version = "0.22.1", optional = true }
|
||||
# bevy_app = "0.12.1"
|
||||
# bevy_derive = "0.12.1"
|
||||
# bevy_ecs = "0.12.1"
|
||||
# bevy_input = "0.12.1"
|
||||
# bevy_reflect = { version = "0.12.1", optional = true }
|
||||
# bevy_utils = "0.12.1"
|
||||
# log = "0.4.20"
|
||||
# serde = { version = "1.0.194", optional = true }
|
||||
# strum = "0.25.0"
|
||||
# strum_macros = "0.25.3"
|
||||
bevy_controls = { path = "./../bevy_controls" }
|
||||
|
||||
[dev-dependencies]
|
||||
env_logger = "0.10.1"
|
||||
@@ -0,0 +1,7 @@
|
||||
extern crate proc_macro;
|
||||
use proc_macro::TokenStream;
|
||||
|
||||
#[proc_macro_derive(Action)]
|
||||
pub fn action(_input: TokenStream) -> TokenStream {
|
||||
todo!("urmom")
|
||||
}
|
||||
Reference in New Issue
Block a user