flake.lock: bump, Cargo.{toml,lock}: update inputs
This commit is contained in:
Generated
+424
-317
File diff suppressed because it is too large
Load Diff
+11
-11
@@ -16,23 +16,23 @@ autolib = false
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0.100"
|
||||
axum = { version = "0.8.7", features = ["macros", "ws"] }
|
||||
clap = { version = "4.5.53", features = ["derive"] }
|
||||
anyhow = "1.0.102"
|
||||
axum = { version = "0.8.9", features = ["macros", "ws"] }
|
||||
clap = { version = "4.6.1", features = ["derive"] }
|
||||
clap-verbosity-flag = "3.0.4"
|
||||
env_logger = "0.11.8"
|
||||
futures = "0.3.31"
|
||||
env_logger = "0.11.10"
|
||||
futures = "0.3.32"
|
||||
log = "0.4.29"
|
||||
mpvipc-async = { git = "https://git.pvv.ntnu.no/Grzegorz/mpvipc-async.git", branch = "main" }
|
||||
sd-notify = "0.4.5"
|
||||
sd-notify = "0.5.0"
|
||||
serde = { version = "1.0.228", features = ["derive"] }
|
||||
serde_json = "1.0.145"
|
||||
serde_json = "1.0.149"
|
||||
systemd-journal-logger = "2.2.2"
|
||||
tempfile = "3.23.0"
|
||||
tokio = { version = "1.48.0", features = ["rt-multi-thread", "process", "signal"] }
|
||||
tower = "0.5.2"
|
||||
tempfile = "3.27.0"
|
||||
tokio = { version = "1.52.1", features = ["rt-multi-thread", "process", "signal"] }
|
||||
tower = "0.5.3"
|
||||
tower-http = "0.6.8"
|
||||
tungstenite = "0.28.0"
|
||||
tungstenite = "0.29.0"
|
||||
utoipa = { version = "5.4.0", features = ["axum_extras"] }
|
||||
utoipa-axum = "0.2.0"
|
||||
utoipa-swagger-ui = { version = "9.0.2", features = ["axum", "vendored"] }
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ rustPlatform.buildRustPackage rec {
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes = {
|
||||
"mpvipc-async-0.1.0" = "sha256-f3TwX+u0IwSSET4u6cFB+/LOO9UclpY3a8JyWy6zWzo=";
|
||||
"mpvipc-async-0.2.0" = "sha256-Y4ryCH9ReQryb1Wxr5ZVdoI6zwb/nvxV2Mph9Mxnx4s=";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Generated
+6
-6
@@ -2,11 +2,11 @@
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1765472234,
|
||||
"narHash": "sha256-9VvC20PJPsleGMewwcWYKGzDIyjckEz8uWmT0vCDYK0=",
|
||||
"lastModified": 1776548001,
|
||||
"narHash": "sha256-ZSK0NL4a1BwVbbTBoSnWgbJy9HeZFXLYQizjb2DPF24=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "2fbfb1d73d239d2402a8fe03963e37aab15abe8b",
|
||||
"rev": "b12141ef619e0a9c1c84dc8c684040326f27cdcc",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -29,11 +29,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1765680428,
|
||||
"narHash": "sha256-fyPmRof9SZeI14ChPk5rVPOm7ISiiGkwGCunkhM+eUg=",
|
||||
"lastModified": 1777000482,
|
||||
"narHash": "sha256-CZ5FKUSA8FCJf0h9GWdPJXoVVDL9H5yC74GkVc5ubIM=",
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"rev": "eb3898d8ef143d4bf0f7f2229105fc51c7731b2f",
|
||||
"rev": "403c09094a877e6c4816462d00b1a56ff8198e06",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
+8
-9
@@ -80,17 +80,16 @@ async fn resolve(host: &str) -> anyhow::Result<IpAddr> {
|
||||
/// Helper function that spawns a tokio thread that
|
||||
/// continuously sends a ping to systemd watchdog, if enabled.
|
||||
async fn setup_systemd_watchdog_thread() -> anyhow::Result<()> {
|
||||
let mut watchdog_microsecs: u64 = 0;
|
||||
if sd_notify::watchdog_enabled(true, &mut watchdog_microsecs) {
|
||||
watchdog_microsecs = watchdog_microsecs.div_ceil(2);
|
||||
if let Some(mut watchdog_microsecs) = sd_notify::watchdog_enabled() {
|
||||
watchdog_microsecs /= 2;
|
||||
tokio::spawn(async move {
|
||||
log::debug!(
|
||||
"Starting systemd watchdog thread with {} millisecond interval",
|
||||
watchdog_microsecs.div_ceil(1000)
|
||||
watchdog_microsecs.as_millis()
|
||||
);
|
||||
loop {
|
||||
tokio::time::sleep(tokio::time::Duration::from_micros(watchdog_microsecs)).await;
|
||||
if let Err(err) = sd_notify::notify(false, &[sd_notify::NotifyState::Watchdog]) {
|
||||
tokio::time::sleep(watchdog_microsecs).await;
|
||||
if let Err(err) = sd_notify::notify(&[sd_notify::NotifyState::Watchdog]) {
|
||||
log::warn!("Failed to notify systemd watchdog: {}", err);
|
||||
} else {
|
||||
log::trace!("Ping sent to systemd watchdog");
|
||||
@@ -121,7 +120,7 @@ fn send_play_status(
|
||||
);
|
||||
|
||||
if systemd {
|
||||
sd_notify::notify(false, &[sd_notify::NotifyState::Status(status)]).unwrap_or_else(|e| {
|
||||
sd_notify::notify(&[sd_notify::NotifyState::Status(status)]).unwrap_or_else(|e| {
|
||||
log::warn!("Failed to update systemd status with current song: {}", e)
|
||||
});
|
||||
} else {
|
||||
@@ -199,7 +198,7 @@ async fn start_status_notifier_thread(
|
||||
|
||||
async fn shutdown(mpv: Mpv, proc: Option<tokio::process::Child>) {
|
||||
log::info!("Shutting down");
|
||||
sd_notify::notify(false, &[sd_notify::NotifyState::Stopping]).unwrap_or_else(|e| {
|
||||
sd_notify::notify(&[sd_notify::NotifyState::Stopping]).unwrap_or_else(|e| {
|
||||
log::warn!(
|
||||
"Failed to notify systemd that the service is stopping: {}",
|
||||
e
|
||||
@@ -299,7 +298,7 @@ async fn main() -> anyhow::Result<()> {
|
||||
};
|
||||
|
||||
if systemd_mode {
|
||||
match sd_notify::notify(false, &[sd_notify::NotifyState::Ready])
|
||||
match sd_notify::notify(&[sd_notify::NotifyState::Ready])
|
||||
.context("Failed to notify systemd that the service is ready")
|
||||
{
|
||||
Ok(_) => log::trace!("Notified systemd that the service is ready"),
|
||||
|
||||
Reference in New Issue
Block a user