feat(blahd): impl socket activation integration

This also allows arbitrary listening fd include UNIX domain sockets, via
environment variables as sd_listen_fds(3).
This commit is contained in:
oxalica 2024-09-11 13:14:06 -04:00
parent 87c8acd5b2
commit 98b2df2fdf
8 changed files with 206 additions and 13 deletions

View file

@ -16,6 +16,7 @@ parking_lot = "0.12" # Maybe no better performance, just that we hate poisoning.
rusqlite = "0.32"
sd-notify = "0.4"
serde = { version = "1", features = ["derive"] }
serde-constant = "0.1"
serde-inline-default = "0.2.0"
serde_json = "1"
serde_urlencoded = "0.7.1"
@ -30,9 +31,11 @@ url = { version = "2.5.2", features = ["serde"] }
blah-types = { path = "../blah-types", features = ["rusqlite"] }
[dev-dependencies]
nix = { version = "0.29.0", features = ["fs", "process", "signal"] }
rand = "0.8.5"
reqwest = { version = "0.12.7", features = ["json"] }
rstest = { version = "0.22.0", default-features = false }
scopeguard = "1.2.0"
[lints]
workspace = true