chore: Update dependencies

This commit is contained in:
2026-05-12 04:54:34 +02:00
parent 5a2c1b0a13
commit b66357749b
7 changed files with 939 additions and 614 deletions
Generated
+911 -578
View File
File diff suppressed because it is too large Load Diff
+21 -21
View File
@@ -16,28 +16,28 @@ members = [
[workspace.dependencies] [workspace.dependencies]
air_filter_types = { git = "https://git.huizinga.dev/Dreaded_X/airfilter", tag = "v0.4.4" } air_filter_types = { git = "https://git.huizinga.dev/Dreaded_X/airfilter", tag = "v0.4.4" }
anyhow = "1.0.99" anyhow = "1.0.102"
async-trait = "0.1.89" async-trait = "0.1.89"
automation_cast = { path = "./automation_cast" } automation_cast = { path = "./automation_cast" }
automation_devices = { path = "./automation_devices" } automation_devices = { path = "./automation_devices" }
automation_lib = { path = "./automation_lib" } automation_lib = { path = "./automation_lib" }
automation_macro = { path = "./automation_macro" } automation_macro = { path = "./automation_macro" }
axum = "0.8.4" axum = "0.8.9"
bytes = "1.10.1" bytes = "1.11.1"
dyn-clone = "1.0.20" dyn-clone = "1.0.20"
eui48 = { version = "1.1.0", features = [ eui48 = { version = "1.1.0", features = [
"disp_hexstring", "disp_hexstring",
"serde", "serde",
], default-features = false } ], default-features = false }
futures = "0.3.31" futures = "0.3.32"
google_home = { path = "./google_home/google_home" } google_home = { path = "./google_home/google_home" }
google_home_macro = { path = "./google_home/google_home_macro" } google_home_macro = { path = "./google_home/google_home_macro" }
hostname = "0.4.1" hostname = "0.4.2"
inventory = "0.3.21" inventory = "0.3.24"
itertools = "0.14.0" itertools = "0.14.0"
json_value_merge = "2.0.1" json_value_merge = "2.0.1"
lua_typed = { git = "https://git.huizinga.dev/Dreaded_X/lua_typed" } lua_typed = { git = "https://git.huizinga.dev/Dreaded_X/lua_typed" }
mlua = { version = "0.11.3", features = [ mlua = { version = "0.11.6", features = [
"lua54", "lua54",
"vendored", "vendored",
"macros", "macros",
@@ -45,23 +45,23 @@ mlua = { version = "0.11.3", features = [
"async", "async",
"send", "send",
] } ] }
proc-macro2 = "1.0.101" proc-macro2 = "1.0.106"
quote = "1.0.40" quote = "1.0.45"
reqwest = { version = "0.12.23", features = [ reqwest = { version = "0.13.3", features = [
"json", "json",
"rustls-tls", "rustls",
], default-features = false } # Use rustls, since the other packages also use rustls ], default-features = false } # Use rustls, since the other packages also use rustls
rumqttc = "0.24.0" rumqttc = "0.25.1"
serde = { version = "1.0.219", features = ["derive"] } serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.143" serde_json = "1.0.149"
serde_repr = "0.1.20" serde_repr = "0.1.20"
syn = { version = "2.0.106" } syn = { version = "2.0.117" }
thiserror = "2.0.16" thiserror = "2.0.18"
tokio = { version = "1", features = ["rt-multi-thread"] } tokio = { version = "1", features = ["rt-multi-thread"] }
tokio-cron-scheduler = "0.15.0" tokio-cron-scheduler = "0.15.1"
tracing = "0.1.41" tracing = "0.1.44"
tracing-subscriber = "0.3.20" tracing-subscriber = "0.3.23"
wakey = "0.3.0" wakey = "0.4.1"
[dependencies] [dependencies]
anyhow = { workspace = true } anyhow = { workspace = true }
@@ -70,7 +70,7 @@ automation_devices = { workspace = true }
automation_lib = { workspace = true } automation_lib = { workspace = true }
automation_macro = { path = "./automation_macro" } automation_macro = { path = "./automation_macro" }
axum = { workspace = true } axum = { workspace = true }
config = { version = "0.15.15", default-features = false, features = [ config = { version = "0.15.22", default-features = false, features = [
"async", "async",
"toml", "toml",
] } ] }
+2 -3
View File
@@ -1,9 +1,8 @@
FROM rust:1.89 AS base FROM rust:1.95 AS base
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
RUN cargo install cargo-chef --locked --version 0.1.71 && \ RUN cargo install cargo-chef --locked --version 0.1.71 && \
cargo install cargo-auditable --locked --version 0.6.6 cargo install cargo-auditable --locked --version 0.6.6
WORKDIR /app WORKDIR /app
COPY ./rust-toolchain.toml .
RUN rustup toolchain install RUN rustup toolchain install
FROM base AS planner FROM base AS planner
@@ -21,7 +20,7 @@ ARG RELEASE_VERSION
ENV RELEASE_VERSION=${RELEASE_VERSION} ENV RELEASE_VERSION=${RELEASE_VERSION}
RUN cargo auditable build --release RUN cargo auditable build --release
FROM gcr.io/distroless/cc-debian12:nonroot AS runtime FROM gcr.io/distroless/cc-debian13:nonroot AS runtime
COPY --from=builder /app/target/release/automation /app/automation COPY --from=builder /app/target/release/automation /app/automation
ENV AUTOMATION__ENTRYPOINT=/app/config/config.lua ENV AUTOMATION__ENTRYPOINT=/app/config/config.lua
ENV LUA_PATH="/app/?.lua;;" ENV LUA_PATH="/app/?.lua;;"
+4 -8
View File
@@ -122,15 +122,11 @@ impl OnMqtt for HueSwitch {
Action::LeftHold => self.config.left_hold_callback.call(self.clone()).await, Action::LeftHold => self.config.left_hold_callback.call(self.clone()).await,
Action::RightHold => self.config.right_hold_callback.call(self.clone()).await, Action::RightHold => self.config.right_hold_callback.call(self.clone()).await,
// If there is no hold action, the switch will act like a normal release // If there is no hold action, the switch will act like a normal release
Action::RightHoldRelease => { Action::RightHoldRelease if self.config.right_hold_callback.is_empty() => {
if self.config.right_hold_callback.is_empty() { self.config.right_callback.call(self.clone()).await
self.config.right_callback.call(self.clone()).await
}
} }
Action::LeftHoldRelease => { Action::LeftHoldRelease if self.config.left_hold_callback.is_empty() => {
if self.config.left_hold_callback.is_empty() { self.config.left_callback.call(self.clone()).await
self.config.left_callback.call(self.clone()).await
}
} }
_ => {} _ => {}
} }
-1
View File
@@ -1,4 +1,3 @@
#![feature(iter_intersperse)]
#![feature(iterator_try_collect)] #![feature(iterator_try_collect)]
mod device; mod device;
mod lua_device_config; mod lua_device_config;
+1 -1
View File
@@ -1,4 +1,4 @@
[toolchain] [toolchain]
channel = "nightly-2025-08-20" channel = "nightly-2026-05-12"
components = ["rustfmt", "clippy", "rust-analyzer"] components = ["rustfmt", "clippy", "rust-analyzer"]
profile = "minimal" profile = "minimal"
-2
View File
@@ -1,5 +1,3 @@
#![feature(if_let_guard)]
pub mod config; pub mod config;
pub mod schedule; pub mod schedule;
pub mod secret; pub mod secret;