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 { ( $(