From cf2004dcc20455a9fca7caa4f7449ccdceed6870 Mon Sep 17 00:00:00 2001 From: Maybe Waffle <waffle.lapkin@gmail.com> Date: Mon, 18 Apr 2022 22:13:36 +0400 Subject: [PATCH 1/2] Correct MSRV --- README.md | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5cf1660b..1b65c62e 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ ```toml teloxide-core = "0.5" ``` -_Compiler support: requires rustc 1.49+_. +_Compiler support: requires rustc 1.58+_. [`teloxide`]: https://docs.rs/teloxide [Telegram Bot API]: https://core.telegram.org/bots/api diff --git a/src/lib.rs b/src/lib.rs index 44015b0e..b4d27cff 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,7 +7,7 @@ //!```toml //! teloxide_core = "0.5" //! ``` -//! _Compiler support: requires rustc 1.49+_ +//! _Compiler support: requires rustc 1.58+_. //! //! ``` //! # #[cfg(feature = "auto_send")] From 7c55ad535e861e408cb341af3358eb6de0c7135f Mon Sep 17 00:00:00 2001 From: Maybe Waffle <waffle.lapkin@gmail.com> Date: Mon, 18 Apr 2022 22:15:13 +0400 Subject: [PATCH 2/2] Add MSRV check to CI --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b1569708..9d75c311 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,6 +36,7 @@ jobs: - stable - beta - nightly + - msrv include: - rust: stable @@ -47,6 +48,9 @@ jobs: - rust: nightly toolchain: nightly-2022-01-17 features: "--all-features" + - rust: msrv + features: "--features full" + toolchain: "1.58.0" steps: - uses: actions/checkout@v1