multra 1.0.0

An async parser for `multipart/form-data` content-type in Rust.
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.89"
name = "multra"
version = "1.0.0"
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"]
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"

[[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 = "integration"
path = "tests/integration.rs"

[dependencies.bytes]
version = "1.11"

[dependencies.encoding_rs]
version = "0.8.35"

[dependencies.futures-util]
version = "0.3.32"
default-features = false

[dependencies.http]
version = "1.4"

[dependencies.httparse]
version = "1.10"

[dependencies.log]
version = "0.4.29"
optional = true

[dependencies.memchr]
version = "2.8"

[dependencies.mime]
version = "0.3.17"

[dependencies.serde]
version = "1.0"
optional = true

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.spin]
version = "0.10"
features = ["spin_mutex"]
default-features = false

[dependencies.tokio]
version = "1.50"
features = []
optional = true

[dependencies.tokio-util]
version = "0.7.18"
features = ["io"]
optional = true

[dev-dependencies.http-body-util]
version = "0.1.3"

[dev-dependencies.hyper]
version = "1.9"
features = [
    "server",
    "http1",
]

[dev-dependencies.hyper-util]
version = "0.1.20"
features = ["full"]

[dev-dependencies.serde]
version = "1.0"
features = ["derive"]

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