PackageTrack
Sign in Get early access

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
Release Pre-release

Releases

latest 8
  1. 0.2.6 09 Apr 2025
    Release notes

    Added

    • non_empty_string!() macro to create a NonEmptyString at compile time , thanks @patskovn in #19 (requires macros feature flag)
    Open source →
    Release notes

    Added

    • non_empty_string!() macro to create a NonEmptyString at compile time , thanks @patskovn in #19 (requires macros feature flag)
    Open source →
  2. 0.2.5 15 Oct 2024
    Release notes

    Added

    Open source →
    Release notes

    Added

    • new_unchecked (Thanks @Rudxain in #17 )
    Open source →
  3. 0.2.4 03 Oct 2023
    Release notes

    Added

    • impl Hash trait
    • impl Into trait
    • FromStr implementation
    • add Deref impl

    Other

    • Add release plz
    • Remove excessive error file
    • Add more traits that String also 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 String implemented on NonEmptyString
      • Index
      • Add
      • AddAssign
      • Extend
      • Write
      • PartialEq with str & String

    Changed

    Removed

    Open source →
    Release notes

    Added

    • impl Hash trait
    • impl Into trait
    • FromStr implementation
    • add Deref impl

    Other

    • Add release plz
    • Remove excessive error file
    • Add more traits that String also 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 String implemented on NonEmptyString
      • Index
      • Add
      • AddAssign
      • Extend
      • Write
      • PartialEq with str & String

    Changed

    Removed

    Open source →
  4. 0.2.3 27 Nov 2022
    Release notes

    Added

    • Add Display implementation (#8, thanks to @jonhteper)
    • Align errors in TryFrom implementations (#8, thanks to @jonhteper)
    Open source →
  5. 0.2.2 18 Sep 2022
    Release notes

    Added

    • Add & delegate all non-length-reducing methods of std::string::String to the inner String.

    Changed

    • README has some more examples and explanations. It is also no longer included in the doc (except for doctests).
    Open source →
  6. 0.2.1 14 Sep 2022
    Release notes

    Added

    Changed

    • The error message when using serde now indicates that the empty string could not be deserialized.
    • Bumped rust edition to 2021

    Removed

    Open source →
  7. 0.2.0 10 Sep 2022
    Release notes

    Added

    • 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.

    Changed

    • new constructor now returns a Result rather than an Option, which contains the original string

    Removed

    Open source →
  8. 0.1.0 25 Sep 2021

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive