]> git.lizzy.rs Git - connect-rs.git/commitdiff
remove unstable features for doc comments
authorSachandhan Ganesh <sachan.ganesh@gmail.com>
Mon, 15 Feb 2021 01:41:03 +0000 (17:41 -0800)
committerSachandhan Ganesh <sachan.ganesh@gmail.com>
Mon, 15 Feb 2021 01:41:03 +0000 (17:41 -0800)
Cargo.toml
README.md
src/lib.rs
src/tls/mod.rs

index 79c125ede5f998141fd1706cb05bcf320f2cf202..8922abe14310b8680bebec66099feb9f4506ddbe 100644 (file)
@@ -1,6 +1,6 @@
 [package]
 name = "connect"
-version = "0.2.3"
+version = "0.2.4"
 edition = "2018"
 authors = ["Sachandhan Ganesh <sachan.ganesh@gmail.com>"]
 description = "message queue abstraction over async network streams"
index 418f5e23c289bee9f06322103d59f9d4ffaef3d6..e7c867ce8434592d0b768fc00e5662ab1d0c81f9 100644 (file)
--- a/README.md
+++ b/README.md
@@ -43,7 +43,7 @@ as a practical reference for crate usage.
 - TCP
     - [TCP Echo Server](https://github.com/sachanganesh/connect-rs/tree/main/examples/tcp-echo-server)
     - [TCP Client](https://github.com/sachanganesh/connect-rs/tree/main/examples/tcp-client)
-- TLS
+- TLS (enable `tls` feature flag)
     - [TLS Echo Server](https://github.com/sachanganesh/connect-rs/tree/main/examples/tls-echo-server)
     - [TLS Client](https://github.com/sachanganesh/connect-rs/tree/main/examples/tls-client)
 
@@ -73,9 +73,9 @@ library users can do interesting things such as:
 - Use the recipient tag to signify which serialization format was used for that message
 - Use the recipient tag to signify the type of message being sent
 
-## Contributing
+## Feature Flags
 
-This crate gladly accepts contributions. Don't hesitate to open issues or PRs.
+- `tls`: enables usage of tls transport functionality
 
 ## Feature Status
 
@@ -89,3 +89,7 @@ This crate gladly accepts contributions. Don't hesitate to open issues or PRs.
 | SCTP Server                                          |               |
 | DTLS-SCTP Client                                     |               |
 | DTLS-SCTP Server                                     |               |
+
+## Contributing
+
+This crate gladly accepts contributions. Don't hesitate to open issues or PRs.
index ef55dbb2bd6c5134e1d16ac16ea6ba36bee5f97f..45e6e9095d8f886c592fe90252a64d7840ded252 100644 (file)
@@ -33,7 +33,7 @@
 //! - TCP
 //!     - [TCP Echo Server](https://github.com/sachanganesh/connect-rs/tree/main/examples/tcp-echo-server)
 //!     - [TCP Client](https://github.com/sachanganesh/connect-rs/tree/main/examples/tcp-client)
-//! - TLS
+//! - TLS (enable `tls` feature flag)
 //!     - [TLS Echo Server](https://github.com/sachanganesh/connect-rs/tree/main/examples/tls-echo-server)
 //!     - [TLS Client](https://github.com/sachanganesh/connect-rs/tree/main/examples/tls-client)
 //!
 //! - Use the recipient tag to signify which serialization format was used for that message
 //! - Use the recipient tag to signify the type of message being sent
 //!
+//! # Feature Flags
+//!
+//! - `tls`: enables usage of tls transport functionality
+//!
 
 // #![feature(doc_cfg)]
 
@@ -72,7 +76,7 @@ pub mod tcp;
 mod writer;
 
 #[cfg(feature = "tls")]
-#[doc(cfg(feature = "tls"))]
+// #[doc(cfg(feature = "tls"))]
 pub mod tls;
 
 use async_std::{net::SocketAddr, pin::Pin};
index 8e62369d3034ed4d151dbfbbc1a0f68f21ae18c0..65ded0aa63cb13690e172d546e66367b3253ed92 100644 (file)
@@ -20,11 +20,11 @@ pub use client::*;
 pub use listener::*;
 
 #[cfg(feature = "tls")]
-#[doc(cfg(feature = "tls"))]
+// #[doc(cfg(feature = "tls"))]
 pub use async_tls;
 
 #[cfg(feature = "tls")]
-#[doc(cfg(feature = "tls"))]
+// #[doc(cfg(feature = "tls"))]
 pub use rustls;
 
 /// Used to differentiate between an outgoing connection ([Client](`TlsConnectionMetadata::Client`))