Skip to content

Releases: MidasLamb/non-empty-string

v0.2.6

Choose a tag to compare

@github-actions github-actions released this 09 Apr 18:03

Added

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

v0.2.5

Choose a tag to compare

@github-actions github-actions released this 15 Oct 18:42
fc79ad4

Added

v0.2.4

Choose a tag to compare

@github-actions github-actions released this 03 Oct 19:41
36affb4

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

v0.2.3

Choose a tag to compare

@MidasLamb MidasLamb released this 28 Nov 09:23

Added

  • Add Display implementation (#8, thanks to @jonhteper)
  • Align errors in TryFrom implementations (#8, thanks to @jonhteper)

v0.2.2

Choose a tag to compare

@MidasLamb MidasLamb released this 18 Sep 16:09

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

v0.2.1

Choose a tag to compare

@MidasLamb MidasLamb released this 14 Sep 15:41
99a576d

Added

Changed

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

Removed

v0.2.0

Choose a tag to compare

@MidasLamb MidasLamb released this 10 Sep 13:36
86b7001

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

v0.1.0

Choose a tag to compare

@MidasLamb MidasLamb released this 10 Sep 13:13
affc715

The initial release