From 8e7739be66893675216baa60a2b70697852f6b4e Mon Sep 17 00:00:00 2001 From: Alex Rudy Date: Fri, 6 Sep 2024 16:06:42 +0000 Subject: [PATCH 1/2] fix: misspelled configuration feature items New clippy and rustc lints caught these. --- src/algorithms/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/algorithms/mod.rs b/src/algorithms/mod.rs index 19124b0..f132b42 100644 --- a/src/algorithms/mod.rs +++ b/src/algorithms/mod.rs @@ -64,7 +64,7 @@ use serde::{Deserialize, Serialize}; #[cfg(any(feature = "p256", feature = "hmac", feature = "rsa"))] pub use sha2::Sha256; -#[cfg(any(feature = "p348", feature = "hmac", feature = "rsa"))] +#[cfg(any(feature = "p384", feature = "hmac", feature = "rsa"))] pub use sha2::Sha384; #[cfg(any(feature = "hmac", feature = "rsa"))] @@ -145,7 +145,7 @@ impl AlgorithmIdentifier { Self::HS256 | Self::HS384 | Self::HS512 => cfg!(feature = "hmac"), Self::RS256 | Self::RS384 | Self::RS512 => cfg!(feature = "rsa"), Self::ES256 | Self::ES384 | Self::ES512 => cfg!(feature = "ecdsa"), - Self::EdDSA => cfg!(feature = "ed25519"), + Self::EdDSA => false, //TODO: implement cfg!(feature = "ed25519"), Self::PS256 | Self::PS384 | Self::PS512 => cfg!(feature = "rsa"), } } From c49dbf5351a1ac2f43c3ffb5bbf05d5535150c82 Mon Sep 17 00:00:00 2001 From: Alex Rudy Date: Fri, 6 Sep 2024 16:10:50 +0000 Subject: [PATCH 2/2] chore: add a changelog Roughly follow the [keep a changelog](https://keepachangelog.com/en/1.0.0/) system --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..694661c --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,6 @@ +# Changelog + +## [Unreleased] + +### Bugfixes and Improvements +- [PR#29](https://github.com/alexrudy/jaws/pull/29) Fixed misspelled feature configuration items.