storefd/Cargo.toml
Mathieu Trossevin d60d906483 notify: Add an equivalent to sd_notify_barrier
This also add an RAII guard for that can be used for the same purpose.
(Mostly for use in a closure.)
2024-01-05 21:27:09 +01:00

22 lines
803 B
TOML

[package]
name = "storefd"
version = "0.2.0-dev"
edition = "2021"
license = "MIT"
authors = ["Mathieu Trossevin <mtrossevin@evolix.fr>"]
repository = "https://gitea.evolix.org/mtrossevin/storefd/"
description = "An implementation of file descriptor passing with `LISTEN_FD` and of `NOTIFY_SOCKET` readiness protocol."
rust-version = "1.74.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = []
listenfd = ["dep:rustix", "rustix/fs", "dep:libc"]
notify = ["dep:libc", "dep:rustix", "rustix/pipe", "rustix/event"]
[dependencies]
libc = { version = "0.2.150", optional = true }
rustix = { version = "0.38.26", optional = true, features = ["net"] }
tracing = { version = "0.1.40", default-features = false, features = ["std", "log"] }