Skip to content

Commit 067538c

Browse files
committed
Bump MSRV to 1.80
1 parent deb5bce commit 067538c

File tree

4 files changed

+35
-37
lines changed

4 files changed

+35
-37
lines changed

.github/workflows/test.yml

Lines changed: 30 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ on:
22
# Test on PRs for any branch
33
pull_request:
44
branches:
5-
- '*'
5+
- "*"
66
push:
77
branches:
88
- master
99

10-
1110
# NOTE: Should we use fail-fast: false?
1211

1312
name: Tests
@@ -22,26 +21,26 @@ jobs:
2221
- stable
2322
- beta
2423
- nightly
25-
- 1.74.0 # MSRV
26-
os:
24+
- 1.80.0 # MSRV
25+
os:
2726
- ubuntu-latest
2827
- macos-latest
2928
- windows-latest
30-
29+
3130
runs-on: ${{ matrix.os }}
3231
steps:
3332
- name: Checkout sources
3433
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
3534
with:
3635
persist-credentials: false
37-
36+
3837
- name: Install toolchain
3938
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af
4039
with:
4140
profile: minimal
4241
toolchain: ${{ matrix.rust }}
4342
override: true
44-
43+
4544
- name: Test debug-mode, default features
4645
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
4746
with:
@@ -52,13 +51,13 @@ jobs:
5251
with:
5352
command: test
5453
args: --features serde
55-
54+
5655
- name: Test debug-mode, no default features
5756
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
5857
with:
5958
command: test
6059
args: --no-default-features
61-
60+
6261
- name: Test debug-mode, alloc feature
6362
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
6463
with:
@@ -70,7 +69,7 @@ jobs:
7069
with:
7170
command: test
7271
args: --features experimental
73-
72+
7473
- name: Test release-mode, default features
7574
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
7675
with:
@@ -82,13 +81,13 @@ jobs:
8281
with:
8382
command: test
8483
args: --release --features serde
85-
84+
8685
- name: Test release-mode, no default features
8786
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
8887
with:
8988
command: test
9089
args: --release --no-default-features
91-
90+
9291
- name: Test release-mode, alloc feature
9392
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
9493
with:
@@ -102,7 +101,7 @@ jobs:
102101
args: --release --features experimental
103102

104103
sanitizers:
105-
name: Tests w. sanitizers
104+
name: Tests w. sanitizers
106105
runs-on: ubuntu-latest
107106
steps:
108107
- name: Checkout sources
@@ -116,12 +115,12 @@ jobs:
116115
toolchain: nightly
117116
target: x86_64-unknown-linux-gnu
118117
override: true
119-
118+
120119
# Release (LeakSanitizer is enabled by default with AddressSanitizer for x86_64 Linux builds)
121120
# https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer
122121
- run: RUSTFLAGS="-Z sanitizer=address" ASAN_OPTIONS="detect_odr_violation=0" cargo test --all-features --tests --release --target x86_64-unknown-linux-gnu
123122
- run: RUSTFLAGS="-Z sanitizer=address" ASAN_OPTIONS="detect_odr_violation=0" cargo test --no-default-features --tests --release --target x86_64-unknown-linux-gnu
124-
123+
125124
no_std:
126125
name: no_std build
127126
runs-on: ubuntu-latest
@@ -131,20 +130,20 @@ jobs:
131130
- stable
132131
- nightly
133132
steps:
134-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
135-
with:
136-
persist-credentials: false
137-
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af
138-
with:
139-
profile: minimal
140-
toolchain: ${{ matrix.rust }}
141-
target: thumbv7em-none-eabi
142-
override: true
143-
- uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
144-
with:
145-
use-cross: true
146-
command: build
147-
args: --release --no-default-features --target thumbv7em-none-eabi
133+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
134+
with:
135+
persist-credentials: false
136+
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af
137+
with:
138+
profile: minimal
139+
toolchain: ${{ matrix.rust }}
140+
target: thumbv7em-none-eabi
141+
override: true
142+
- uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
143+
with:
144+
use-cross: true
145+
command: build
146+
args: --release --no-default-features --target thumbv7em-none-eabi
148147

149148
cross_compilation:
150149
name: Linux/ARM - Release tests
@@ -169,7 +168,6 @@ jobs:
169168
use-cross: true
170169
command: test
171170
args: --release --target ${{ matrix.arch }}
172-
173171

174172
# https://rustwasm.github.io/docs/book/reference/add-wasm-support-to-crate.html#maintaining-ongoing-support-for-webassembly
175173
web_assembly:
@@ -192,7 +190,7 @@ jobs:
192190
with:
193191
command: check
194192
args: --no-default-features --target ${{ matrix.arch }}
195-
193+
196194
docs:
197195
name: Build documentation
198196
runs-on: ubuntu-latest
@@ -208,7 +206,7 @@ jobs:
208206
with:
209207
command: doc
210208
args: --no-deps --all-features
211-
209+
212210
benches:
213211
name: Build and check benchmarks
214212
runs-on: ubuntu-latest

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
**Changelog:**
66

