Mercurial > crates > systemd-socket
changeset 20:2b78a483f84b
Update `libsystemd`
author | Martin Habovstiak <martin.habovstiak@gmail.com> |
---|---|
date | Sat, 13 Jul 2024 14:19:29 +0200 |
parents | 77dc1c45b424 |
children | f6334887e3c8 |
files | Cargo.toml src/lib.rs |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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"
--- 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<T> = Result<T, LibSystemdError>; #[derive(Debug)] pub(crate) struct Error(&'static Mutex<LibSystemdError>);