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

Codegen: option to use BTreeMap as map representation #700

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jan 12, 2024

  1. Codegen: option to use BTreeMap as map representation

    As of now, protobuf maps are represented with
    [std::collections::HashMap](https://doc.rust-lang.org/stable/std/collections/struct.HashMap.html),
    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.
    
    This change
    
    * adds `btreemaps` codegen option to generate
      [std::collections::BTreeMap](https://doc.rust-lang.org/std/collections/struct.BTreeMap.html)
      for maps representation.
    akhramov committed Jan 12, 2024
    Configuration menu
    Copy the full SHA
    fbc04d4 View commit details
    Browse the repository at this point in the history