-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: serde support for
JsonPathQuery
and MainEngine
Implemented `serde::Serialize` and `serde::Deserialize` for `MainEngine` in rsonpath-lib, and `JsonPathQuery` in rsonpath-syntax with all of its constituent substructs. The `serde` dependency is guarded behind an optional feature. To properly proptest this feature `rsonpath-lib` needs access to the arbitrary query generation from `rsonpath-syntax`. The cleanest way to do this is to extract the logic to a separate crate, giving rise to `rsonpath-syntax-proptest`. The serialization format is not stable, as the `Automaton` is expected to evolve. Thus, serialization includes a version and deserialization will fail if the version disagrees. Also added snapshot tests based on `insta` to both the rsonpath-syntax and rsonpath-lib serialization features.
- Loading branch information
Showing
43 changed files
with
1,925 additions
and
561 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
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
Oops, something went wrong.