# HG changeset patch # User Martin Habovstiak # Date 1720873169 -7200 # Node ID 2b78a483f84b33a58c24290d531f9ddf785b0614 # Parent 77dc1c45b4240bdc1d712462758a887c2dece6d9 Update `libsystemd` diff -r 77dc1c45b424 -r 2b78a483f84b Cargo.toml --- a/Cargo.toml Tue Dec 22 14:27:31 2020 +0100 +++ b/Cargo.toml Sat Jul 13 14:19:29 2024 +0200 @@ -22,7 +22,7 @@ [target.'cfg(target_os = "linux")'.dependencies] # WARNING: It is NOT guaranteed that this crate will always use libsystemd as dependency! # This as a feature is not considered a public interface! -libsystemd = { version = "0.2.1", optional = true } +libsystemd = { version = ">= 0.3.0, < 0.8.0", optional = true } [dependencies] thiserror = "1.0.21" diff -r 77dc1c45b424 -r 2b78a483f84b src/lib.rs --- a/src/lib.rs Tue Dec 22 14:27:31 2020 +0100 +++ b/src/lib.rs Sat Jul 13 14:19:29 2024 +0200 @@ -76,8 +76,8 @@ use std::fmt; use std::sync::Mutex; use libsystemd::activation::FileDescriptor; - use libsystemd::errors::Error as LibSystemdError; - use libsystemd::errors::Result as LibSystemdResult; + use libsystemd::errors::SdError as LibSystemdError; + type LibSystemdResult = Result; #[derive(Debug)] pub(crate) struct Error(&'static Mutex);