From 43121ce2ea079286f50edfe2abeec81268e340bb Mon Sep 17 00:00:00 2001 From: Aram Peres Date: Fri, 30 Jul 2021 12:15:20 -0400 Subject: [PATCH] Restructure with workspace --- Cargo.toml | 25 +++---------------- nut-client/Cargo.toml | 21 ++++++++++++++++ {examples => nut-client/examples}/blocking.rs | 0 {src => nut-client/src}/blocking/mod.rs | 0 {src => nut-client/src}/cmd.rs | 0 {src => nut-client/src}/config.rs | 0 {src => nut-client/src}/error.rs | 0 {src => nut-client/src}/lib.rs | 0 {src => nut-client/src}/var.rs | 0 9 files changed, 25 insertions(+), 21 deletions(-) create mode 100644 nut-client/Cargo.toml rename {examples => nut-client/examples}/blocking.rs (100%) rename {src => nut-client/src}/blocking/mod.rs (100%) rename {src => nut-client/src}/cmd.rs (100%) rename {src => nut-client/src}/config.rs (100%) rename {src => nut-client/src}/error.rs (100%) rename {src => nut-client/src}/lib.rs (100%) rename {src => nut-client/src}/var.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index 10576d2..044aa61 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,21 +1,4 @@ -[package] -name = "nut-client" -version = "0.0.4" -authors = ["Aram Peres "] -edition = "2018" -description = "Network UPS Tools (NUT) client library" -categories = ["network-programming"] -keywords = ["ups", "nut"] -repository = "https://github.com/aramperes/nut-client-rs" -documentation = "https://docs.rs/nut-client" -readme = "README.md" -license = "MIT" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dependencies] -shell-words = "1.0.0" -dotenv = { version = "0.15.0", optional = true } - -[features] -env-file = ["dotenv"] +[workspace] +members = [ + "nut-client" +] diff --git a/nut-client/Cargo.toml b/nut-client/Cargo.toml new file mode 100644 index 0000000..b93d64e --- /dev/null +++ b/nut-client/Cargo.toml @@ -0,0 +1,21 @@ +[package] +name = "nut-client" +version = "0.0.4" +authors = ["Aram Peres "] +edition = "2018" +description = "Network UPS Tools (NUT) client library" +categories = ["network-programming"] +keywords = ["ups", "nut"] +repository = "https://github.com/aramperes/nut-client-rs" +documentation = "https://docs.rs/nut-client" +readme = "../README.md" +license = "MIT" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +shell-words = "1.0.0" +dotenv = { version = "0.15.0", optional = true } + +[features] +env-file = ["dotenv"] diff --git a/examples/blocking.rs b/nut-client/examples/blocking.rs similarity index 100% rename from examples/blocking.rs rename to nut-client/examples/blocking.rs diff --git a/src/blocking/mod.rs b/nut-client/src/blocking/mod.rs similarity index 100% rename from src/blocking/mod.rs rename to nut-client/src/blocking/mod.rs diff --git a/src/cmd.rs b/nut-client/src/cmd.rs similarity index 100% rename from src/cmd.rs rename to nut-client/src/cmd.rs diff --git a/src/config.rs b/nut-client/src/config.rs similarity index 100% rename from src/config.rs rename to nut-client/src/config.rs diff --git a/src/error.rs b/nut-client/src/error.rs similarity index 100% rename from src/error.rs rename to nut-client/src/error.rs diff --git a/src/lib.rs b/nut-client/src/lib.rs similarity index 100% rename from src/lib.rs rename to nut-client/src/lib.rs diff --git a/src/var.rs b/nut-client/src/var.rs similarity index 100% rename from src/var.rs rename to nut-client/src/var.rs