Skip to content

Commit

Permalink
Upgrade to Rust 2021 edition; MSRV 1.56
Browse files Browse the repository at this point in the history
- Changes the `edition` of all crates in the repo to 2021
- Adds `rust-version` of 1.56 to all crates
- Removes explicit `TryFrom`/`TryInto` imports
  • Loading branch information
tarcieri committed Mar 21, 2022
1 parent 992e4ca commit 75a176d
Show file tree
Hide file tree
Showing 22 changed files with 116 additions and 120 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/crypto_box.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
matrix:
rust:
- 1.51.0 # MSRV
- 1.56.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
Expand All @@ -43,7 +43,7 @@ jobs:
strategy:
matrix:
rust:
- 1.51.0 # MSRV
- 1.56.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/crypto_kx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
matrix:
rust:
- 1.51.0 # MSRV
- 1.56.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
Expand All @@ -42,7 +42,7 @@ jobs:
strategy:
matrix:
rust:
- 1.51.0 # MSRV
- 1.56.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/crypto_secretstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
matrix:
rust:
- 1.51.0 # MSRV
- 1.56.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
Expand All @@ -42,7 +42,7 @@ jobs:
strategy:
matrix:
rust:
- 1.51.0 # MSRV
- 1.56.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
Expand Down
23 changes: 12 additions & 11 deletions .github/workflows/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,29 @@ env:
RUSTFLAGS: "-Dwarnings"

jobs:
rustfmt:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
toolchain: 1.56.0
components: clippy
override: true
profile: minimal
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
- run: cargo clippy --all -- -D warnings

rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.51.0
components: clippy
toolchain: stable
components: rustfmt
override: true
profile: minimal
- run: cargo clippy --all -- -D warnings
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
Loading

0 comments on commit 75a176d

Please sign in to comment.