Skip to content

Commit 021867f

Browse files
committed
poem 3.1.8
poem-openapi 5.1.9
1 parent db2a2ce commit 021867f

File tree

38 files changed

+117
-95
lines changed

38 files changed

+117
-95
lines changed

.github/workflows/code-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Install Stable Toolchain
2222
uses: dtolnay/rust-toolchain@stable
2323
with:
24-
toolchain: 1.83.0
24+
toolchain: 1.85.0
2525
components: rustfmt
2626
- name: Cache Rust
2727
uses: Swatinem/rust-cache@v2

Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ members = [
1414

1515
[workspace.package]
1616
authors = ["sunli <[email protected]>"]
17-
edition = "2021"
17+
edition = "2024"
1818
license = "MIT OR Apache-2.0"
1919
documentation = "https://docs.rs/poem/"
2020
homepage = "https://github.com/poem-web/poem"
2121
repository = "https://github.com/poem-web/poem"
22-
rust-version = "1.83"
22+
rust-version = "1.85"
2323

2424
[workspace.dependencies]
25-
poem = { path = "poem", version = "3.1.7", default-features = false }
26-
poem-derive = { path = "poem-derive", version = "3.1.4" }
27-
poem-openapi-derive = { path = "poem-openapi-derive", version = "5.1.8" }
28-
poem-grpc-build = { path = "poem-grpc-build", version = "0.5.2" }
29-
poem-mcpserver-macros = { path = "poem-mcpserver-macros", version = "0.1.6" }
25+
poem = { path = "poem", version = "3.1.8", default-features = false }
26+
poem-derive = { path = "poem-derive", version = "3.1.8" }
27+
poem-openapi-derive = { path = "poem-openapi-derive", version = "5.1.9" }
28+
poem-grpc-build = { path = "poem-grpc-build", version = "0.5.4" }
29+
poem-mcpserver-macros = { path = "poem-mcpserver-macros", version = "0.1.7" }
3030

3131
proc-macro-crate = "3.0.0"
3232
proc-macro2 = "1.0.29"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
alt="Unsafe Rust forbidden" />
1111
</a>
1212
<a>
13-
<img src="https://img.shields.io/badge/rustc-1.83.0+-ab6000.svg"
14-
alt="rustc 1.83.0+" />
13+
<img src="https://img.shields.io/badge/rustc-1.85.0+-ab6000.svg"
14+
alt="rustc 1.85.0+" />
1515
</a>
1616
<a href="https://discord.gg/qWWNxwasb7">
1717
<img src="https://img.shields.io/discord/932986985604333638.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2" />

poem-derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "poem-derive"
3-
version = "3.1.4"
3+
version = "3.1.8"
44
authors.workspace = true
55
edition.workspace = true
66
license.workspace = true

poem-grpc-build/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "poem-grpc-build"
3-
version = "0.5.2"
3+
version = "0.5.4"
44
authors.workspace = true
55
edition.workspace = true
66
license.workspace = true

poem-grpc/CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
# [0.5.3] 2024-01-04
7+
# [0.5.4] 2025-03-24
8+
9+
- Update MSRV to `1.85.0`
10+
11+
# [0.5.3] 2025-01-04
812

913
- feat: Implement enable_type_name config method [#924](https://github.com/poem-web/poem/pull/924)
1014

poem-grpc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "poem-grpc"
3-
version = "0.5.3"
3+
version = "0.5.4"
44
authors.workspace = true
55
edition.workspace = true
66
license.workspace = true

poem-grpc/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
alt="Unsafe Rust forbidden" />
2222
</a>
2323
<a>
24-
<img src="https://img.shields.io/badge/rustc-1.83.0+-ab6000.svg"
25-
alt="rustc 1.83.0+" />
24+
<img src="https://img.shields.io/badge/rustc-1.85.0+-ab6000.svg"
25+
alt="rustc 1.85.0+" />
2626
</a>
2727
</div>
2828

@@ -63,7 +63,7 @@ This crate uses `#![forbid(unsafe_code)]` to ensure everything is implemented in
6363

6464
## MSRV
6565

66-
The minimum supported Rust version for this crate is `1.83.0`.
66+
The minimum supported Rust version for this crate is `1.85.0`.
6767

6868
## Contributing
6969

poem-grpc/src/compression.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ fn unimplemented(accept_compressed: &[CompressionEncoding]) -> Status {
165165
.with_message("unsupported encoding")
166166
}
167167

168+
#[allow(clippy::result_large_err)]
168169
pub(crate) fn get_incoming_encodings(
169170
headers: &HeaderMap,
170171
accept_compressed: &[CompressionEncoding],

poem-grpc/src/encoding.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ use std::io::Result as IoResult;
33
use bytes::{Buf, BufMut, Bytes, BytesMut};
44
use futures_util::StreamExt;
55
use http_body_util::{BodyExt, StreamBody};
6-
use hyper::{body::Frame, HeaderMap};
6+
use hyper::{HeaderMap, body::Frame};
77
use poem::Body;
88
use sync_wrapper::SyncStream;
99

1010
use crate::{
11+
Code, CompressionEncoding, Status, Streaming,
1112
client::BoxBody,
1213
codec::{Decoder, Encoder},
13-
Code, CompressionEncoding, Status, Streaming,
1414
};
1515

1616
async fn encode_data_frame<T: Encoder>(
@@ -55,6 +55,7 @@ impl DataFrameDecoder {
5555
}
5656

5757
#[inline]
58+
#[allow(clippy::result_large_err)]
5859
fn check_incomplete(&self) -> Result<(), Status> {
5960
if !self.buf.is_empty() {
6061
return Err(Status::new(Code::Internal).with_message("incomplete request"));
@@ -173,6 +174,7 @@ pub(crate) fn create_encode_request_body<T: Encoder>(
173174
BodyExt::boxed(StreamBody::new(SyncStream::new(stream))).into()
174175
}
175176

177+
#[allow(clippy::result_large_err)]
176178
pub(crate) fn create_decode_response_body<T: Decoder>(
177179
mut decoder: T,
178180
headers: &HeaderMap,

0 commit comments

Comments
 (0)