Skip to content

Commit

Permalink
elliptic-curve: bump MSRV to 1.56
Browse files Browse the repository at this point in the history
The RustCrypto/formats repo was bumped to Rust 2021 edition, and some of
those crates (e.g. `der`, `sec1`) are hard dependencies for the
`elliptic-curve` crate:

RustCrypto/formats#136

This is a corresponding Rust 2021 edition bump for the `elliptic-curve`
crate, as well as the omnibus `crypto` crate whose MSRV is determined by
the highest MSRV crate in this repo.
  • Loading branch information
tarcieri committed Oct 21, 2021
1 parent aacc4a9 commit e562c83
Show file tree
Hide file tree
Showing 13 changed files with 604 additions and 256 deletions.
36 changes: 34 additions & 2 deletions .github/workflows/crypto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
matrix:
rust:
- 1.55.0 # MSRV
- 1.56.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
Expand All @@ -43,7 +43,7 @@ jobs:
strategy:
matrix:
rust:
- 1.55.0 # MSRV
- 1.56.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
Expand All @@ -55,3 +55,35 @@ jobs:
- run: cargo test --no-default-features --release
- run: cargo test --release
- run: cargo test --all-features --release

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.56.0
components: clippy
override: true
profile: minimal
- run: cargo clippy --all --all-features -- -D warnings

rustfmt:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v1

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
override: true
profile: minimal

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
36 changes: 34 additions & 2 deletions .github/workflows/elliptic-curve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
matrix:
rust:
- 1.55.0 # MSRV
- 1.56.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
strategy:
matrix:
rust:
- 1.55.0 # MSRV
- 1.56.0 # MSRV
- stable
- nightly
steps:
Expand All @@ -67,3 +67,35 @@ jobs:
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.56.0
components: clippy
override: true
profile: minimal
- run: cargo clippy --all --all-features -- -D warnings

rustfmt:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v1

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
override: true
profile: minimal

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
2 changes: 1 addition & 1 deletion .github/workflows/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.55.0
toolchain: 1.56.0
components: clippy
override: true
profile: minimal
Expand Down

0 comments on commit e562c83

Please sign in to comment.