non-empty-string
A simple type for non empty Strings, similar to NonZeroUsize and friends.
0.2.6
5.7M downloads/mo
#4269 most downloaded on crates.io
MidasLamb/non-empty-string
What this package is like to depend on
Last release 1 years ago
09 Apr 2025
Ships fairly regularly
a new release about every 8 months
Most releases are documented
notes for 7 of 8 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
8 releases · first in 2021
0 releases in the last 12 months
see the full history below
Release timeline
8 releases · Sep 2021 to Apr 2025
2022
2023
2024
2025
2026
Releases
latest 8-
0.2.609 Apr 2025Release notes
Open source →Added
non_empty_string!()macro to create aNonEmptyStringat compile time , thanks @patskovn in #19 (requiresmacrosfeature flag)
-
0.2.515 Oct 2024 -
0.2.403 Oct 2023Release notes
Open source →Added
- impl Hash trait
- impl Into trait
- FromStr implementation
- add Deref impl
Other
- 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
Added
- More traits from
Stringimplemented onNonEmptyString- Index
- Add
- AddAssign
- Extend
- Write
- PartialEq with
str&String
Changed
Removed
Release notes
Open source →Added
- impl Hash trait
- impl Into trait
- FromStr implementation
- add Deref impl
Other
- 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
Added
- More traits from
Stringimplemented onNonEmptyString- Index
- Add
- AddAssign
- Extend
- Write
- PartialEq with
str&String
Changed
Removed
-
0.2.327 Nov 2022Release notes
Open source →Added
- Add
Displayimplementation (#8, thanks to @jonhteper) - Align errors in
TryFromimplementations (#8, thanks to @jonhteper)
- Add
-
0.2.218 Sep 2022Release notes
Open source →Added
- Add & delegate all non-length-reducing methods of
std::string::Stringto the innerString.
Changed
- README has some more examples and explanations. It is also no longer included in the doc (except for doctests).
- Add & delegate all non-length-reducing methods of
-
0.2.114 Sep 2022Release notes
Open source →Added
Changed
- The error message when using
serdenow indicates that the empty string could not be deserialized. - Bumped rust edition to
2021
Removed
- The error message when using
-
0.2.010 Sep 2022Release notes
Open source →Added
serdesupport behind theserdefeature flag.Eq, PartialEq, Ord, PartialOrdare now implemented forNonEmptyString.getto retrieve a reference to the inner value.
Changed
newconstructor now returns aResultrather than anOption, which contains the original string
Removed
-
0.1.025 Sep 2021Nothing published for this version