[dependencies.bytes]
version = "1.10"
[dependencies.http]
version = "1.2.0"
[dependencies.http-body]
version = "1.0"
[dependencies.http-body-util]
version = "0.1"
[dependencies.include-utils]
version = "0.2"
[dependencies.serde]
features = ["derive"]
version = "1"
[dependencies.serde_json]
optional = true
version = "1"
[dependencies.serde_urlencoded]
optional = true
version = "0.7.1"
[dependencies.thiserror]
version = "2.0"
[dev-dependencies.anyhow]
version = "1.0"
[dev-dependencies.reqwest]
version = "0.12.12"
[dev-dependencies.tokio]
features = ["rt-multi-thread", "macros"]
version = "1.43"
[dev-dependencies.tower-reqwest]
version = "0.4.1"
[dev-dependencies.tower-service]
version = "0.3.3"
[[example]]
name = "map_body"
path = "examples/map_body.rs"
[[example]]
name = "read_bytes"
path = "examples/read_bytes.rs"
[[example]]
name = "read_form"
path = "examples/read_form.rs"
required-features = ["form"]
[[example]]
name = "read_json"
path = "examples/read_json.rs"
required-features = ["json"]
[[example]]
name = "read_utf8"
path = "examples/read_utf8.rs"
[features]
default = ["json", "form"]
form = ["dep:serde_urlencoded"]
json = ["dep:serde_json"]
[lib]
name = "http_body_reader"
path = "src/lib.rs"
[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "warn"
module_name_repetitions = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
unsafe_code = "forbid"
[lints.rustdoc]
broken_intra_doc_links = "deny"
[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
description = "A convenient way to read the http body."
edition = "2021"
license = "MIT OR Apache-2.0"
name = "http-body-reader"
readme = "README.md"
repository = "https://github.com/alekseysidorov/http-body-reader"
rust-version = "1.81"
version = "0.1.1"