feat!: Improved attribute parsing in device macro

This commit is contained in:
2025-10-11 01:06:53 +02:00
parent 45485fca37
commit 745a1025bb
5 changed files with 23 additions and 22 deletions

View File

@@ -64,7 +64,7 @@ pub fn lua_serialize(input: proc_macro::TokenStream) -> proc_macro::TokenStream
/// ```
/// It can then be registered with:
/// ```rust
/// #[device(add_methods(top_secret))]
/// #[device(add_methods = top_secret)]
/// ```
#[proc_macro_derive(Device, attributes(device))]
pub fn device(input: proc_macro::TokenStream) -> proc_macro::TokenStream {