NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io · #4187 most downloaded on crates.io
A simple type for non empty Strings, similar to NonZeroUsize and friends.
Last release 1 years ago
no release in 18 months
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
One column per quarter.
non_empty_string!() macro to create a NonEmptyString at compile time , thanks @patskovn in #19 (requires macros feature flag)
new_unchecked (Thanks @Rudxain in #17 )
Add more traits that String also has
String also hasString implemented on NonEmptyString
str & StringAdd Display implementation ( #8 , thanks to @jonhteper )
Display implementation (#8, thanks to @jonhteper)TryFrom implementations (#8, thanks to @jonhteper)Add & delegate all non-length-reducing methods of std::String to the inner String .
std::string::String to the inner String.The error message when using serde now indicates that the empty string could not be deserialized.
serde now indicates that the empty string could not be deserialized.2021serde support behind the serde feature flag.
serde support behind the serde feature flag.Eq, PartialEq, Ord, PartialOrd are now implemented for NonEmptyString.get to retrieve a reference to the inner value.new constructor now returns a Result rather than an Option, which contains the original stringserde support behind the serde feature flag.Eq, PartialEq, Ord, PartialOrd are now implemented for NonEmptyString.get to retrieve a reference to the inner value.new constructor now returns a Result rather than an Option, which contains the original stringNothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →