#![no_std]
#![forbid(unsafe_code)]
#![cfg_attr(
not(test),
deny(
clippy::panic,
clippy::unwrap_used,
clippy::expect_used,
clippy::indexing_slicing,
clippy::arithmetic_side_effects,
clippy::unreachable,
clippy::todo,
clippy::unimplemented
)
)]
#![deny(missing_docs, rust_2018_idioms, unused_must_use)]
#![warn(clippy::all, clippy::pedantic)]
#![allow(clippy::module_name_repetitions)]
mod chars;
mod disposition;
mod encoder;
mod error;
mod parser;
#[cfg(kani)]
mod kani;
#[cfg(any(feature = "embedded-io", feature = "embedded-io-async"))]
mod io;
pub use disposition::{content_disposition, ContentDisposition, Decoded, ParamValue};
pub use encoder::{boundary_from_random, Encoder, Part};
pub use error::Error;
pub use parser::{Event, Parser, MAX_PADDING};
#[cfg(feature = "embedded-io-async")]
pub use io::asynch::MultipartReaderAsync;
#[cfg(feature = "embedded-io")]
pub use io::blocking::MultipartReader;
#[cfg(any(feature = "embedded-io", feature = "embedded-io-async"))]
pub use io::ReadError;