Index: Cargo.toml ================================================================== --- Cargo.toml +++ Cargo.toml @@ -1,8 +1,8 @@ [package] name = "strval" -version = "0.3.2" +version = "0.3.3" edition = "2024" license = "0BSD" # https://crates.io/category_slugs categories = ["text-processing"] keywords = ["parsing", "string", "rusqlite"] Index: src/dur.rs ================================================================== --- src/dur.rs +++ src/dur.rs @@ -7,10 +7,11 @@ }; use crate::{Controller, StrVal, err::Error}; +#[derive(Clone, Debug)] pub struct AnyDur; impl Controller for AnyDur { type Type = Duration; fn def() -> String { String::from("0") Index: src/lib.rs ================================================================== --- src/lib.rs +++ src/lib.rs @@ -96,10 +96,11 @@ fn validate(val: &Self::Type) -> Result<(), Error>; } /// Accept any `u64`. +#[derive(Clone, Debug)] pub struct AnyU64; impl Controller for AnyU64 { type Type = u64; @@ -111,10 +112,11 @@ Ok(()) } } /// Accept any `usize`. +#[derive(Clone, Debug)] pub struct AnyUsize; impl Controller for AnyUsize { type Type = usize; Index: src/relabslim.rs ================================================================== --- src/relabslim.rs +++ src/relabslim.rs @@ -22,10 +22,11 @@ Self::Rel(1.0) } } +#[derive(Clone, Debug)] pub struct AnyLim; impl Controller for AnyLim { type Type = Lim; fn def() -> String { String::from("100%") Index: src/str.rs ================================================================== --- src/str.rs +++ src/str.rs @@ -7,11 +7,11 @@ }; use crate::{Controller, StrVal, err::Error}; -#[derive(Default)] +#[derive(Clone, Default)] pub struct AnyStr; impl Controller for AnyStr { type Type = String; Index: www/changelog.md ================================================================== --- www/changelog.md +++ www/changelog.md @@ -2,18 +2,28 @@ ⚠️ indicates a breaking change. ## [Unreleased] -[Details](/vdiff?from=strval-0.3.2&to=trunk) +[Details](/vdiff?from=strval-0.3.3&to=trunk) ### Added ### Changed ### Removed +--- + +## [0.3.3] - 2025-08-03 + +[Details](/vdiff?from=strval-0.3.2&to=strval-0.3.3) + +### Changed + +- Make some `Controller`s `Clone`:able. + --- ## [0.3.2] - 2025-08-03 [Details](/vdiff?from=strval-0.3.1&to=strval-0.3.2)