diff --git a/CHANGELOG.md b/CHANGELOG.md index ec7a947..544dbbd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.1.3 - 2024-09-11 + +- [#8](https://github.com/Eyob94/shush-rs/pull/8) Impl Trait + - Implement CloneableSecret Trait for String + ## 0.1.2 - 2024-09-11 - [#7](https://github.com/Eyob94/shush-rs/pull/7) Add Changelog diff --git a/Cargo.toml b/Cargo.toml index cdaf952..6909dc5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shush-rs" -version = "0.1.1" +version = "0.1.3" edition = "2021" license = "MIT OR Apache-2.0" description = "A Rust crate designed to manage sensitive data securely by leveraging memory protection mechanisms." diff --git a/src/lib.rs b/src/lib.rs index a826e55..2006f02 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -269,6 +269,8 @@ impl<'a, S: Zeroize> SecretGuardMut<'a, S> { /// Marker trait for secrets which are allowed to be cloned pub trait CloneableSecret: Clone + Zeroize {} +impl CloneableSecret for String {} + /// Create a SecretGuard that holds a reference to the secret pub trait ExposeSecret { /// Expose secret as non-mutable.