Skip to content

Commit

Permalink
Bump format/signature dependencies to prereleases; MSRV 1.72 (#405)
Browse files Browse the repository at this point in the history
This makes it possible to use `rsa` with prerelease versions of
`x509-cert`.

Bumps the following dependencies:

- `const-oid` v0.10.0-pre.2
- `digest` v0.11.0-pre.7
- `pkcs1` v0.8.0-pre.0
- `pkcs8` v0.11.0-pre.0
- `signature` v2.3.0-pre.2
- `sha1` v0.11.0-pre.2
- `sha2` v0.11.0-pre.2
- `sha3` v0.11.0-pre.2
- `spki` v0.8.0-pre.0
  • Loading branch information
tarcieri committed Jan 19, 2024
1 parent dfb719f commit 4f99b25
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 53 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
rust:
- 1.65.0 # MSRV
- 1.72.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
Expand All @@ -35,7 +35,7 @@ jobs:
strategy:
matrix:
rust:
- 1.65.0 # MSRV
- 1.72.0 # MSRV
- stable
steps:
- uses: actions/checkout@v4
Expand Down
124 changes: 87 additions & 37 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,25 @@ repository = "https://github.com/RustCrypto/RSA"
keywords = ["rsa", "encryption", "security", "crypto"]
categories = ["cryptography"]
readme = "README.md"
rust-version = "1.65"
rust-version = "1.72"

[dependencies]
num-bigint = { version = "0.8.2", features = ["i128", "prime", "zeroize"], default-features = false, package = "num-bigint-dig" }
num-traits = { version= "0.2.9", default-features = false, features = ["libm"] }
num-integer = { version = "0.1.39", default-features = false }
rand_core = { version = "0.6.4", default-features = false }
const-oid = { version = "0.9", default-features = false }
const-oid = { version = "=0.10.0-pre.2", default-features = false }
subtle = { version = "2.1.1", default-features = false }
digest = { version = "0.10.5", default-features = false, features = ["alloc", "oid"] }
pkcs1 = { version = "0.7.5", default-features = false, features = ["alloc", "pkcs8"] }
pkcs8 = { version = "0.10.2", default-features = false, features = ["alloc"] }
signature = { version = ">2.0, <2.3", default-features = false , features = ["alloc", "digest", "rand_core"] }
spki = { version = "0.7.3", default-features = false, features = ["alloc"] }
digest = { version = "=0.11.0-pre.7", default-features = false, features = ["alloc", "oid"] }
pkcs1 = { version = "=0.8.0-pre.0", default-features = false, features = ["alloc", "pkcs8"] }
pkcs8 = { version = "=0.11.0-pre.0", default-features = false, features = ["alloc"] }
signature = { version = "=2.3.0-pre.2", default-features = false , features = ["alloc", "digest", "rand_core"] }
spki = { version = "=0.8.0-pre.0", default-features = false, features = ["alloc"] }
zeroize = { version = "1.5", features = ["alloc"] }

# optional dependencies
sha1 = { version = "0.10.5", optional = true, default-features = false, features = ["oid"] }
sha2 = { version = "0.10.6", optional = true, default-features = false, features = ["oid"] }
sha1 = { version = "=0.11.0-pre.2", optional = true, default-features = false, features = ["oid"] }
sha2 = { version = "=0.11.0-pre.2", optional = true, default-features = false, features = ["oid"] }
serde = { version = "1.0.184", optional = true, default-features = false, features = ["derive"] }

[dev-dependencies]
Expand All @@ -40,9 +40,9 @@ rand_xorshift = "0.3"
rand_chacha = "0.3"
rand = "0.8"
rand_core = { version = "0.6", default-features = false }
sha1 = { version = "0.10.5", default-features = false, features = ["oid"] }
sha2 = { version = "0.10.6", default-features = false, features = ["oid"] }
sha3 = { version = "0.10.7", default-features = false, features = ["oid"] }
sha1 = { version = "=0.11.0-pre.2", default-features = false, features = ["oid"] }
sha2 = { version = "=0.11.0-pre.2", default-features = false, features = ["oid"] }
sha3 = { version = "=0.11.0-pre.2", default-features = false, features = ["oid"] }

[[bench]]
name = "key"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ You can follow our work on mitigating this issue in [#390].
## Minimum Supported Rust Version (MSRV)
All crates in this repository support Rust 1.65 or higher.
This crate supports Rust 1.72 or higher.
In the future MSRV can be changed, but it will be done with a minor version bump.
Expand All @@ -108,7 +108,7 @@ dual licensed as above, without any additional terms or conditions.
[doc-link]: https://docs.rs/rsa
[build-image]: https://github.com/rustcrypto/RSA/workflows/CI/badge.svg
[build-link]: https://github.com/RustCrypto/RSA/actions?query=workflow%3ACI+branch%3Amaster
[msrv-image]: https://img.shields.io/badge/rustc-1.65+-blue.svg
[msrv-image]: https://img.shields.io/badge/rustc-1.72+-blue.svg
[chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg
[chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/260047-RSA
[deps-image]: https://deps.rs/repo/github/RustCrypto/RSA/status.svg
Expand Down

0 comments on commit 4f99b25

Please sign in to comment.