form-net 0.3.0

Sans-IO form parsing for Rust: application/x-www-form-urlencoded and streaming multipart/form-data, with budgets checked before allocation, safe upload spilling, and typed extraction. No third-party dependencies.
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.85"
name = "form-net"
version = "0.3.0"
authors = ["James Gober <me@jamesgober.com>"]
build = false
exclude = ["/fuzz/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Sans-IO form parsing for Rust: application/x-www-form-urlencoded and streaming multipart/form-data, with budgets checked before allocation, safe upload spilling, and typed extraction. No third-party dependencies."
homepage = "https://github.com/jamesgober/form-net"
documentation = "https://docs.rs/form-net"
readme = "README.md"
keywords = [
    "form",
    "multipart",
    "urlencoded",
    "upload",
    "http",
]
categories = [
    "web-programming",
    "parser-implementations",
    "no-std",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/jamesgober/form-net"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
alloc = []
default = ["std"]
std = ["alloc"]

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

[[example]]
name = "multipart_buffered"
path = "examples/multipart_buffered.rs"
required-features = ["alloc"]

[[example]]
name = "multipart_sans_io"
path = "examples/multipart_sans_io.rs"
required-features = ["alloc"]

[[example]]
name = "no_std_core"
path = "examples/no_std_core.rs"

[[example]]
name = "query_string"
path = "examples/query_string.rs"
required-features = ["alloc"]

[[example]]
name = "urlencoded_basic"
path = "examples/urlencoded_basic.rs"
required-features = ["alloc"]

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

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

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

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

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

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

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

[dependencies.parse-net]
version = "0.6.1"
default-features = false

[dev-dependencies.proptest]
version = "1"
features = ["std"]
default-features = false

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"