Skip to content

Releases: mplanchard/cuid-rust

v1.1.0 - Improvements to is_slug() and is_cuid()

03 Aug 23:40
Compare
Choose a tag to compare

1.1.0 - 2021-08-03

Fixed

  • 0-length strings now return false when being checked by is_cuid() rather
    than panicking (a4fca2f, reported by @DeppLearning)

Changed

  • Improved specificity of is_cuid() and is_slug() checks (a4fca2f)
  • Use references for is_cuid() and is_slug() rather than converting to
    strings (a4fca2f)

v1.0.2 - Performance Improvements

01 Apr 20:55
Compare
Choose a tag to compare
  • Significant performance improvements for multithreaded usage (~30-35%) due to
    the counter now using AtomicU32 again rather than Arc<Mutex<32>>, enabled
    thanks to the stabilization of fetch_update
    (3a5cc2e)
  • Generating CUIDs and slugs is now ~15-20% faster, thanks to reductions in the
    number of allocated strings and improvements to how space is pre-allocated
    during the generation of radix strings (a09bfad)
  • Updated non-v1 requirements to require minor version compatibility
  • Updated rand requirement from ~0.7 to ~0.8.0
  • Switched from Travis to GH Actions

v1.0.1 - Consistent CUID Length

02 Oct 00:46
v1.0.1
3d803c2
Compare
Choose a tag to compare

1.0.1 - 2020-10-01

Fixed

  • Generated CUIDs now have a consistent length, aligning with the
    reference implementation (#2, thanks @rasendubi!)

v1.0.0 - Support Stable Rust

22 Feb 22:00
v1.0.0
de098b7
Compare
Choose a tag to compare

1.0.0 - 2020-02-22

Added

  • Support for stable Rust (2018 edition)
  • The crate now includes a simple binary (cuid) that can be used to generate
    CUIDs on the commandline

Changed

  • The atomic counter is now an Arc<Mutex<u32>> rather than an AtomicUsize.
    This change was made to ensure that the counter could be fetched and
    updated simultaneously without using the nightly-only fetch_update
  • Updated dependencies
  • Ensured documentation examples are run in the test suite