Skip to content

Commit

Permalink
Use namespaced/weak features; MSRV 1.60 (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri committed Dec 11, 2022
1 parent b36cf7d commit 57db8d9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ring-compat.yml
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
matrix:
rust:
- 1.57.0 # MSRV
- 1.60.0 # MSRV
- stable
steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions Cargo.lock

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

9 changes: 5 additions & 4 deletions Cargo.toml
Expand Up @@ -13,7 +13,7 @@ repository = "https://github.com/RustCrypto/ring-compat"
categories = ["cryptography", "no-std"]
keywords = ["aead", "digest", "crypto", "ring", "signature"]
edition = "2021"
rust-version = "1.57"
rust-version = "1.60"

[dependencies]
generic-array = { version = "0.14", default-features = false }
Expand All @@ -27,16 +27,17 @@ ecdsa = { version = "0.14", optional = true, default-features = false }
ed25519 = { version = "1.4", optional = true, default-features = false }
p256 = { version = "0.11", optional = true, default-features = false, features = ["ecdsa-core"] }
p384 = { version = "0.11", optional = true, default-features = false, features = ["ecdsa-core"] }
signature = { version = "1", optional = true, default-features = false }

[dev-dependencies]
hex-literal = "0.3"
digest = { version = "0.10", features = ["dev"] }

[features]
default = ["aead", "alloc", "digest", "signature"]
alloc = ["aead/alloc"]
signature = ["ecdsa", "ed25519", "p256", "p384"]
std = ["digest/std", "ecdsa/std", "ed25519/std"]
alloc = ["aead?/alloc"]
signature = ["dep:ecdsa", "dep:ed25519", "dep:p256", "dep:p384", "dep:signature"]
std = ["digest?/std", "ecdsa?/std", "ed25519?/std"]

[package.metadata.docs.rs]
all-features = true
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -15,7 +15,7 @@ algorithm implementations from [*ring*].

## Minimum Supported Rust Version

**Rust 1.57** or higher.
**Rust 1.60** or higher.

In the future the minimum supported Rust version can be changed, but it will be
done with a minor version bump.
Expand Down Expand Up @@ -43,7 +43,7 @@ dual licensed as above, without any additional terms or conditions.
[docs-link]: https://docs.rs/ring-compat/
[docs-link]: https://docs.rs/ring-compat
[ring-image]: https://img.shields.io/badge/ring-0.16-blue.svg
[rustc-image]: https://img.shields.io/badge/rustc-1.57+-blue.svg
[rustc-image]: https://img.shields.io/badge/rustc-1.60+-blue.svg
[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg
[chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg
[chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/260488-ring-compat
Expand Down
2 changes: 1 addition & 1 deletion src/signature.rs
Expand Up @@ -3,4 +3,4 @@
pub mod ecdsa;
pub mod ed25519;

pub use ::ecdsa::signature::{Error, Signature, Signer, Verifier};
pub use ::signature::{Error, Signature, Signer, Verifier};

0 comments on commit 57db8d9

Please sign in to comment.