[package]
edition = "2024"
rust-version = "1.95"
name = "multra"
version = "1.3.1"
authors = [
"Rousan Ali <hello@rousan.io>",
"Chris Young <chris@sonc.ai>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An async parser for `multipart/form-data` content-type in Rust."
homepage = "https://github.com/salvo-rs/multra"
readme = "README.md"
keywords = [
"multipart",
"multipart-formdata",
"multipart-uploads",
"async",
"formdata",
]
categories = [
"asynchronous",
"web-programming",
]
license = "MIT"
repository = "https://github.com/salvo-rs/multra"
[package.metadata.docs.rs]
all-features = true
[package.metadata.playground]
features = ["all"]
[features]
all = [
"json",
"tokio-io",
"log",
]
default = []
json = [
"serde",
"serde_json",
]
log = ["dep:log"]
tokio-io = [
"tokio",
"tokio-util",
]
[lib]
name = "multra"
path = "src/lib.rs"
[[example]]
name = "hyper_server_example"
path = "examples/hyper_server_example.rs"
test = true
[[example]]
name = "parse_async_read"
path = "examples/parse_async_read.rs"
required-features = ["tokio-io"]
[[example]]
name = "prevent_dos_attack"
path = "examples/prevent_dos_attack.rs"
[[example]]
name = "simple_example"
path = "examples/simple_example.rs"
[[test]]
name = "aggregation"
path = "tests/aggregation.rs"
[[test]]
name = "aggregation_budget"
path = "tests/aggregation_budget.rs"
[[test]]
name = "allocation"
path = "tests/allocation.rs"
[[test]]
name = "backpressure"
path = "tests/backpressure.rs"
[[test]]
name = "boundary_padding"
path = "tests/boundary_padding.rs"
[[test]]
name = "content_type"
path = "tests/content_type.rs"
[[test]]
name = "epilogue_limit"
path = "tests/epilogue_limit.rs"
[[test]]
name = "extended_filename"
path = "tests/extended_filename.rs"
[[test]]
name = "field_count"
path = "tests/field_count.rs"
[[test]]
name = "first_boundary"
path = "tests/first_boundary.rs"
[[test]]
name = "header_scanning"
path = "tests/header_scanning.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "poll_budget"
path = "tests/poll_budget.rs"
[[test]]
name = "quoted_parameters"
path = "tests/quoted_parameters.rs"
[[test]]
name = "ready_wakes"
path = "tests/ready_wakes.rs"
[[test]]
name = "repeated_headers"
path = "tests/repeated_headers.rs"
[[test]]
name = "streaming"
path = "tests/streaming.rs"
[[bench]]
name = "multipart"
path = "benches/multipart.rs"
harness = false
[dependencies.bytes]
version = "1.12.1"
[dependencies.encoding_rs]
version = "0.8.35"
[dependencies.futures-util]
version = "0.3.32"
default-features = false
[dependencies.http]
version = "1.4.2"
[dependencies.httparse]
version = "1.10.1"
[dependencies.log]
version = "0.4.33"
optional = true
[dependencies.memchr]
version = "2.8.3"
[dependencies.mime]
version = "0.3.17"
[dependencies.serde]
version = "1.0.228"
optional = true
[dependencies.serde_json]
version = "1.0.150"
optional = true
[dependencies.tokio]
version = "1.53.3"
features = []
optional = true
[dependencies.tokio-util]
version = "0.7.18"
features = ["io"]
optional = true
[dev-dependencies.http-body-util]
version = "0.1.4"
[dev-dependencies.hyper]
version = "1.10.1"
features = [
"server",
"http1",
]
[dev-dependencies.hyper-util]
version = "0.1.20"
features = ["tokio"]
[dev-dependencies.serde]
version = "1.0.228"
features = ["derive"]
[dev-dependencies.tokio]
version = "1.53.3"
features = ["full"]