Skip to content

Commit

Permalink
chore: Release 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marekvospel committed Nov 23, 2023
1 parent 1c2117a commit ebcfce0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

## Unreleased
## 0.2.0 (2023-11-23)

* ⚠️ BREAKING: add field to `AnyMedia` to use when decoding
* ⚠️ BREAKING: remove `AnyMediaIntoResponse`
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

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

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ extractor.

```toml
[dependencies]
# Enable optional features such as urlencoded
axum-media = { version = "0.1.1", features = ["urlencoded"]}
# Enable features such as urlencoded
axum-media = { version = "0.2.0", features = ["urlencoded"]}
```

## Example
Expand Down Expand Up @@ -42,7 +42,7 @@ struct LoginData {
}

// Automatically chooses the right deserializer based on the Content-Type header
async fn login(AnyMedia(data): AnyMedia<LoginData>) -> String {
async fn login(AnyMedia(data, _): AnyMedia<LoginData>) -> String {
data.email
}

Expand Down
2 changes: 1 addition & 1 deletion axum-media/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "axum-media"
version = "0.1.1"
version = "0.2.0"
license = "MIT OR Apache-2.0"
repository = "https://github.com/marekvospel/axum-media"
keywords = ["axum", "http", "serde", "web"]
Expand Down

0 comments on commit ebcfce0

Please sign in to comment.