[package]
name = "framed-codec"
version = "0.1.0"
edition = "2021"
description = "Cancel-safe, zero-allocation-per-frame length-prefixed framing for tokio byte streams."
license = "MIT OR Apache-2.0"
publish = false

[dependencies]
tokio = { version = "1", features = ["rt-multi-thread", "macros", "io-util", "time", "sync"] }
tokio-util = { version = "0.7", features = ["codec", "rt"] }
bytes = "1"
futures = "0.3"

[dev-dependencies]
proptest = "1"
tokio = { version = "1", features = ["rt-multi-thread", "macros", "io-util", "time", "sync", "test-util"] }

[[bin]]
name = "demo"
path = "src/main.rs"

[lib]
name = "framed_codec"
path = "src/lib.rs"
