[[bench]]
harness = false
name = "command_parsing"
path = "benches/command_parsing.rs"
[[bench]]
harness = false
name = "response_parsing"
path = "benches/response_parsing.rs"
[[bin]]
name = "nntp-cache-proxy"
path = "src/bin/nntp-cache-proxy.rs"
[[bin]]
name = "nntp-proxy"
path = "src/bin/nntp-proxy.rs"
[dependencies.anyhow]
version = "1.0"
[dependencies.async-trait]
version = "0.1.89"
[dependencies.bytes]
version = "1.0"
[dependencies.clap]
default-features = false
features = ["derive", "env", "std"]
version = "4.0"
[dependencies.crossbeam]
features = ["alloc", "std"]
version = "0.8"
[dependencies.deadpool]
version = "0.12.3"
[dependencies.memchr]
features = ["libc"]
version = "2.7"
[dependencies.moka]
default-features = false
features = ["future"]
version = "0.12"
[dependencies.nix]
features = ["sched", "process"]
version = "0.30"
[dependencies.rustls]
default-features = false
features = ["ring", "std"]
version = "0.23"
[dependencies.rustls-native-certs]
version = "0.8"
[dependencies.rustls-pemfile]
version = "2.2"
[dependencies.rustls-pki-types]
version = "1.8"
[dependencies.serde]
features = ["derive", "rc"]
version = "1.0"
[dependencies.socket2]
features = ["all"]
version = "0.6"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
features = ["net", "rt-multi-thread", "io-util", "time", "macros", "signal"]
version = "1.0"
[dependencies.tokio-rustls]
default-features = false
features = ["early-data", "ring"]
version = "0.26"
[dependencies.toml]
version = "0.9"
[dependencies.tracing]
default-features = false
features = ["std"]
version = "0.1"
[dependencies.tracing-subscriber]
default-features = false
features = ["env-filter", "fmt", "std"]
version = "0.3"
[dependencies.uuid]
features = ["v4"]
version = "1.0"
[dependencies.webpki-roots]
version = "1.0.3"
[dev-dependencies.divan]
version = "0.1"
[dev-dependencies.serde_json]
version = "1.0"
[dev-dependencies.serial_test]
version = "3.2"
[dev-dependencies.tempfile]
version = "3.23"
[lib]
name = "nntp_proxy"
path = "src/lib.rs"
[package]
authors = ["Mika Cohen <mjc@kernel.org>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["network-programming", "web-programming"]
description = "High-performance NNTP proxy server with connection pooling and authentication"
documentation = "https://docs.rs/nntp-proxy"
edition = "2024"
homepage = "https://github.com/mjc/nntp-proxy"
keywords = ["nntp", "proxy", "server", "networking", "usenet"]
license = "MIT"
name = "nntp-proxy"
readme = "README.md"
repository = "https://github.com/mjc/nntp-proxy"
version = "0.2.2"
[profile.release]
codegen-units = 1
debug = 0
lto = true
opt-level = "z"
overflow-checks = true
strip = true
[[test]]
name = "config_helpers"
path = "tests/config_helpers.rs"
[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"
[[test]]
name = "test_auth_bypass_prevention"
path = "tests/test_auth_bypass_prevention.rs"
[[test]]
name = "test_auth_integration"
path = "tests/test_auth_integration.rs"
[[test]]
name = "test_auth_security"
path = "tests/test_auth_security.rs"
[[test]]
name = "test_authentication"
path = "tests/test_authentication.rs"
[[test]]
name = "test_duplicate_greeting"
path = "tests/test_duplicate_greeting.rs"
[[test]]
name = "test_helpers"
path = "tests/test_helpers.rs"
[[test]]
name = "test_review_claims"
path = "tests/test_review_claims.rs"