All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.2.6 - 2025-04-09
non_empty_string!()macro to create aNonEmptyStringat compile time , thanks @patskovn in #19 (requiresmacrosfeature flag)
0.2.5 - 2024-10-15
new_unchecked(Thanks @Rudxain in #17 )
0.2.4 - 2023-10-03
- impl Hash trait
- impl Into trait
- FromStr implementation
- add Deref impl
- Add release plz
- Remove excessive error file
- Add more traits that
Stringalso has - Add cargo-semver-checks to CI
- error::EmptyString is now public
- Merge branch 'MidasLamb:master' into constructors
- cover parse() in tests::from_str_works
- fix example description about constructor
- clear unnecessary paths
- Release version v0.2.3
- More traits from
Stringimplemented onNonEmptyString- Index
- Add
- AddAssign
- Extend
- Write
- PartialEq with
str&String
- Add
Displayimplementation (#8, thanks to @jonhteper) - Align errors in
TryFromimplementations (#8, thanks to @jonhteper)
- Add & delegate all non-length-reducing methods of
std::string::Stringto the innerString.
- README has some more examples and explanations. It is also no longer included in the doc (except for doctests).
- The error message when using
serdenow indicates that the empty string could not be deserialized. - Bumped rust edition to
2021
serdesupport behind theserdefeature flag.Eq, PartialEq, Ord, PartialOrdare now implemented forNonEmptyString.getto retrieve a reference to the inner value.
newconstructor now returns aResultrather than anOption, which contains the original string