-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prost-build: internal refactor with PathMap
This commit adds a new internal data structure in prost-build: the `PathMap`. `PathMap` better supports the frequent configuration pattern of associating fully-qualified Protobuf paths with a value. The fully-qualified paths are matched according to the prefix/suffix rules already used by configuration options such as `Config::btree()`. `PathMap` will be a good basis to build further support for custom string, bytes, and maps types in the future, in addition to other code generation options. This commit should not have any publicly visible changes, except for a small tweak to allow for more intuitive field matching when the pattern is a suffix-matched message.
- Loading branch information
1 parent
5eddc35
commit 79f0dfd
Showing
6 changed files
with
326 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.