feat: Added attribute to easily register additional lua methods

Previously this could only be done by implementing a trait, like
`AddAdditionalMethods`, that that has an add_methods function where you
can put your custom methods. With this new attribute you can pass in a
register function directly!
This commit is contained in:
2025-09-09 04:00:52 +02:00
parent ff78ac0c76
commit 43cb1b31fd
4 changed files with 70 additions and 15 deletions

1
Cargo.lock generated
View File

@@ -167,6 +167,7 @@ name = "automation_macro"
version = "0.1.0"
dependencies = [
"itertools",
"mlua",
"proc-macro2",
"quote",
"syn 2.0.106",