-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pushdown automaton
Decoder
and Decode*
traits; log
feature
Adds a new `veriform::decoder::Decoder` type implemented as a proper stack-driven pushdown automaton which keeps state across nested messages. The primary use case of a stateful decoder automaton is computing content hashes of messages even in the presence of unknown fields. Additionally adds a new set of `Decode*` traits which: - Are generic around their return type and use it to infer the wire type - Accept a stateful `Decoder` type which exists for the duration of processing a message structure, allowing it to compute content hashes of messages as they're decoded Finally, this commit also adds a `log` feature with some basic tracing of how messages are decoded, which can help assist in debugging the decoder. Mea culpa for not splitting these things into separate domain-specific commits, but this PR in particular has been difficult to wrangle.
- Loading branch information
1 parent
c0d7c3a
commit f126e46
Showing
14 changed files
with
452 additions
and
55 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.