Skip to content

Commit

Permalink
hkdf: bump MSRV to 1.81 (#105)
Browse files Browse the repository at this point in the history
Also remove the `std` crate feature as no longer needed.
  • Loading branch information
newpavlov authored Oct 14, 2024
1 parent 594c616 commit 6f0b04d
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 43 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/hkdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
matrix:
rust:
- 1.72.0 # MSRV
- 1.81.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
Expand All @@ -48,7 +48,7 @@ jobs:
strategy:
matrix:
rust:
- 1.72.0 # MSRV
- 1.81.0 # MSRV
- stable
steps:
- uses: actions/checkout@v4
Expand Down
28 changes: 0 additions & 28 deletions Cargo.lock

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

8 changes: 8 additions & 0 deletions hkdf/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ 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
### Breaking changes
- Removed `std` crate feature ([#105])
- Bump MSRV to 1.81 ([#105])
- Bump `hmac` dependency to v0.13

[#105]: https://github.com/RustCrypto/KDFs/pull/105

## 0.12.3 (2022-02-17)
### Fixed
- Minimal versions build ([#63])
Expand Down
5 changes: 1 addition & 4 deletions hkdf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ keywords = ["crypto", "HKDF", "KDF"]
categories = ["cryptography", "no-std"]
readme = "README.md"
edition = "2021"
rust-version = "1.72"
rust-version = "1.81"

[dependencies]
hmac = "=0.13.0-pre.4"
Expand All @@ -21,9 +21,6 @@ hex-literal = "0.4"
sha1 = { version = "=0.11.0-pre.4", default-features = false }
sha2 = { version = "=0.11.0-pre.4", default-features = false }

[features]
std = ["hmac/std"]

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
8 changes: 2 additions & 6 deletions hkdf/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ impl fmt::Display for InvalidPrkLength {
}
}

#[cfg(feature = "std")]
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
impl ::std::error::Error for InvalidPrkLength {}
impl core::error::Error for InvalidPrkLength {}

/// Structure for InvalidLength, used for output error handling.
#[derive(Copy, Clone, Debug)]
Expand All @@ -24,6 +22,4 @@ impl fmt::Display for InvalidLength {
}
}

#[cfg(feature = "std")]
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
impl ::std::error::Error for InvalidLength {}
impl core::error::Error for InvalidLength {}
3 changes: 0 additions & 3 deletions hkdf/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@
#![forbid(unsafe_code)]
#![warn(missing_docs, rust_2018_idioms)]

#[cfg(feature = "std")]
extern crate std;

pub use hmac;

use core::fmt;
Expand Down

0 comments on commit 6f0b04d

Please sign in to comment.