]> git.lizzy.rs Git - connect-rs.git/blobdiff - Cargo.toml
move tls into a feature and remove error dep on async-channel
[connect-rs.git] / Cargo.toml
index 2cf5a0f2262906fb88073a440e19cbda7af02d5b..2e7b1c984d87062dd70d1bd20966b562f88532fc 100644 (file)
@@ -1,6 +1,6 @@
 [package]
 name = "connect"
-version = "0.1.3"
+version = "0.2.0"
 edition = "2018"
 authors = ["Sachandhan Ganesh <sachan.ganesh@gmail.com>"]
 description = "message queue abstraction over async network streams"
@@ -11,18 +11,30 @@ documentation = "https://docs.rs/connect/"
 readme = "README.md"
 license = "Apache-2.0"
 
+[package.metadata.docs.rs]
+features = ["async"]
+rustdoc-args = ["--cfg", "docsrs"]
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
 [workspace]
 members = [
     "examples/*",
 ]
 
 
+[features]
+tls = ["async-tls", "rustls"]
+
 [dependencies]
 anyhow = "1.0.31"
-async-channel = "1.4.0"
-async-std = { version = "1.9.0", features = ["attributes", "unstable"] }
-async-tls = { version = "0.9.0", default-features = false, features = ["client", "server"]}
+async-std = { version = "1.9.0", features = ["unstable"] }
 bytes = "0.5.5"
 futures = "0.3.8"
 log = "0.4"
-rustls = "0.18.0"
+
+async-tls = { version = "0.11.0", default-features = false, features = ["client", "server"], optional = true }
+rustls = { version = "0.19.0", optional = true }
+
+[dev-dependencies]
+async-std = { version = "1.9.0", features = ["attributes"] }
\ No newline at end of file