Skip to content

Commit

Permalink
fix: Change feature name from poem-3 to poem
Browse files Browse the repository at this point in the history
  • Loading branch information
glennib committed Jan 22, 2025
1 parent 926b014 commit 69090ff
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## [Unreleased]

- Support `axum` v0.8 through `axum-core` v0.5
- Add support for `poem` version 3 behind the `poem-3` feature.
- Add support for `poem` version 3.

## [0.26.0] - 2024-01-15

Expand Down
4 changes: 2 additions & 2 deletions docs/content/web-frameworks.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,12 @@ fn helloworld() -> Markup {

# Poem

Poem support is available with the "poem-3" feature:
Poem support is available with the "poem" feature:

```toml
# ...
[dependencies]
maud = { version = "*", features = ["poem-3"] }
maud = { version = "*", features = ["poem"] }
# ...
```

Expand Down
2 changes: 1 addition & 1 deletion doctest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
[dependencies]
actix-web = { version = "4.0.0-rc.2", default-features = false, features = ["macros"] }
ammonia = "3"
maud = { path = "../maud", features = ["actix-web", "rocket", "tide", "axum", "warp", "submillisecond", "poem-3"] }
maud = { path = "../maud", features = ["actix-web", "rocket", "tide", "axum", "warp", "submillisecond", "poem"] }
pulldown-cmark = "0.8"
rocket = "0.5"
rouille = "3"
Expand Down
1 change: 0 additions & 1 deletion maud/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ default = []
# Web framework integrations
actix-web = ["actix-web-dep", "futures-util"]
axum = ["axum-core", "http"]
poem-3 = ["poem"]

[dependencies]
maud_macros = { version = "0.26.0", path = "../maud_macros" }
Expand Down
4 changes: 2 additions & 2 deletions maud/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,8 @@ mod tide_support {
}
}

#[cfg(feature = "poem-3")]
mod poem_3_support {
#[cfg(feature = "poem")]
mod poem_support {
use crate::PreEscaped;
use alloc::string::String;
use poem::{web::Html, IntoResponse, Response};
Expand Down

0 comments on commit 69090ff

Please sign in to comment.