rama-http 0.3.0

rama http layers, services and other utilities
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 = "2024"
rust-version = "1.96.0"
name = "rama-http"
version = "0.3.0"
authors = ["Glen De Cauwsemaecker <glen@plabayo.tech>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "rama http layers, services and other utilities"
readme = "README.md"
keywords = [
    "io",
    "async",
    "proxy",
    "http",
    "rama",
]
categories = [
    "asynchronous",
    "network-programming",
    "web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/plabayo/rama"

[package.metadata.cargo-public-api-crates]
allowed = []

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]
targets = [
    "x86_64-unknown-linux-gnu",
    "x86_64-pc-windows-msvc",
    "x86_64-apple-darwin",
    "aarch64-apple-ios",
    "aarch64-linux-android",
]

[features]
compression = [
    "dep:async-compression",
    "dep:compression-codecs",
    "dep:compression-core",
    "dep:rawzip",
    "dep:flate2",
]
default = []
html = [
    "dep:rama-http-macros",
    "dep:memchr",
]
multipart = [
    "dep:multer",
    "dep:mime_guess",
    "dep:rama-http-hyperium",
]
opentelemetry = [
    "rama-core/opentelemetry",
    "rama-net/opentelemetry",
]
rss = ["dep:quick-xml"]
tls = ["rama-http-types/tls"]

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

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

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

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

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

[dependencies.ahash]
version = "0.8"

[dependencies.async-compression]
version = "0.4"
features = [
    "tokio",
    "brotli",
    "zlib",
    "gzip",
    "zstd",
]
optional = true

[dependencies.base64]
version = "0.22"

[dependencies.bitflags]
version = "2.13"

[dependencies.compression-codecs]
version = "0.4"
features = [
    "brotli",
    "deflate",
    "gzip",
    "zstd",
]
optional = true

[dependencies.compression-core]
version = "0.4"
optional = true

[dependencies.const_format]
version = "0.2"

[dependencies.csv]
version = "1.4"

[dependencies.flate2]
version = "1.1"
optional = true

[dependencies.http-range-header]
version = "0.4"

[dependencies.httpdate]
version = "1.0"

[dependencies.iri-string]
version = "0.7"

[dependencies.jiff]
version = "0.2.31"
features = ["serde"]

[dependencies.memchr]
version = "2.8"
optional = true

[dependencies.mime_guess]
version = "2"
optional = true
default-features = false

[dependencies.multer]
version = "3.1"
optional = true

[dependencies.parking_lot]
version = "0.12"

[dependencies.percent-encoding]
version = "2.3"

[dependencies.pin-project-lite]
version = "0.2"

[dependencies.quick-xml]
version = "0.41"
features = ["async-tokio"]
optional = true

[dependencies.rama-core]
version = "0.3.0"
features = ["std"]
default-features = false

[dependencies.rama-http-headers]
version = "0.3.0"
default-features = false

[dependencies.rama-http-hyperium]
version = "0.3.0"
optional = true
default-features = false

[dependencies.rama-http-macros]
version = "0.3.0"
optional = true
default-features = false

[dependencies.rama-http-types]
version = "0.3.0"
default-features = false

[dependencies.rama-json]
version = "0.3.0"
default-features = false

[dependencies.rama-net]
version = "0.3.0"
features = [
    "std",
    "http",
]
default-features = false

[dependencies.rama-utils]
version = "0.3.0"
features = ["std"]
default-features = false

[dependencies.rand]
version = "0.10"

[dependencies.rawzip]
version = "0.4"
optional = true

[dependencies.serde]
version = "1.0"
features = [
    "alloc",
    "derive",
]
default-features = false

[dependencies.serde_html_form]
version = "0.4"

[dependencies.serde_json]
version = "1.0"

[dependencies.tokio]
version = "1.52"
features = [
    "macros",
    "fs",
    "io-std",
]

[dependencies.uuid]
version = "1.23"
features = ["v4"]

[dev-dependencies.brotli]
version = "8"

[dev-dependencies.flate2]
version = "1.1"

[dev-dependencies.itertools]
version = "0.15"

[dev-dependencies.parking_lot]
version = "0.12"

[dev-dependencies.quickcheck]
version = "1.1"

[dev-dependencies.quickcheck_macros]
version = "1.2"

[dev-dependencies.serde_json]
version = "1.0"

[dev-dependencies.tempfile]
version = "3.27"

[dev-dependencies.time]
version = "=0.3.47"

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

[dev-dependencies.tokio-test]
version = "0.4"

[dev-dependencies.tracing-subscriber]
version = "0.3"

[dev-dependencies.tracing-test]
version = "0.2"

[dev-dependencies.zstd]
version = "0.13"

[lints.clippy]
allow_attributes = "warn"
assertions_on_result_states = "warn"
await_holding_lock = "warn"
await_holding_refcell_ref = "warn"
dbg_macro = "deny"
debug_assert_with_mut_call = "warn"
empty_enums = "warn"
enum_glob_use = "warn"
equatable_if_let = "warn"
exit = "warn"
expect_used = "deny"
expl_impl_clone_on_copy = "warn"
fallible_impl_from = "warn"
filter_map_next = "warn"
float_cmp = "warn"
float_cmp_const = "warn"
fn_params_excessive_bools = "warn"
get_unwrap = "deny"
if_let_mutex = "warn"
implicit_clone = "warn"
imprecise_flops = "warn"
inefficient_to_string = "warn"
infallible_try_from = "warn"
invalid_upcast_comparisons = "warn"
iter_not_returning_iterator = "warn"
large_futures = "warn"
let_underscore_future = "warn"
let_underscore_must_use = "warn"
linkedlist = "warn"
lossy_float_literal = "warn"
macro_use_imports = "warn"
manual_let_else = "warn"
map_err_ignore = "warn"
match_same_arms = "warn"
match_wildcard_for_single_variants = "warn"
mem_forget = "warn"
multiple_unsafe_ops_per_block = "warn"
needless_borrow = "warn"
needless_continue = "warn"
needless_pass_by_ref_mut = "warn"
needless_pass_by_value = "warn"
option_option = "warn"
panic = "deny"
print_stdout = "deny"
rc_mutex = "warn"
redundant_clone = "warn"
ref_option = "warn"
rest_pat_in_fully_bound_structs = "warn"
return_self_not_must_use = "warn"
single_match_else = "warn"
str_to_string = "warn"
suboptimal_flops = "warn"
todo = "deny"
trivially_copy_pass_by_ref = "warn"
type_complexity = "allow"
unchecked_time_subtraction = "deny"
unimplemented = "deny"
uninlined_format_args = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unnested_or_patterns = "warn"
unreachable = "deny"
unused_result_ok = "warn"
unused_self = "warn"
unwrap_used = "deny"
use_self = "warn"
verbose_file_reads = "warn"

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

[lints.rust]
unreachable_pub = "deny"
unused_imports = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(fuzzing)",
    "cfg(loom)",
]

[lints.rustdoc]
broken_intra_doc_links = "deny"