]> git.lizzy.rs Git - connect-rs.git/blobdiff - Cargo.toml
refactor to have datagram already serialized in memory
[connect-rs.git] / Cargo.toml
index b52726656e3a24faad1e44dead518a948584d3d9..a532146d8eaf59531b316d886cf1f8c46fb0ebea 100644 (file)
@@ -1,34 +1,43 @@
 [package]
 name = "connect"
-version = "0.0.3"
+version = "0.3.0"
 edition = "2018"
 authors = ["Sachandhan Ganesh <sachan.ganesh@gmail.com>"]
 description = "message queue abstraction over async network streams"
 keywords = ["async", "network", "message-queue", "mq", "aio"]
 categories = ["asynchronous", "network-programming", "rust-patterns", "encoding"]
 repository = "https://github.com/sachanganesh/connect-rs"
+documentation = "https://docs.rs/connect/"
 readme = "README.md"
 license = "Apache-2.0"
 
+[package.metadata.docs.rs]
+features = ["tls"]
+rustdoc-args = ["--cfg", "docsrs"]
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
 [workspace]
 members = [
-    "examples/tcp-client",
-    "examples/tcp-echo-server",
-    "examples/tls-client",
-    "examples/tls-echo-server",
+    "examples/*",
 ]
 
 
+[features]
+tls = ["async-tls", "rustls", "rustls-pemfile"]
+
 [dependencies]
-anyhow = "1.0.31"
-async-channel = "1.4.0"
-async-std = { version = "1.6.2", features = ["unstable"] }
-async-tls = { version = "0.9.0", default-features = false, features = ["client", "server"]}
+anyhow = "1.0"
+async-std = { version = "1.12.0", features = ["unstable"] }
+async-stream = "0.3.0"
 bytes = "0.5.5"
-futures = "0.3.8"
+futures = "0.3"
+futures-lite = "1.11"
 log = "0.4"
-protobuf = "2.18.1"
-rustls = "0.18.0"
 
-[build-dependencies]
-protobuf-codegen-pure = "2.18.1"
+async-tls = { version = "0.11.0", default-features = false, features = ["client", "server"], optional = true }
+rustls = { version = "0.19.0", optional = true }
+rustls-pemfile = { version = "1.0.1", optional = true }
+
+[dev-dependencies]
+async-std = { version = "1.12.0", features = ["attributes"] }
\ No newline at end of file