[[bench]]
harness = false
name = "comparison"
path = "benches/comparison.rs"
[dependencies.crc32c]
default-features = false
optional = true
version = "0.6.8"
[dependencies.slicur]
optional = true
version = "0.2.0"
[dependencies.thiserror]
optional = true
version = "2.0"
[dependencies.uni-addr]
default-features = false
optional = true
version = "0.2.2"
[dependencies.wrapper-lite]
default-features = false
version = "0.1.1"
[dev-dependencies.criterion]
features = ["html_reports"]
version = "0.7.0"
[dev-dependencies.ppp]
version = "=2.3.0"
[features]
default = ["feat-std", "feat-alloc", "feat-codec-encode", "feat-codec-decode", "feat-codec-v1", "feat-codec-v2", "feat-uni-addr"]
feat-alloc = []
feat-codec-decode = ["dep:thiserror", "dep:slicur"]
feat-codec-encode = ["feat-alloc", "dep:thiserror"]
feat-codec-v1 = []
feat-codec-v2 = []
feat-codec-v2-crc32c = ["feat-std", "dep:crc32c"]
feat-codec-v2-uni-addr = ["feat-uni-addr"]
feat-nightly = []
feat-std = []
feat-uni-addr = ["feat-std", "dep:uni-addr"]
[lib]
name = "proxy_protocol_codec"
path = "src/lib.rs"
[lints.clippy]
allow_attributes_without_reason = "warn"
assertions_on_result_states = "warn"
assigning_clones = "warn"
bool_to_int_with_if = "warn"
cognitive_complexity = "warn"
create_dir = "warn"
dbg_macro = "warn"
debug_assert_with_mut_call = "warn"
default_trait_access = "warn"
disallowed_script_idents = "deny"
doc_link_with_quotes = "warn"
doc_markdown = "warn"
else_if_without_else = "deny"
enum_glob_use = "warn"
filetype_is_file = "warn"
inefficient_to_string = "warn"
mem_forget = "warn"
missing_panics_doc = "warn"
mod_module_files = "deny"
multiple_inherent_impl = "warn"
mutex_atomic = "warn"
mutex_integer = "warn"
needless_continue = "warn"
panic = "warn"
significant_drop_in_scrutinee = "warn"
todo = "warn"
unimplemented = "warn"
unreachable = "warn"
wildcard_dependencies = "deny"
wildcard_imports = "warn"
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "warn"
[package]
authors = ["Hantong Chen <cxwdyx620@gmail.com>", "Miguel D. Salcedo <miguel@salcedo.cc>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["network-programming"]
description = "PROXY Protocol codec implementation in Rust. See HAProxy for the protocol specification."
edition = "2021"
keywords = ["proxy", "protocol", "haproxy", "codec"]
license = "Apache-2.0"
name = "proxy-protocol-codec"
readme = "README.md"
repository = "https://github.com/hanyu-dev/proxy-protocol-codec"
rust-version = "1.77.0"
version = "0.2.0"