Implement customer [de]serialization for IntegerInterner

Added some basic tests that the representation of the interner
is only the `values` sequence, and that it round-trips successfully.
This commit is contained in:
Declan Kelly
2020-06-29 23:29:26 -07:00
parent 43f8453b34
commit a3feb8a412
4 changed files with 132 additions and 1 deletions

10
Cargo.lock generated
View File

@@ -1338,6 +1338,7 @@ dependencies = [
"peepmatic-automata",
"peepmatic-macro",
"serde",
"serde_test",
"thiserror",
"wast 15.0.0",
]
@@ -1881,6 +1882,15 @@ dependencies = [
"serde",
]
[[package]]
name = "serde_test"
version = "1.0.114"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f58190d074af17bd48118303db08afadbd506bc2ba511b4582cebd8f882a9b8d"
dependencies = [
"serde",
]
[[package]]
name = "sha2"
version = "0.8.2"