mirror of
https://github.com/tlsnotary/tlsn-utils.git
synced 2026-01-09 20:57:56 -05:00
* feat: serio * add IoStreamExt * fix doc link * add into_stream * pin project IntoSink * add flush method to SinkExt * add duplex traits * Apply suggestions from code review Co-authored-by: dan <themighty1@users.noreply.github.com> * add Framed test --------- Co-authored-by: dan <themighty1@users.noreply.github.com>
34 lines
968 B
TOML
34 lines
968 B
TOML
[package]
|
|
name = "serio"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[features]
|
|
default = ["compat", "channel", "codec", "bincode"]
|
|
compat = ["dep:futures-sink"]
|
|
channel = ["dep:futures-channel"]
|
|
codec = ["dep:tokio-util"]
|
|
bincode = ["dep:bincode"]
|
|
|
|
[dependencies]
|
|
bytes.workspace = true
|
|
serde.workspace = true
|
|
pin-project-lite.workspace = true
|
|
futures-core.workspace = true
|
|
futures-channel = { workspace = true, optional = true }
|
|
futures-sink = { workspace = true, optional = true }
|
|
futures-util = { workspace = true, features = ["bilock", "unstable"] }
|
|
tokio-util = { workspace = true, features = ["codec"], optional = true }
|
|
bincode = { workspace = true, optional = true }
|
|
|
|
[dev-dependencies]
|
|
futures.workspace = true
|
|
serde = { workspace = true, features = ["derive"] }
|
|
tokio = { workspace = true, features = ["full"] }
|
|
tokio-util = { workspace = true, features = ["codec"] }
|
|
|
|
[[example]]
|
|
name = "tokio_codec"
|
|
path = "examples/tokio_codec.rs"
|
|
required-features = ["codec"]
|