# 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 = "avx-http"
version = "0.4.0"
authors = [
    "Nícolas Ávila <nicolas@avila.inc>",
    "Avila Development Team <dev@avila.inc>",
]
build = false
exclude = [
    "target/",
    "*.swp",
    ".git*",
    "benches/results/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure Rust HTTP/1.1 + HTTP/2 implementation with ZERO dependencies - no tokio, no serde, no hyper, 100% proprietary"
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",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/avilaops/arxis"

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "async_bench"
path = "benches/async_bench.rs"

[[bench]]
name = "client_bench"
path = "benches/client_bench.rs"

[[bench]]
name = "server_bench"
path = "benches/server_bench.rs"

[[bench]]
name = "tokio_comparison"
path = "benches/tokio_comparison.rs"

[dependencies.rustls]
version = "0.23"
features = ["std"]
optional = true
default-features = false

[dependencies.rustls-native-certs]
version = "0.7"
optional = true

[dependencies.rustls-pemfile]
version = "2.0"
optional = true

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

[dev-dependencies.tokio]
version = "1.35"
features = ["full"]

[profile.bench]
inherits = "release"

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

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