Move NOTIFY_SOCKET implementation into it's own crate
I will add some utility function using both crates into the main one later.
This commit is contained in:
parent
613ae42bc1
commit
058692a20c
|
@ -13,12 +13,10 @@ rust-version = "1.74.0"
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
listenfd = ["dep:storefd-listen"]
|
listenfd = ["dep:storefd-listen"]
|
||||||
notify = ["dep:libc", "dep:rustix", "rustix/pipe", "rustix/event"]
|
notify = ["dep:storefd-notify"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
libc = { version = "0.2.150", optional = true }
|
storefd-notify = { path = "./storefd-notify", version = "0.1.0", optional = true }
|
||||||
log = "0.4.20"
|
|
||||||
rustix = { version = "0.38.26", optional = true, features = ["net"] }
|
|
||||||
storefd-listen = { path = "./storefd-listen", version = "0.1.0", optional = true }
|
storefd-listen = { path = "./storefd-listen", version = "0.1.0", optional = true }
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
|
|
|
@ -7,4 +7,4 @@
|
||||||
pub use storefd_listen;
|
pub use storefd_listen;
|
||||||
#[cfg(feature = "notify")]
|
#[cfg(feature = "notify")]
|
||||||
#[cfg_attr(doc_cfg, doc(cfg(feature = "notify")))]
|
#[cfg_attr(doc_cfg, doc(cfg(feature = "notify")))]
|
||||||
pub mod notify;
|
pub use storefd_notify;
|
||||||
|
|
16
storefd-notify/Cargo.toml
Normal file
16
storefd-notify/Cargo.toml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
[package]
|
||||||
|
name = "storefd-notify"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
license = "MIT"
|
||||||
|
authors = ["Mathieu Trossevin <mtrossevin@evolix.fr>"]
|
||||||
|
repository = "https://gitea.evolix.org/mtrossevin/storefd/"
|
||||||
|
description = "An implementation of the `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
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
libc = "0.2.150"
|
||||||
|
log = "0.4.20"
|
||||||
|
rustix = { version = "0.38.26", features = ["net", "pipe", "event"] }
|
Loading…
Reference in a new issue