Skip to content

Commit 0942651

Browse files
authored
Merge pull request #235 from H1rono/bump-msrv
Bump MSRV
2 parents b76b2e1 + 27c276e commit 0942651

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

Cargo.toml

+7-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ version = "0.10.2"
77
authors = ["H1rono <[email protected]>"]
88
edition = "2021"
99
description = "Library to parse POST requests of traQ BOT event"
10-
rust-version = "1.67.1"
10+
rust-version = "1.76.0"
1111
homepage = "https://github.com/H1rono/traq-bot-http-rs"
1212
keywords = ["http", "web", "framework"]
1313
categories = ["web-programming::http-server"]
@@ -92,3 +92,9 @@ time = ["dep:time"]
9292
chrono = ["dep:chrono"]
9393
http = ["dep:bytes", "dep:http", "dep:http-body", "dep:http-body-util", "dep:pin-project-lite", "dep:futures"]
9494
tower = ["http", "dep:tower", "dep:tower-http"]
95+
96+
[lints.clippy]
97+
pedantic.level = "deny"
98+
pedantic.priority = 0
99+
cargo.level = "deny"
100+
cargo.priority = 1

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ feature | 機能 | バージョン
7878

7979
`time`よりも`chrono`の方が優先されます
8080

81+
## Supported Rust Version
82+
83+
現行の MSRV(Minimum Supported Rust Version) は **1.76.0** です。
84+
85+
将来的にMSRVは変更される可能性がありますが、minorバージョンの更新で導入されます。
86+
8187
## Contributing
8288

8389
Issue, Pull Requestは大歓迎です。

rust-toolchain.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[toolchain]
2-
channel = "1.67.1"
2+
channel = "1.76.0"
33
components = ["rustc", "cargo", "rustfmt", "clippy", "rust-src", "rust-analyzer", "llvm-tools"]
44
profile = "minimal"
55
targets = []

src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![deny(clippy::pedantic, clippy::cargo)]
2-
31
//! [![GitHub](https://img.shields.io/github/license/H1rono/traq-bot-http-rs?style=for-the-badge&logo=github)](https://github.com/H1rono/traq-bot-http-rs/blob/main/LICENSE)
42
//! [![Crates.io](https://img.shields.io/crates/l/traq-bot-http?style=for-the-badge&logo=docsdotrs)](https://crates.io/crates/traq-bot-http)
53
//! [![GitHub release](https://img.shields.io/github/v/release/H1rono/traq-bot-http-rs?style=for-the-badge&logo=github)](https://github.com/H1rono/traq-bot-http-rs/releases/latest)

src/parser.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ impl RequestParser {
111111
let mut kind = None;
112112
for (k, v) in headers {
113113
let Ok(k) = from_utf8(k.as_ref()) else {
114-
continue
114+
continue;
115115
};
116116
let v = from_utf8(v.as_ref());
117117
match k.to_lowercase().as_str() {

0 commit comments

Comments
 (0)