Would it be possible to add a feature to pb-rs so that the generated code only uses containers with deterministic iteration order? In my testing, it appears the only thing preventing the serialized protobuf messages from being deterministic in the default configuration is the usage of HashMap. I've been using .nostd(true) as a workaround to make the generated code use BTreeMap (sorted iteration order), but it would be nice to have something explicit for this and not rely on an implementation detail.
Would it be possible to add a feature to pb-rs so that the generated code only uses containers with deterministic iteration order? In my testing, it appears the only thing preventing the serialized protobuf messages from being deterministic in the default configuration is the usage of
HashMap
. I've been using.nostd(true)
as a workaround to make the generated code useBTreeMap
(sorted iteration order), but it would be nice to have something explicit for this and not rely on an implementation detail.Thanks!