From 472395ca14463126720ab4ff874ccdecc52c9e5a Mon Sep 17 00:00:00 2001 From: Aram Peres Date: Tue, 3 Aug 2021 19:51:08 -0400 Subject: [PATCH] Make proto module public --- rups/src/lib.rs | 8 +++++--- rups/src/proto/mod.rs | 3 --- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/rups/src/lib.rs b/rups/src/lib.rs index 0f9aad9..6454271 100644 --- a/rups/src/lib.rs +++ b/rups/src/lib.rs @@ -12,6 +12,11 @@ pub use var::*; /// Blocking client implementation for NUT. pub mod blocking; +/// NUT protocol implementation (v1.2). +/// +/// Reference: +#[allow(dead_code)] +pub mod proto; /// Async client implementation for NUT, using Tokio. #[cfg(feature = "async")] pub mod tokio; @@ -19,9 +24,6 @@ pub mod tokio; mod cmd; mod config; mod error; -/// Bi-directional networking protocol implementation. -#[allow(dead_code)] -mod proto; #[cfg(feature = "ssl")] mod ssl; mod util; diff --git a/rups/src/proto/mod.rs b/rups/src/proto/mod.rs index e50f284..025f164 100644 --- a/rups/src/proto/mod.rs +++ b/rups/src/proto/mod.rs @@ -1,6 +1,3 @@ -///! NUT protocol implementation (v1.2). -///! Reference: https://networkupstools.org/docs/developer-guide.chunked/ar01s09.html - macro_rules! impl_words { ( $(