[package]
edition = "2024"
rust-version = "1.88.0"
name = "http-handle"
version = "0.0.5"
authors = ["HTTP Handle Contributors"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
A fast and lightweight Rust library for handling HTTP requests and responses.
"""
homepage = "https://http-handle.com/"
documentation = "https://http-handle.com/documentation/index.html"
readme = "README.md"
keywords = [
"http",
"http-server",
"tokio",
"keep-alive",
"static-files",
]
categories = [
"web-programming::http-server",
"network-programming",
"asynchronous",
"caching",
]
license = "AGPL-3.0-only"
repository = "https://github.com/sebastienrousseau/http-handle"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
targets = [
"x86_64-apple-darwin",
"x86_64-unknown-linux-gnu",
]
[package.metadata.clippy]
warn-lints = [
"clippy::all",
"clippy::pedantic",
"clippy::cargo",
"clippy::nursery",
]
[features]
async = ["dep:tokio"]
auth = []
autotune = ["high-perf"]
batch = []
config = [
"dep:notify",
"dep:arc-swap",
"dep:toml",
]
default = []
distributed-rate-limit = []
enterprise = [
"tls",
"auth",
"config",
"observability",
]
high-perf = [
"dep:tokio",
"dep:libc",
]
high-perf-multi-thread = [
"high-perf",
"tokio/rt-multi-thread",
]
http2 = [
"dep:tokio",
"dep:h2",
"dep:http",
"dep:bytes",
]
http3-profile = []
multi-tenant = []
observability = [
"dep:tracing",
"dep:tracing-subscriber",
]
optimized = []
streaming = []
tls = []
[lib]
name = "http_handle"
path = "src/lib.rs"
[[bin]]
name = "http-handle"
path = "src/bin/http-handle.rs"
[[example]]
name = "hello"
path = "examples/hello.rs"
[[example]]
name = "builder"
path = "examples/builder.rs"
[[example]]
name = "request"
path = "examples/request.rs"
[[example]]
name = "response"
path = "examples/response.rs"
[[example]]
name = "errors"
path = "examples/errors.rs"
[[example]]
name = "policies"
path = "examples/policies.rs"
[[example]]
name = "pool"
path = "examples/pool.rs"
[[example]]
name = "shutdown"
path = "examples/shutdown.rs"
[[example]]
name = "keepalive"
path = "examples/keepalive.rs"
[[example]]
name = "language"
path = "examples/language.rs"
[[example]]
name = "async"
path = "examples/async.rs"
required-features = ["async"]
[[example]]
name = "batch"
path = "examples/batch.rs"
required-features = ["batch"]
[[example]]
name = "streaming"
path = "examples/streaming.rs"
required-features = ["streaming"]
[[example]]
name = "optimized"
path = "examples/optimized.rs"
required-features = ["optimized"]
[[example]]
name = "observability"
path = "examples/observability.rs"
required-features = ["observability"]
[[example]]
name = "http2"
path = "examples/http2.rs"
required-features = ["http2"]
[[example]]
name = "http3"
path = "examples/http3.rs"
required-features = ["http3-profile"]
[[example]]
name = "perf"
path = "examples/perf.rs"
required-features = ["high-perf"]
[[example]]
name = "multi"
path = "examples/multi.rs"
required-features = ["high-perf-multi-thread"]
[[example]]
name = "autotune"
path = "examples/autotune.rs"
required-features = ["autotune"]
[[example]]
name = "ratelimit"
path = "examples/ratelimit.rs"
required-features = ["distributed-rate-limit"]
[[example]]
name = "tenant"
path = "examples/tenant.rs"
required-features = ["multi-tenant"]
[[example]]
name = "tls"
path = "examples/tls.rs"
required-features = ["enterprise"]
[[example]]
name = "auth"
path = "examples/auth.rs"
required-features = ["enterprise"]
[[example]]
name = "config"
path = "examples/config.rs"
required-features = ["enterprise"]
[[example]]
name = "enterprise"
path = "examples/enterprise.rs"
required-features = ["enterprise"]
[[example]]
name = "full"
path = "examples/full.rs"
[[example]]
name = "all"
path = "examples/all.rs"
[[example]]
name = "bench"
path = "examples/bench.rs"
[[example]]
name = "dhat"
path = "examples/dhat.rs"
required-features = ["high-perf"]
[[test]]
name = "additional_integration_tests"
path = "tests/additional_integration_tests.rs"
[[test]]
name = "examples_docs_consistency"
path = "tests/examples_docs_consistency.rs"
[[test]]
name = "http3_profile_conformance"
path = "tests/http3_profile_conformance.rs"
[[test]]
name = "http_methods_test"
path = "tests/http_methods_test.rs"
[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"
[[test]]
name = "portability_conformance"
path = "tests/portability_conformance.rs"
[[test]]
name = "property_tests"
path = "tests/property_tests.rs"
[[test]]
name = "server_builder_test"
path = "tests/server_builder_test.rs"
[[bench]]
name = "http2_benchmark"
path = "benches/http2_benchmark.rs"
harness = false
required-features = ["http2"]
[[bench]]
name = "micro_benchmark"
path = "benches/micro_benchmark.rs"
harness = false
[[bench]]
name = "perf_server_benchmark"
path = "benches/perf_server_benchmark.rs"
harness = false
required-features = ["high-perf"]
[[bench]]
name = "server_benchmark"
path = "benches/server_benchmark.rs"
harness = false
[dependencies.arc-swap]
version = "1.7"
optional = true
[dependencies.bytes]
version = "1.10"
optional = true
[dependencies.crossbeam-channel]
version = "0.5"
[dependencies.ctrlc]
version = "3.4"
[dependencies.env_logger]
version = "0.11"
optional = true
[dependencies.euxis-commons]
version = "0.0.2"
features = [
"error",
"logging",
"time",
]
default-features = false
[dependencies.h2]
version = "0.4"
optional = true
[dependencies.http]
version = "1.3"
optional = true
[dependencies.libc]
version = "0.2"
optional = true
[dependencies.log]
version = "0.4"
[dependencies.memchr]
version = "2.8"
[dependencies.notify]
version = "8.2"
optional = true
[dependencies.regex]
version = "1.11"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.44"
features = [
"rt",
"sync",
"time",
"macros",
"net",
"fs",
"io-util",
]
optional = true
default-features = false
[dependencies.toml]
version = "1.0"
optional = true
[dependencies.tracing]
version = "0.1"
optional = true
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"fmt",
"env-filter",
]
optional = true
[dev-dependencies.assert_fs]
version = "1.1"
[dev-dependencies.criterion]
version = "0.8"
[dev-dependencies.dhat]
version = "0.3"
[dev-dependencies.predicates]
version = "3.1"
[dev-dependencies.proptest]
version = "1.6"
[dev-dependencies.tempfile]
version = "3.13"
[build-dependencies.version_check]
version = "0.9"
[lints.rust]
bare_trait_objects = "allow"
dead_code = "deny"
deprecated_in_future = "deny"
elided_lifetimes_in_paths = "allow"
ellipsis_inclusive_range_patterns = "deny"
explicit_outlives_requirements = "deny"
macro_use_extern_crate = "deny"
meta_variable_misuse = "deny"
missing_copy_implementations = "warn"
missing_debug_implementations = "forbid"
missing_docs = "deny"
non_ascii_idents = "forbid"
non_camel_case_types = "allow"
non_upper_case_globals = "allow"
noop_method_call = "deny"
single_use_lifetimes = "deny"
trivial_bounds = "allow"
trivial_casts = "deny"
trivial_numeric_casts = "deny"
unreachable_pub = "forbid"
unsafe_code = "allow"
unstable_features = "warn"
unused_extern_crates = "warn"
unused_features = "deny"
unused_import_braces = "deny"
unused_labels = "deny"
unused_lifetimes = "deny"
unused_macro_rules = "deny"
unused_qualifications = "deny"
unused_results = "warn"
variant_size_differences = "deny"
[lints.rust.future_incompatible]
level = "deny"
priority = -1
[lints.rust.keyword_idents]
level = "deny"
priority = -1
[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1
[lints.rust.rust_2021_compatibility]
level = "deny"
priority = -1
[lints.rust.rust_2024_compatibility]
level = "deny"
priority = -1
[lints.rust.unused]
level = "deny"
priority = -1
[profile.bench]
debug = 2
[profile.dev]
opt-level = 0
lto = false
codegen-units = 256
debug = 2
debug-assertions = true
rpath = false
panic = "unwind"
overflow-checks = true
incremental = true
strip = false
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
debug = 0
debug-assertions = false
rpath = false
panic = "abort"
overflow-checks = false
incremental = false
strip = "symbols"
[profile.test]
opt-level = 0
lto = false
codegen-units = 256
debug = 2
debug-assertions = true
rpath = false
overflow-checks = true
incremental = true
strip = false