Skip to content

Commit 576f809

Browse files
committedFeb 21, 2024
Bump version to 5.0.0-alpha.1 and MSRV to 1.65
Also define new MSRV policy to be in line with that of the `openidconnect` crate.
1 parent 8ef74ac commit 576f809

File tree

4 files changed

+24
-10
lines changed

4 files changed

+24
-10
lines changed
 

‎.github/workflows/main.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
fail-fast: false
2727
matrix:
2828
rust_os:
29-
- { rust: 1.45.0, os: ubuntu-20.04 }
29+
- { rust: 1.65.0, os: ubuntu-20.04 }
3030
- { rust: stable, os: ubuntu-latest }
3131
- { rust: beta, os: ubuntu-latest }
3232
- { rust: nightly, os: ubuntu-latest }
@@ -47,11 +47,11 @@ jobs:
4747
components: clippy, rustfmt
4848
target: wasm32-unknown-unknown
4949

50-
# Newer dependency versions don't support rustc 1.45, so we use a Cargo.lock file for those
50+
# Newer dependency versions may not support the MSRV, so we use a Cargo.lock file for those
5151
# builds.
52-
- name: Use Rust 1.45 lockfile
53-
if: ${{ matrix.rust_os.rust == '1.45.0' }}
54-
run: cp Cargo-1.45.lock Cargo.lock
52+
- name: Use Rust 1.65 lockfile
53+
if: ${{ matrix.rust_os.rust == '1.65.0' }}
54+
run: cp Cargo-1.65.lock Cargo.lock
5555

5656
- name: Run tests
5757
run: cargo test --tests --examples
@@ -64,11 +64,11 @@ jobs:
6464
run: cargo test --tests --features curl --no-default-features
6565

6666
- name: Check fmt
67-
if: ${{ matrix.rust_os.rust == '1.45.0' }}
67+
if: ${{ matrix.rust_os.rust == '1.65.0' }}
6868
run: cargo fmt --all -- --check
6969

7070
- name: Clippy
71-
if: ${{ matrix.rust_os.rust == '1.45.0' }}
71+
if: ${{ matrix.rust_os.rust == '1.65.0' }}
7272
run: cargo clippy --all --all-features -- --deny warnings
7373

7474
- name: Audit

‎Cargo-1.45.lock ‎Cargo-1.65.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ dependencies = [
831831

832832
[[package]]
833833
name = "oauth2"
834-
version = "4.4.2"
834+
version = "5.0.0-alpha.1"
835835
dependencies = [
836836
"anyhow",
837837
"async-std",

‎Cargo.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
[package]
22
name = "oauth2"
33
authors = ["Alex Crichton <alex@alexcrichton.com>", "Florin Lipan <florinlipan@gmail.com>", "David A. Ramos <ramos@cs.stanford.edu>"]
4-
version = "4.4.2"
4+
version = "5.0.0-alpha.1"
55
license = "MIT OR Apache-2.0"
66
description = "An extensible, strongly-typed implementation of OAuth2"
77
repository = "https://github.com/ramosbugs/oauth2-rs"
8-
edition = "2018"
8+
edition = "2021"
99
readme = "README.md"
10+
rust-version = "1.65"
1011

1112
[package.metadata.docs.rs]
1213
all-features = true

‎README.md

+13
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@ An extensible, strongly-typed implementation of OAuth2
88

99
Documentation is available on [docs.rs](https://docs.rs/oauth2). Release notes are available on [GitHub](https://github.com/ramosbugs/oauth2-rs/releases).
1010

11+
## Minimum Supported Rust Version (MSRV)
12+
13+
The MSRV for *5.0* and newer releases of this crate is Rust **1.65**.
14+
15+
The MSRV for *4.x* releases of this crate is Rust 1.45.
16+
17+
Beginning with the 5.0.0 release, this crate will maintain a policy of supporting
18+
Rust releases going back at least 6 months. Changes that break compatibility with Rust releases
19+
older than 6 months will no longer be considered SemVer breaking changes and will not result in a
20+
new major version number for this crate. MSRV changes will coincide with minor version updates
21+
and will not happen in patch releases.
22+
23+
1124
## Sponsorship
1225

1326
This project is sponsored by [Unflakable](https://unflakable.com), a service for tracking and

0 commit comments

Comments
 (0)
Please sign in to comment.