77
- Bump copyright year to 2024.
8-
- Bump MSRV to `1.74.0`.
8+
- Bump MSRV to `1.80.0`.
99
- Update CI dependencies.
1010
- SHA2: Switch from `checked_shl(3)` to `checked_mul(8)` during `increment_mlen()` (internal) ([#376](https://github.com/orion-rs/orion/issues/376)).
1111

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description = "Usable, easy and safe pure-Rust crypto"
66
keywords = [ "cryptography", "crypto", "aead", "hash", "mac" ]
77
categories = [ "cryptography", "no-std" ]
88
edition = "2021"
9-
rust-version = "1.74" # Update CI (MSRV) test along with this.
9+
rust-version = "1.80" # Update CI (MSRV) test along with this.
1010
readme = "README.md"
1111
repository = "https://github.com/orion-rs/orion"
1212
documentation = "https://docs.rs/orion"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# orion
2-
[![Tests](https://github.com/orion-rs/orion/workflows/Tests/badge.svg)](https://github.com/orion-rs/orion/actions) [![Daily tests](https://github.com/orion-rs/orion/workflows/Daily%20tests/badge.svg)](https://github.com/orion-rs/orion/actions) [![dudect](https://github.com/orion-rs/orion-dudect/workflows/dudect/badge.svg)](https://github.com/orion-rs/orion-dudect/actions) [![Audit](https://github.com/orion-rs/orion/actions/workflows/audit_check.yml/badge.svg)](https://github.com/orion-rs/orion/actions/workflows/audit_check.yml) [![codecov](https://codecov.io/gh/orion-rs/orion/branch/master/graph/badge.svg)](https://codecov.io/gh/orion-rs/orion) [![Documentation](https://docs.rs/orion/badge.svg)](https://docs.rs/orion/) [![Crates.io](https://img.shields.io/crates/v/orion.svg)](https://crates.io/crates/orion) [![Safety Dance](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-code/safety-dance/) [![MSRV](https://img.shields.io/badge/MSRV-1.74-informational.svg)](https://img.shields.io/badge/MSRV-1.74-informational) [![Matrix](https://img.shields.io/matrix/orion-rs:matrix.org.svg?logo=matrix)](https://matrix.to/#/#orion-rs:matrix.org)
2+
[![Tests](https://github.com/orion-rs/orion/workflows/Tests/badge.svg)](https://github.com/orion-rs/orion/actions) [![Daily tests](https://github.com/orion-rs/orion/workflows/Daily%20tests/badge.svg)](https://github.com/orion-rs/orion/actions) [![dudect](https://github.com/orion-rs/orion-dudect/workflows/dudect/badge.svg)](https://github.com/orion-rs/orion-dudect/actions) [![Audit](https://github.com/orion-rs/orion/actions/workflows/audit_check.yml/badge.svg)](https://github.com/orion-rs/orion/actions/workflows/audit_check.yml) [![codecov](https://codecov.io/gh/orion-rs/orion/branch/master/graph/badge.svg)](https://codecov.io/gh/orion-rs/orion) [![Documentation](https://docs.rs/orion/badge.svg)](https://docs.rs/orion/) [![Crates.io](https://img.shields.io/crates/v/orion.svg)](https://crates.io/crates/orion) [![Safety Dance](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-code/safety-dance/) [![MSRV](https://img.shields.io/badge/MSRV-1.80-informational.svg)](https://img.shields.io/badge/MSRV-1.80-informational) [![Matrix](https://img.shields.io/matrix/orion-rs:matrix.org.svg?logo=matrix)](https://matrix.to/#/#orion-rs:matrix.org)
33

44
### About
55
Orion is a cryptography library written in pure Rust. It aims to provide easy and usable crypto while trying to minimize the use of unsafe code. You can read more about Orion in the [wiki](https://github.com/orion-rs/orion/wiki).
@@ -19,12 +19,12 @@ Experimental support (with `experimental` feature enabled):
1919
### Security
2020
This library has **not undergone any third-party security audit**. Usage is at **own risk**.
2121

22-
Orion uses formally verified arithmetic, generated by Fiat Crypto, for the X25519 and Poly1305 implementations.
22+
Orion uses formally verified arithmetic, generated by Fiat Crypto, for the X25519 and Poly1305 implementations.
2323

2424
See the [SECURITY.md](https://github.com/orion-rs/orion/blob/master/SECURITY.md) regarding recommendations on correct use, reporting security issues and more. Additional information about security regarding Orion is available in the [wiki](https://github.com/orion-rs/orion/wiki/Security).
2525

2626
### Minimum Supported Rust Version
27-
Rust 1.74 or later is supported however, the majority of testing happens with latest stable Rust.
27+
Rust 1.80 or later is supported however, the majority of testing happens with latest stable Rust.
2828

2929
MSRV may be changed at any point and will not be considered a SemVer breaking change.
3030

0 commit comments

Comments
 (0)