refactor!: Rewrote device implementation macro once again
All checks were successful
Build and deploy / build (push) Successful in 12m34s
Build and deploy / Deploy container (push) Successful in 30s

This time with a bit more though put into the design of the code, as a
result the macro should be a lot more robust.

This did result in the macro getting renamed from LuaDevice to Device as
this should be _the_ Device macro.
The attribute also got renamed from traits to device_traits and the
syntax got overhauled to allow for a bit more expression.
This commit is contained in:
2025-09-09 02:48:44 +02:00
parent e642562ddb
commit e0d2e846ff
18 changed files with 238 additions and 139 deletions

View File

@@ -54,7 +54,7 @@ rumqttc = "0.24.0"
serde = { version = "1.0.219", features = ["derive"] }
serde_json = "1.0.143"
serde_repr = "0.1.20"
syn = { version = "2.0.106", features = ["extra-traits", "full"] }
syn = { version = "2.0.106" }
thiserror = "2.0.16"
tokio = { version = "1", features = ["rt-multi-thread"] }
tokio-cron-scheduler = "0.14.0"