April 25th, 2024 12:28 UTC · 5 months ago

RustPetnames

rust-petname 2.0.0 released

rust-petname 2.0.0 is out!

rust-petname is fairly simple: it generates human readable random names. It can be used as a library in your Rust projects, or as a command-line application, typically by running cargo install petname.

There are breaking changes if you’re upgrading from 1.x for both the library and the command-line tool. Please read the notes to find out how to upgrade.

One feature was removed: the non-repeating iterator. It was interesting to work on but unsatisfying to use – it didn’t feel particularly random. There’s some discussion (with myself, mostly) in issue #61.

Alliteration was improved, the API was tidied up, and several tests were added to keep it drop-in compatible with dustinkirkland/petname.

I hope you find this useful. I enjoy hacking on rust-petname to add and improve features, and to keep it current. It keeps me current with Rust and the ecosystem too, in its own way. Please file bugs, feature requests, and feedback here.

Thank you!

Changes since 2.0.0-beta.2

There are a few minor changes from 2.0.0-beta.2 (which was itself announced here):

  • Fixes to some documentation, and other polish, niceties.
  • Build words.rs hygienically. Previously, words.rs – which is written during compilation – was built by printing out strings. Now it uses the quote crate – and the quote! and format_ident! macros therein – to do it nicely.
  • Relax version requirements for the benefit of users of rust-petname as a library.