[package]
name = "avx-http"
version = "0.4.0"
edition = "2021"
authors = [
    "Nícolas Ávila <nicolas@avila.inc>",
    "Avila Development Team <dev@avila.inc>",
]
license = "MIT OR Apache-2.0"
description = "Pure Rust HTTP/1.1 + HTTP/2 implementation with ZERO dependencies - no tokio, no serde, no hyper, 100% proprietary"
repository = "https://github.com/avilaops/arxis"
homepage = "https://avila.inc"
documentation = "https://docs.rs/avx-http"
readme = "README.md"
keywords = ["http", "http2", "no-std", "zero-deps", "pure-rust"]
categories = ["web-programming", "web-programming::http-client", "web-programming::http-server", "network-programming", "no-std"]
exclude = ["target/", "*.swp", ".git*", "benches/results/"]

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

[features]
default = ["std", "client", "server"]
std = []
client = []
server = ["std"]
alloc = []
tls = ["rustls", "rustls-pemfile", "rustls-native-certs"]

[dependencies]
# ZERO dependencies for core functionality!
# TLS is optional feature - only needed for HTTPS
rustls = { version = "0.23", optional = true, default-features = false, features = ["std"] }
rustls-pemfile = { version = "2.0", optional = true }
rustls-native-certs = { version = "0.7", optional = true }

[dev-dependencies]
# Only for benchmarks - not required for library usage
criterion = "0.5"

# For benchmark comparisons with Tokio (always available in dev builds)
tokio = { version = "1.35", features = ["full"] }

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = true
panic = "abort"

[profile.dev]
opt-level = 0
debug = true
incremental = true

[profile.bench]
inherits = "release"
