Duplicate 1.0.0 released: Hell, it's about time

161 points Emoun1

I'd like to announce version 1.0.0 of the duplicate crate.

About: duplicate provides macros that allow you to avoid repetition. Instead of copy-pasting some Rust code and then editing a few places, duplicate can make copies for you and insert different code in the key places for every copy. See the documentation for more details.

Reaching 1.0 has been a long time coming. Seeing as the crate is now downloaded thousands of times a day and I haven't received a bug report in over half a year, I'm confident enough in the maturity of the crate to commit to stability. This does not mean the work is done, but it seems to work well for a lot of people.

The release itself includes quality of life improvements in the shape of improved error messaging. Notably, the pretty_errors feature is now much more useful with both more accurate code highlights and syntax hints and help messages. However, error reporting is still on a best-effort basis, so more work is probably needed in more niche circumstances.

Got a question, a feature request, or got a weird error message? Feel free to either drop a comment or open an issue. The changes to this crate are mostly a result of feedback from users (which is much appreciated.)