network-protocol 1.0.1

Secure, high-performance protocol core with backpressure control, structured logging, timeout handling, TLS support, and comprehensive benchmarking for robust Rust networked applications and services.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "network-protocol"
version = "1.0.1"
authors = ["James Gober <code@jamesgober.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Secure, high-performance protocol core with backpressure control, structured logging, timeout handling, TLS support, and comprehensive benchmarking for robust Rust networked applications and services."
homepage = "https://github.com/jamesgober/network-protocol"
documentation = "https://docs.rs/network-protocol"
readme = "README.md"
keywords = [
    "network",
    "protocol",
    "secure",
    "backpressure",
    "performance",
]
categories = [
    "network-programming",
    "asynchronous",
    "cryptography",
    "authentication",
    "concurrency",
]
license = "Apache-2.0"
repository = "https://github.com/jamesgober/network-protocol"

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

[[bin]]
name = "network-protocol"
path = "src/main.rs"

[[test]]
name = "backpressure"
path = "tests/backpressure.rs"

[[test]]
name = "concurrency"
path = "tests/concurrency.rs"

[[test]]
name = "config_test"
path = "tests/config_test.rs"

[[test]]
name = "dispatcher_bench"
path = "tests/dispatcher_bench.rs"

[[test]]
name = "edge_cases"
path = "tests/edge_cases.rs"

[[test]]
name = "integration"
path = "tests/integration.rs"

[[test]]
name = "perf"
path = "tests/perf.rs"

[[test]]
name = "shutdown"
path = "tests/shutdown.rs"

[[test]]
name = "stress"
path = "tests/stress.rs"

[[test]]
name = "test_utils"
path = "tests/test_utils.rs"

[[test]]
name = "timeouts"
path = "tests/timeouts.rs"

[[test]]
name = "tls"
path = "tests/tls.rs"

[[bench]]
name = "compression_bench"
path = "benches/compression_bench.rs"
harness = false

[[bench]]
name = "message_bench"
path = "benches/message_bench.rs"
harness = false

[[bench]]
name = "packet_bench"
path = "benches/packet_bench.rs"
harness = false

[dependencies.bincode]
version = "1.3"

[dependencies.bytes]
version = "1.5"

[dependencies.chacha20poly1305]
version = "0.10"
features = ["std"]

[dependencies.futures]
version = "0.3"

[dependencies.getrandom]
version = "0.3.3"

[dependencies.lz4_flex]
version = "0.11.5"

[dependencies.once_cell]
version = "1.8"

[dependencies.rand]
version = "0.9"

[dependencies.rand_chacha]
version = "0.3"

[dependencies.rand_core]
version = "0.6"

[dependencies.rcgen]
version = "0.14.5"
features = ["pem"]

[dependencies.rustls]
version = "0.21"
features = ["dangerous_configuration"]

[dependencies.rustls-native-certs]
version = "0.6"

[dependencies.rustls-pemfile]
version = "1.0"

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1.38"
features = [
    "net",
    "io-util",
    "macros",
    "rt-multi-thread",
    "fs",
    "signal",
]

[dependencies.tokio-rustls]
version = "0.24"

[dependencies.tokio-stream]
version = "0.1"

[dependencies.tokio-util]
version = "0.7"
features = ["codec"]

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"
features = ["attributes"]

[dependencies.tracing-appender]
version = "0.2"

[dependencies.tracing-futures]
version = "0.2"

[dependencies.tracing-subscriber]
version = "0.3.20"
features = [
    "env-filter",
    "fmt",
    "json",
]

[dependencies.x25519-dalek]
version = "2.0"
features = ["serde"]

[dependencies.zeroize]
version = "1.7"
features = [
    "serde",
    "zeroize_derive",
]

[dependencies.zstd]
version = "0.13"

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.serial_test]
version = "2.0"

[lints.clippy.complexity]
level = "warn"
priority = -1

[lints.clippy.correctness]
level = "deny"
priority = 0

[lints.clippy.expect_used]
level = "warn"
priority = 1

[lints.clippy.panic]
level = "warn"
priority = 1

[lints.clippy.perf]
level = "warn"
priority = -1

[lints.clippy.style]
level = "warn"
priority = -1

[lints.clippy.suspicious]
level = "deny"
priority = 0

[lints.clippy.unwrap_used]
level = "warn"
priority = 1

[profile.bench]
opt-level = 3
lto = true
codegen-units = 1
debug = 2

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
debug = 0
strip = "symbols"