Skip to content

Commit

Permalink
hkdf: bump MSRV to 1.81
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Oct 14, 2024
1 parent 594c616 commit aac8bc6
Show file tree
Hide file tree
Showing 5 changed files with 5 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.

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 aac8bc6

Please sign in to comment.