1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-27 09:42:57 +01:00

docs(multipart): use cargo-rdme

This commit is contained in:
Rob Ede 2024-06-10 23:35:26 +01:00
parent cc5030c542
commit 132b84d3b1
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
3 changed files with 9 additions and 15 deletions

View File

@ -1,7 +1,5 @@
# `actix-multipart`
> Multipart form support for Actix Web.
<!-- prettier-ignore-start -->
[![crates.io](https://img.shields.io/crates/v/actix-multipart?label=latest)](https://crates.io/crates/actix-multipart)
@ -15,18 +13,13 @@
<!-- prettier-ignore-end -->
## Example
<!-- cargo-rdme start -->
Dependencies:
Multipart form support for Actix Web.
```toml
[dependencies]
actix-multipart = "0.6"
actix-web = "4.5"
serde = { version = "1.0", features = ["derive"] }
```
## Examples
Code:
[More available in the examples repo &rarr;](https://github.com/actix/examples/tree/master/forms/multipart)
```rust
use actix_web::{post, App, HttpServer, Responder};
@ -63,6 +56,8 @@ async fn main() -> std::io::Result<()> {
}
```
<!-- cargo-rdme end -->
Curl request :
```bash
@ -71,7 +66,3 @@ curl -v --request POST \
-F 'json={"name": "Cargo.lock"};type=application/json' \
-F file=@./Cargo.lock
```
### Examples
https://github.com/actix/examples/tree/master/forms/multipart

View File

@ -1,5 +1,7 @@
//! Multipart form support for Actix Web.
//!
//! # Examples
//!
//! ```no_run
//! use actix_web::{post, App, HttpServer, Responder};
//!

View File

@ -90,6 +90,7 @@ update-readmes: && fmt
cd ./actix-files && cargo rdme --force
cd ./actix-http-test && cargo rdme --force
cd ./actix-router && cargo rdme --force
cd ./actix-multipart && cargo rdme --force
cd ./actix-test && cargo rdme --force
# Check for unintentional external type exposure on all crates in workspace.