Replaced impl_cast with a new and improved trait
All checks were successful
Build and deploy automation_rs / Build automation_rs (push) Successful in 4m0s
Build and deploy automation_rs / Build Docker image (push) Successful in 52s
Build and deploy automation_rs / Deploy Docker container (push) Successful in 28s

With this trait the impl_cast macros are no longer needed, simplifying
everything.
This commit also improved how the actual casting itself is handled.
This commit is contained in:
2024-05-05 00:33:21 +02:00
parent cde9654a78
commit 3689a52afd
16 changed files with 174 additions and 332 deletions

16
Cargo.lock generated
View File

@@ -76,6 +76,7 @@ version = "0.1.0"
dependencies = [
"anyhow",
"async-trait",
"automation_cast",
"axum",
"bytes",
"console-subscriber",
@@ -84,7 +85,6 @@ dependencies = [
"eui48",
"futures",
"google-home",
"impl_cast",
"indexmap 2.0.0",
"paste",
"pollster",
@@ -104,6 +104,10 @@ dependencies = [
"wakey",
]
[[package]]
name = "automation_cast"
version = "0.1.0"
[[package]]
name = "axum"
version = "0.6.20"
@@ -568,8 +572,8 @@ version = "0.1.0"
dependencies = [
"anyhow",
"async-trait",
"automation_cast",
"futures",
"impl_cast",
"serde",
"serde_json",
"thiserror",
@@ -761,14 +765,6 @@ dependencies = [
"unicode-normalization",
]
[[package]]
name = "impl_cast"
version = "0.1.0"
dependencies = [
"quote",
"syn 2.0.28",
]
[[package]]
name = "indexmap"
version = "1.9.3"