[package]
name = "pipenet"
version = "0.2.3"
edition = "2024"

authors = ["Raffaele Ragni <raffaele.ragni@gmail.com>"]
license = "MIT OR Apache-2.0"
description = "Non blocking tcp stream wrapper using channels"
homepage = "https://codeberg.org/raffaeleragni/pipenet"
repository = "https://codeberg.org/raffaeleragni/pipenet"
documentation = "https://docs.rs/pipenet"
readme = "README.md"
keywords = ["netcode"]
categories = ["network-programming"]
include = ["/src", "/LICENSE-MIT", "/LICENSE-APACHE"]

[features]
default = []
encryption = ["dep:chacha20poly1305"]
compression = ["dep:lz4-compression"]

[dependencies]
byteorder = "1"
mio = { version = "1", features = ["net", "os-poll"] }

# feature = encryption
chacha20poly1305 = { version = "0.10.1", optional = true }
# feature = compression
lz4-compression = { version = "0.7.0", optional = true }
