systemdaemon 1.0.1

System daemon building blocks. Designed for but not limited to systemd.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.88"
name = "systemdaemon"
version = "1.0.1"
authors = ["Simon Brummer<simon.brummer@posteo.de>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "System daemon building blocks. Designed for but not limited to systemd."
readme = "README.md"
keywords = [
    "async",
    "linux",
    "systemd",
    "daemon",
    "utility",
]
categories = [
    "asynchronous",
    "command-line-interface",
    "config",
    "os",
]
license = "MPL-2.0"
repository = "https://codeberg.org/black-cat-engineering/systemdaemon"

[package.metadata.docs.rs]
all-features = true

[features]
agnostic = [
    "dep:async-signal",
    "dep:async-timer",
    "dep:async-watch",
    "dep:cancellation-token",
    "dep:futures",
]
default = []
json = ["dep:serde_json"]
systemd = [
    "dep:sd-notify",
    "dep:tracing-systemd",
]
tokio = [
    "dep:tokio",
    "dep:tokio-util",
]
toml = ["dep:toml"]
yaml = ["dep:serde-saphyr"]

[lib]
name = "systemdaemon"
path = "src/lib.rs"

[dependencies.anyhow]
version = "1.0"

[dependencies.async-signal]
version = "0.2"
optional = true

[dependencies.async-timer]
version = "0.7"
optional = true

[dependencies.async-watch]
version = "0.3"
optional = true

[dependencies.cancellation-token]
version = "0.1"
optional = true

[dependencies.futures]
version = "0.3"
optional = true

[dependencies.serde]
version = "1.0"
features = ["serde_derive"]

[dependencies.serde-saphyr]
version = "0.0"
optional = true

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.52"
features = [
    "macros",
    "signal",
    "time",
    "sync",
]
optional = true

[dependencies.tokio-util]
version = "0.7"
optional = true

[dependencies.toml]
version = "1.1"
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"

[dev-dependencies.mockall]
version = "0.14"

[dev-dependencies.smol]
version = "2.0"

[dev-dependencies.smol-timeout]
version = "0.6"

[dev-dependencies.temp_testdir]
version = "0.2"

[dev-dependencies.tokio]
version = "1.52"
features = ["rt"]

[target."cfg(unix)".dependencies.libc]
version = "0.2"

[target."cfg(unix)".dependencies.sd-notify]
version = "0.5"
optional = true

[target."cfg(unix)".dependencies.tracing-systemd]
version = "0.3"
optional = true