Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] pb-rs deterministic mode #251

Open
chenxiaolong opened this issue Aug 20, 2023 · 0 comments
Open

[Feature request] pb-rs deterministic mode #251

chenxiaolong opened this issue Aug 20, 2023 · 0 comments

Comments

@chenxiaolong
Copy link

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.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant