Skip to content

Commit

Permalink
chore(actix-multipart): prepare release 0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Jul 6, 2024
1 parent 01d60f3 commit ffee672
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
4 changes: 4 additions & 0 deletions actix-multipart/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

## 0.7.1

- Expose `LimitExceeded` error type.

## 0.7.0

- Add `MultipartError::ContentTypeIncompatible` variant.
Expand Down
2 changes: 1 addition & 1 deletion actix-multipart/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "actix-multipart"
version = "0.7.0"
version = "0.7.1"
authors = [
"Nikolay Kim <fafhrd91@gmail.com>",
"Jacob Halsey <jacob@jhalsey.com>",
Expand Down
4 changes: 2 additions & 2 deletions actix-multipart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<!-- prettier-ignore-start -->

[![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)
![MIT or Apache 2.0 licensed](https://img.shields.io/crates/l/actix-multipart.svg)
<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)
[![Chat on Discord](https://img.shields.io/discord/771444961383153695?label=chat&logo=discord)](https://discord.gg/NWpN5mmg3x)

Expand Down
4 changes: 3 additions & 1 deletion actix-multipart/src/field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ use crate::{
safety::Safety,
};

/// Error type returned from [`Field::bytes()`] when field data is larger than limit.
#[derive(Debug, Display, Error)]
#[display(fmt = "limit exceeded")]
#[display(fmt = "size limit exceeded while collecting field data")]
#[non_exhaustive]
pub struct LimitExceeded;

/// A single field in a multipart stream.
Expand Down
6 changes: 5 additions & 1 deletion actix-multipart/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,8 @@ pub(crate) mod payload;
pub(crate) mod safety;
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,
};

0 comments on commit ffee672

Please sign in to comment.