[package]
name = "tokio-serde"
version = "0.8.0"
edition = "2018"
authors = [
"Carl Lerche <me@carllerche.com>",
"Artem Vorotnikov <artem@vorotnikov.me>",
"Bastian Köcher <git@kchr.de>",
]
license = "MIT OR Apache-2.0"
readme = "README.md"
categories = ["asynchronous", "encoding"]
keywords = ["async", "serde", "serialization"]
repository = "https://github.com/carllerche/tokio-serde"
homepage = "https://github.com/carllerche/tokio-serde"
documentation = "https://docs.rs/tokio-serde"
description = """
Send and receive Serde encodable types over the network using Tokio.
This library is used as a building block for serialization format specific
libraries.
"""
[dependencies]
bytes = "1.0"
educe = { version = "0.4", optional = true, default-features = false }
futures-core = "0.3"
futures-sink = "0.3"
pin-project = "1"
serde = { version = "1", optional = true }
bincode-crate = { package = "bincode", version = "1", optional = true }
serde_json = { version = "1", optional = true }
rmp-serde = { version = "0.15", optional = true }
serde_cbor = { version = "0.11", optional = true }
[dev-dependencies]
futures = "0.3"
impls = "1"
tokio = { version = "1.0", features = ["full"] }
tokio-util = { version = "0.6", features = ["codec"] }
static_assertions = "1.1.0"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[features]
bincode = ["educe/Debug", "serde", "bincode-crate"]
json = ["educe/Debug", "educe/Default", "serde", "serde_json"]
messagepack = ["educe/Debug", "educe/Default", "serde", "rmp-serde"]
cbor = ["educe/Debug", "educe/Default", "serde", "serde_cbor"]
[[example]]
name = "client"
required-features = ["bincode", "cbor", "json", "messagepack"]
[[example]]
name = "server"
required-features = ["bincode", "cbor", "json", "messagepack"]