mirror of
https://github.com/fafhrd91/actix-web
synced 2025-07-14 05:57:02 +02:00
Compare commits
3 Commits
multipart-
...
multipart-
Author | SHA1 | Date | |
---|---|---|---|
b01fbddba4 | |||
215a294584 | |||
ffee672909 |
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
## 0.7.0
|
||||||
|
|
||||||
- Minimum supported Rust version (MSRV) is now 1.72.
|
- Minimum supported Rust version (MSRV) is now 1.72.
|
||||||
|
|
||||||
## 0.6.1
|
## 0.6.1
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "actix-multipart-derive"
|
name = "actix-multipart-derive"
|
||||||
version = "0.6.1"
|
version = "0.7.0"
|
||||||
authors = ["Jacob Halsey <jacob@jhalsey.com>"]
|
authors = ["Jacob Halsey <jacob@jhalsey.com>"]
|
||||||
description = "Multipart form derive macro for Actix Web"
|
description = "Multipart form derive macro for Actix Web"
|
||||||
keywords = ["http", "web", "framework", "async", "futures"]
|
keywords = ["http", "web", "framework", "async", "futures"]
|
||||||
|
@ -5,11 +5,11 @@
|
|||||||
<!-- prettier-ignore-start -->
|
<!-- prettier-ignore-start -->
|
||||||
|
|
||||||
[](https://crates.io/crates/actix-multipart-derive)
|
[](https://crates.io/crates/actix-multipart-derive)
|
||||||
[](https://docs.rs/actix-multipart-derive/0.6.1)
|
[](https://docs.rs/actix-multipart-derive/0.7.0)
|
||||||

|

|
||||||

|

|
||||||
<br />
|
<br />
|
||||||
[](https://deps.rs/crate/actix-multipart-derive/0.6.1)
|
[](https://deps.rs/crate/actix-multipart-derive/0.7.0)
|
||||||
[](https://crates.io/crates/actix-multipart-derive)
|
[](https://crates.io/crates/actix-multipart-derive)
|
||||||
[](https://discord.gg/NWpN5mmg3x)
|
[](https://discord.gg/NWpN5mmg3x)
|
||||||
|
|
||||||
|
@ -2,6 +2,14 @@
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
## 0.7.2
|
||||||
|
|
||||||
|
- Fix re-exported version of `actix-multipart-derive`.
|
||||||
|
|
||||||
|
## 0.7.1
|
||||||
|
|
||||||
|
- Expose `LimitExceeded` error type.
|
||||||
|
|
||||||
## 0.7.0
|
## 0.7.0
|
||||||
|
|
||||||
- Add `MultipartError::ContentTypeIncompatible` variant.
|
- Add `MultipartError::ContentTypeIncompatible` variant.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "actix-multipart"
|
name = "actix-multipart"
|
||||||
version = "0.7.0"
|
version = "0.7.2"
|
||||||
authors = [
|
authors = [
|
||||||
"Nikolay Kim <fafhrd91@gmail.com>",
|
"Nikolay Kim <fafhrd91@gmail.com>",
|
||||||
"Jacob Halsey <jacob@jhalsey.com>",
|
"Jacob Halsey <jacob@jhalsey.com>",
|
||||||
@ -37,7 +37,7 @@ derive = ["actix-multipart-derive"]
|
|||||||
tempfile = ["dep:tempfile", "tokio/fs"]
|
tempfile = ["dep:tempfile", "tokio/fs"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-multipart-derive = { version = "=0.6.1", optional = true }
|
actix-multipart-derive = { version = "=0.7.0", optional = true }
|
||||||
actix-utils = "3"
|
actix-utils = "3"
|
||||||
actix-web = { version = "4", default-features = false }
|
actix-web = { version = "4", default-features = false }
|
||||||
|
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
<!-- prettier-ignore-start -->
|
<!-- prettier-ignore-start -->
|
||||||
|
|
||||||
[](https://crates.io/crates/actix-multipart)
|
[](https://crates.io/crates/actix-multipart)
|
||||||
[](https://docs.rs/actix-multipart/0.7.0)
|
[](https://docs.rs/actix-multipart/0.7.2)
|
||||||

|

|
||||||

|

|
||||||
<br />
|
<br />
|
||||||
[](https://deps.rs/crate/actix-multipart/0.7.0)
|
[](https://deps.rs/crate/actix-multipart/0.7.2)
|
||||||
[](https://crates.io/crates/actix-multipart)
|
[](https://crates.io/crates/actix-multipart)
|
||||||
[](https://discord.gg/NWpN5mmg3x)
|
[](https://discord.gg/NWpN5mmg3x)
|
||||||
|
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
use std::{
|
use std::{
|
||||||
cell::RefCell,
|
cell::RefCell,
|
||||||
cmp, fmt, mem,
|
cmp, fmt,
|
||||||
|
future::poll_fn,
|
||||||
|
mem,
|
||||||
pin::Pin,
|
pin::Pin,
|
||||||
rc::Rc,
|
rc::Rc,
|
||||||
task::{ready, Context, Poll},
|
task::{ready, Context, Poll},
|
||||||
};
|
};
|
||||||
|
|
||||||
use actix_utils::future::poll_fn;
|
|
||||||
use actix_web::{
|
use actix_web::{
|
||||||
error::PayloadError,
|
error::PayloadError,
|
||||||
http::header::{self, ContentDisposition, HeaderMap},
|
http::header::{self, ContentDisposition, HeaderMap},
|
||||||
@ -22,8 +23,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.
|
||||||
|
@ -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,
|
||||||
|
};
|
||||||
|
Reference in New Issue
Block a user