Replaced impl_cast with a new and improved trait
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:
16
Cargo.lock
generated
16
Cargo.lock
generated
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user