Skip to content

Commit

Permalink
Fix minimal versions build by using typenum 1.14 or higher (#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Feb 16, 2022
1 parent b4162de commit 1f55b70
Show file tree
Hide file tree
Showing 13 changed files with 68 additions and 58 deletions.
29 changes: 15 additions & 14 deletions Cargo.lock

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

8 changes: 6 additions & 2 deletions cipher/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## UNRELEASED
## 0.4.1 (2022-02-16)
### Added
- Allocating padded encrypt/decrypt ([#936])

### Fixed
- Minimal versions build ([#940])

[#940]: https://github.com/RustCrypto/traits/pull/940
[#936]: https://github.com/RustCrypto/traits/pull/936

## 0.3.0 (2022-02-10)
## 0.4.0 (2022-02-10)
### Changed
- Major rework of traits. Core functionality of block and stream ciphers
is defined using rank-2 closures with convinience methods built on top of
Expand Down
3 changes: 2 additions & 1 deletion cipher/Cargo.lock

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

4 changes: 2 additions & 2 deletions cipher/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "cipher"
description = "Traits for describing block ciphers and stream ciphers"
version = "0.4.0" # Also update html_root_url in lib.rs when bumping this
version = "0.4.1" # Also update html_root_url in lib.rs when bumping this
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
readme = "README.md"
Expand All @@ -17,7 +17,7 @@ categories = ["cryptography", "no-std"]
members = ["."]

[dependencies]
crypto-common = { version = "0.1.2", path = "../crypto-common" }
crypto-common = { version = "0.1.3", path = "../crypto-common" }
inout = "0.1"

# optional dependencies
Expand Down
2 changes: 1 addition & 1 deletion cipher/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#![doc(
html_logo_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg",
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg",
html_root_url = "https://docs.rs/cipher/0.4.0"
html_root_url = "https://docs.rs/cipher/0.4.1"
)]
#![warn(missing_docs, rust_2018_idioms)]

Expand Down
6 changes: 6 additions & 0 deletions crypto-common/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.1.3 (2022-02-16)
### Fixed
- Minimal versions build ([#940])

[#940]: https://github.com/RustCrypto/traits/pull/940

## 0.1.2 (2022-02-10)
### Added
- Re-export `generic-array` and `typenum`. Enable `more_lengths` feature on
Expand Down
4 changes: 3 additions & 1 deletion crypto-common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "crypto-common"
description = "Common cryptographic traits"
version = "0.1.2" # Also update html_root_url in lib.rs when bumping this
version = "0.1.3" # Also update html_root_url in lib.rs when bumping this
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
readme = "README.md"
Expand All @@ -14,6 +14,8 @@ categories = ["cryptography", "no-std"]
[dependencies]
generic-array = { version = "0.14.4", features = ["more_lengths"] }
rand_core = { version = "0.6", optional = true }
# earlier versions of typenum don't satisfy the 'static bound on U* types
typenum = "1.14"

[features]
std = []
Expand Down
2 changes: 1 addition & 1 deletion crypto-common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#![doc(
html_logo_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg",
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg",
html_root_url = "https://docs.rs/crypto-common/0.1.1"
html_root_url = "https://docs.rs/crypto-common/0.1.3"
)]
#![forbid(unsafe_code)]
#![warn(missing_docs, rust_2018_idioms)]
Expand Down
8 changes: 7 additions & 1 deletion digest/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.10.3 (2022-02-16)
### Fixed
- Minimal versions build ([#940])

[#940]: https://github.com/RustCrypto/traits/pull/940

## 0.10.2 (2022-02-10)
### Changed
- Relaxed bounds on the `Mac` trait ([#849])
- Relax bounds on the `Mac` trait ([#849])

[#849]: https://github.com/RustCrypto/traits/pull/849

Expand Down
4 changes: 2 additions & 2 deletions digest/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "digest"
description = "Traits for cryptographic hash functions"
version = "0.10.2" # Also update html_root_url in lib.rs when bumping this
version = "0.10.3" # Also update html_root_url in lib.rs when bumping this
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
readme = "README.md"
Expand All @@ -12,7 +12,7 @@ keywords = ["digest", "crypto", "hash"]
categories = ["cryptography", "no-std"]

[dependencies]
crypto-common = { version = "0.1.2", path = "../crypto-common" }
crypto-common = { version = "0.1.3", path = "../crypto-common" }

block-buffer = { version = "0.10", optional = true }
subtle = { version = "=2.4", default-features = false, optional = true }
Expand Down
2 changes: 1 addition & 1 deletion digest/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#![doc(
html_logo_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg",
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg",
html_root_url = "https://docs.rs/digest/0.10.2"
html_root_url = "https://docs.rs/digest/0.10.3"
)]
#![warn(missing_docs, rust_2018_idioms)]

Expand Down
8 changes: 4 additions & 4 deletions elliptic-curve/Cargo.lock

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

46 changes: 18 additions & 28 deletions kem/Cargo.lock

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

0 comments on commit 1f55b70

Please sign in to comment.