diff --git a/CHANGELOG.md b/CHANGELOG.md index b88cf4e..48e3ea6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 0.4.1 +- Add the Debug and Clone traits to `Signer` and `Verifier`. + # 0.4.0 - Update lazy-regex to version 3. diff --git a/Cargo.toml b/Cargo.toml index bf77b62..be6a9b9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mauth-core" -version = "0.4.0" +version = "0.4.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/signer.rs b/src/signer.rs index 73bb7d7..2c0c5cb 100644 --- a/src/signer.rs +++ b/src/signer.rs @@ -5,6 +5,7 @@ use rsa::pkcs1::DecodeRsaPrivateKey; use rsa::RsaPrivateKey; use sha2::Sha512; +#[derive(Debug, Clone)] pub struct Signer { app_uuid: String, private_key: RsaPrivateKey, diff --git a/src/verifier.rs b/src/verifier.rs index 938157e..41bc1fe 100644 --- a/src/verifier.rs +++ b/src/verifier.rs @@ -6,6 +6,7 @@ use rsa::pkcs8::DecodePublicKey; use rsa::RsaPublicKey; use sha2::Sha512; +#[derive(Debug, Clone)] pub struct Verifier { app_uuid: String, public_key: RsaPublicKey,