iddm / serde-aux

An auxiliary serde library providing helpful functions for serialisation and deserialisation for containers, struct fields and others.
MIT License
152 stars 26 forks source link

add visibility param to `enum_number_declare` #33

Closed peanutbother closed 1 year ago

peanutbother commented 1 year ago

This PR adds the param visibility to the macro enum_number_declare which matches the visibility of the generated enum code.

This could introduce breaking changes in user code as the generated enum no longer defaults to pub visibility.

iddm commented 1 year ago

This is a great addition, thanks!

iddm commented 1 year ago

Published as 4.2.0: https://crates.io/crates/serde-aux/4.2.0