From 89dda462ff42ef4c5039a434cfec345591f2be69 Mon Sep 17 00:00:00 2001 From: Mathieu Trossevin Date: Thu, 11 Jan 2024 18:02:17 +0100 Subject: [PATCH] Change repository into a workspace --- Cargo.toml | 38 +++++++------------------------------ storefd/Cargo.toml | 33 ++++++++++++++++++++++++++++++++ {src => storefd/src}/lib.rs | 2 +- 3 files changed, 41 insertions(+), 32 deletions(-) create mode 100644 storefd/Cargo.toml rename {src => storefd/src}/lib.rs (73%) diff --git a/Cargo.toml b/Cargo.toml index 50385af..b67ed26 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,33 +1,9 @@ -[package] -name = "storefd" -version = "0.2.0-dev" -edition = "2021" -license = "MIT" -authors = ["Mathieu Trossevin "] -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" +[workspace] -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[features] -default = [] -listenfd = ["dep:storefd-listen"] -notify = ["dep:storefd-notify"] - -[dependencies] -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] -features = ["listenfd", "notify"] -rustdoc-args = ["--cfg", "doc_cfg"] -targets = [ - "x86_64-unknown-linux-gnu", - "i686-unknown-linux-gnu", - "x86_64-apple-darwin", - "x86_64-unknown-freebsd", - "x86_64-unknown-openbsd", - "x86_64-unknown-netbsd", - "wasm32-unknown-emscripten" +resolver = "2" +members = [ + "storefd", + "storefd-listen", + "storefd-notify", ] + diff --git a/storefd/Cargo.toml b/storefd/Cargo.toml new file mode 100644 index 0000000..9941d9b --- /dev/null +++ b/storefd/Cargo.toml @@ -0,0 +1,33 @@ +[package] +name = "storefd" +version = "0.2.0-dev" +edition = "2021" +license = "MIT" +authors = ["Mathieu Trossevin "] +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:storefd-listen"] +notify = ["dep:storefd-notify"] + +[dependencies] +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] +features = ["listenfd", "notify"] +rustdoc-args = ["--cfg", "doc_cfg"] +targets = [ + "x86_64-unknown-linux-gnu", + "i686-unknown-linux-gnu", + "x86_64-apple-darwin", + "x86_64-unknown-freebsd", + "x86_64-unknown-openbsd", + "x86_64-unknown-netbsd", + "wasm32-unknown-emscripten" +] diff --git a/src/lib.rs b/storefd/src/lib.rs similarity index 73% rename from src/lib.rs rename to storefd/src/lib.rs index 047ec73..87b6d19 100644 --- a/src/lib.rs +++ b/storefd/src/lib.rs @@ -1,4 +1,4 @@ -//! A library permitting interaction with the LISTEN_FDS and NOTIFY_SOCKET protocol. +//! A library permitting interaction with the `LISTEN_FDS` and `NOTIFY_SOCKET` protocol. #![cfg_attr(doc_cfg, feature(doc_cfg))]