diff --git a/Cargo.toml b/Cargo.toml index 387ba86..50385af 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,12 +13,10 @@ rust-version = "1.74.0" [features] default = [] listenfd = ["dep:storefd-listen"] -notify = ["dep:libc", "dep:rustix", "rustix/pipe", "rustix/event"] +notify = ["dep:storefd-notify"] [dependencies] -libc = { version = "0.2.150", optional = true } -log = "0.4.20" -rustix = { version = "0.38.26", optional = true, features = ["net"] } +storefd-notify = { path = "./storefd-notify", version = "0.1.0", optional = true } storefd-listen = { path = "./storefd-listen", version = "0.1.0", optional = true } [package.metadata.docs.rs] diff --git a/src/lib.rs b/src/lib.rs index 567bc28..047ec73 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,4 +7,4 @@ pub use storefd_listen; #[cfg(feature = "notify")] #[cfg_attr(doc_cfg, doc(cfg(feature = "notify")))] -pub mod notify; +pub use storefd_notify; diff --git a/storefd-notify/Cargo.toml b/storefd-notify/Cargo.toml new file mode 100644 index 0000000..6a4b71b --- /dev/null +++ b/storefd-notify/Cargo.toml @@ -0,0 +1,16 @@ +[package] +name = "storefd-notify" +version = "0.1.0" +edition = "2021" +license = "MIT" +authors = ["Mathieu Trossevin "] +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"] } diff --git a/src/notify/error.rs b/storefd-notify/src/error.rs similarity index 100% rename from src/notify/error.rs rename to storefd-notify/src/error.rs diff --git a/src/notify/mod.rs b/storefd-notify/src/lib.rs similarity index 100% rename from src/notify/mod.rs rename to storefd-notify/src/lib.rs diff --git a/src/notify/types.rs b/storefd-notify/src/types.rs similarity index 100% rename from src/notify/types.rs rename to storefd-notify/src/types.rs