Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions actix-multipart-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,5 @@ proc-macro2 = "1"
quote = "1"
syn = "2"

[dev-dependencies]
actix-multipart = "0.8"
actix-web = "4"
rustversion-msrv = "0.100"
trybuild = "1"

[lints]
workspace = true
12 changes: 6 additions & 6 deletions actix-multipart-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ struct ParsedField<'t> {
///
/// Each field type should implement the `FieldReader` trait:
///
/// ```
/// ```ignore
/// use actix_multipart::form::{tempfile::TempFile, text::Text, MultipartForm};
///
/// #[derive(MultipartForm)]
Expand All @@ -71,7 +71,7 @@ struct ParsedField<'t> {
/// A [`Vec`] field corresponds to an upload with multiple parts under the [same field
/// name](https://www.rfc-editor.org/rfc/rfc7578#section-4.3).
///
/// ```
/// ```ignore
/// use actix_multipart::form::{tempfile::TempFile, text::Text, MultipartForm};
///
/// #[derive(MultipartForm)]
Expand All @@ -85,7 +85,7 @@ struct ParsedField<'t> {
///
/// You can use the `#[multipart(rename = "foo")]` attribute to receive a field by a different name.
///
/// ```
/// ```ignore
/// use actix_multipart::form::{tempfile::TempFile, MultipartForm};
///
/// #[derive(MultipartForm)]
Expand All @@ -102,7 +102,7 @@ struct ParsedField<'t> {
///
/// Note: the form is also subject to the global limits configured using `MultipartFormConfig`.
///
/// ```
/// ```ignore
/// use actix_multipart::form::{tempfile::TempFile, text::Text, MultipartForm};
///
/// #[derive(MultipartForm)]
Expand All @@ -120,7 +120,7 @@ struct ParsedField<'t> {
/// By default fields with an unknown name are ignored. They can be rejected using the
/// `#[multipart(deny_unknown_fields)]` attribute:
///
/// ```
/// ```ignore
/// # use actix_multipart::form::MultipartForm;
/// #[derive(MultipartForm)]
/// #[multipart(deny_unknown_fields)]
Expand All @@ -138,7 +138,7 @@ struct ParsedField<'t> {
///
/// Note that `Vec` fields will ignore this option.
///
/// ```
/// ```ignore
/// # use actix_multipart::form::MultipartForm;
/// #[derive(MultipartForm)]
/// #[multipart(duplicate_field = "deny")]
Expand Down
7 changes: 7 additions & 0 deletions actix-multipart/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@ homepage.workspace = true
repository.workspace = true
license.workspace = true
edition.workspace = true
rust-version.workspace = true

[package.metadata.docs.rs]
all-features = true

[[test]]
name = "trybuild"
required-features = ["derive", "tempfile"]

[package.metadata.cargo_check_external_types]
allowed_external_types = [
"actix_http::*",
Expand Down Expand Up @@ -68,8 +73,10 @@ env_logger = "0.11"
futures-test = "0.3"
futures-util = { version = "0.3.17", default-features = false, features = ["alloc"] }
multer = "3"
rustversion-msrv = "0.100"
tokio = { version = "1.38.2", features = ["sync"] }
tokio-stream = "0.1"
trybuild = "1"

[lints]
workspace = true
Loading