feat!: Improve lua module registration

Instead of having to call all the module registration functions in one
place it is possible for each module to register itself in a global registry.
During startup all the all the modules will be registered
automatically.

This does currently have one weakness, to need to ensure that the crate
is linked.
This commit is contained in:
2025-09-10 01:24:21 +02:00
parent 95a8a377e8
commit 84e4b30b6a
7 changed files with 56 additions and 4 deletions

View File

@@ -11,6 +11,7 @@ dyn-clone = { workspace = true }
futures = { workspace = true }
google_home = { workspace = true }
indexmap = { workspace = true }
inventory = { workspace = true }
mlua = { workspace = true }
rumqttc = { workspace = true }
serde = { workspace = true }