stepancheg / rust-protobuf

Rust implementation of Google protocol buffers
MIT License
2.81k stars 382 forks source link

Codegen: option to use BTreeMap as map representation #696

Closed akhramov closed 10 months ago

akhramov commented 11 months ago

As of now, protobuf maps are represented with std::collections::HashMap, which serves as a robust default. In rarer instances, opting for a different implementation, such as BTreeMap, might be desirable, e.g. for deterministic serialization (#496).

This change