[package]
name = "protocol"
version = "3.1.2"
authors = ["Dylan McKay <me@dylanmckay.io>"]

description = "Easy protocol definitions"
license = "MIT"
readme = "../README.md"
repository = "https://github.com/dylanmckay/protocol"
documentation = "https://docs.rs/protocol"
keywords = ["protocol", "tcp", "udp", "connection", "encoding"]

[features]
default = ["uuid"]

[dependencies]
byteorder = "1.3"
flate2 = { version = "1.0", features = ["zlib"], default-features = false }
uuid = { version = "0.7", optional = true }
error-chain = "0.12"
num-traits = "0.2"

[dev-dependencies]
# Used in examples
protocol-derive = { path = "../protocol-derive", version = "3.1.2" }

[[example]]
name = "basic"
path = "../examples/basic.rs"

[[example]]
name = "compression"
path = "../examples/compression.rs"

[[example]]
name = "custom_middleware"
path = "../examples/custom_middleware.rs"

[[example]]
name = "packet_headers"
path = "../examples/packet_headers.rs"

[[example]]
name = "udp"
path = "../examples/udp.rs"


[package]
name = "protocol"
version = "3.1.2"
authors = ["Dylan McKay <me@dylanmckay.io>"]

description = "Easy protocol definitions"
license = "MIT"
readme = "../README.md"
repository = "https://github.com/dylanmckay/protocol"
documentation = "https://docs.rs/protocol"
keywords = ["protocol", "tcp", "udp", "connection", "encoding"]

[features]
default = ["uuid"]

[dependencies]
byteorder = "1.3"
flate2 = { version = "1.0" }
uuid = { version = "0.7", optional = true }
error-chain = "0.12"
num-traits = "0.2"

[dev-dependencies]
# Used in examples
protocol-derive = { path = "../protocol-derive", version = "3.1.2" }

[[example]]
name = "basic"
path = "../examples/basic.rs"

[[example]]
name = "compression"
path = "../examples/compression.rs"

[[example]]
name = "custom_middleware"
path = "../examples/custom_middleware.rs"

[[example]]
name = "packet_headers"
path = "../examples/packet_headers.rs"

[[example]]
name = "udp"
path = "../examples/udp.rs"


Disable 'zlib' feature of 'flate2'
Disable 'zlib' feature of 'flate2'

This removes the dependency on libz-sys in favor of a Rust-only
compression backend.

This allows the crate to be used on WebAssembly.
