1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-25 11:01:14 +00:00

chore(actix-multipart): prepare release 0.7.1

This commit is contained in:
Rob Ede 2024-07-07 00:19:22 +01:00
parent 01d60f3315
commit ffee672909
No known key found for this signature in database
GPG key ID: 97C636207D3EF933
5 changed files with 15 additions and 5 deletions

View file

@ -2,6 +2,10 @@
## Unreleased ## Unreleased
## 0.7.1
- Expose `LimitExceeded` error type.
## 0.7.0 ## 0.7.0
- Add `MultipartError::ContentTypeIncompatible` variant. - Add `MultipartError::ContentTypeIncompatible` variant.

View file

@ -1,6 +1,6 @@
[package] [package]
name = "actix-multipart" name = "actix-multipart"
version = "0.7.0" version = "0.7.1"
authors = [ authors = [
"Nikolay Kim <fafhrd91@gmail.com>", "Nikolay Kim <fafhrd91@gmail.com>",
"Jacob Halsey <jacob@jhalsey.com>", "Jacob Halsey <jacob@jhalsey.com>",

View file

@ -3,11 +3,11 @@
<!-- prettier-ignore-start --> <!-- prettier-ignore-start -->
[![crates.io](https://img.shields.io/crates/v/actix-multipart?label=latest)](https://crates.io/crates/actix-multipart) [![crates.io](https://img.shields.io/crates/v/actix-multipart?label=latest)](https://crates.io/crates/actix-multipart)
[![Documentation](https://docs.rs/actix-multipart/badge.svg?version=0.7.0)](https://docs.rs/actix-multipart/0.7.0) [![Documentation](https://docs.rs/actix-multipart/badge.svg?version=0.7.1)](https://docs.rs/actix-multipart/0.7.1)
![Version](https://img.shields.io/badge/rustc-1.72+-ab6000.svg) ![Version](https://img.shields.io/badge/rustc-1.72+-ab6000.svg)
![MIT or Apache 2.0 licensed](https://img.shields.io/crates/l/actix-multipart.svg) ![MIT or Apache 2.0 licensed](https://img.shields.io/crates/l/actix-multipart.svg)
<br /> <br />
[![dependency status](https://deps.rs/crate/actix-multipart/0.7.0/status.svg)](https://deps.rs/crate/actix-multipart/0.7.0) [![dependency status](https://deps.rs/crate/actix-multipart/0.7.1/status.svg)](https://deps.rs/crate/actix-multipart/0.7.1)
[![Download](https://img.shields.io/crates/d/actix-multipart.svg)](https://crates.io/crates/actix-multipart) [![Download](https://img.shields.io/crates/d/actix-multipart.svg)](https://crates.io/crates/actix-multipart)
[![Chat on Discord](https://img.shields.io/discord/771444961383153695?label=chat&logo=discord)](https://discord.gg/NWpN5mmg3x) [![Chat on Discord](https://img.shields.io/discord/771444961383153695?label=chat&logo=discord)](https://discord.gg/NWpN5mmg3x)

View file

@ -22,8 +22,10 @@ use crate::{
safety::Safety, safety::Safety,
}; };
/// Error type returned from [`Field::bytes()`] when field data is larger than limit.
#[derive(Debug, Display, Error)] #[derive(Debug, Display, Error)]
#[display(fmt = "limit exceeded")] #[display(fmt = "size limit exceeded while collecting field data")]
#[non_exhaustive]
pub struct LimitExceeded; pub struct LimitExceeded;
/// A single field in a multipart stream. /// A single field in a multipart stream.

View file

@ -63,4 +63,8 @@ pub(crate) mod payload;
pub(crate) mod safety; pub(crate) mod safety;
pub mod test; pub mod test;
pub use self::{error::Error as MultipartError, field::Field, multipart::Multipart}; pub use self::{
error::Error as MultipartError,
field::{Field, LimitExceeded},
multipart::Multipart,
};