Implement serde serialization and deserialization to follow Rust's standards.

This commit is contained in:
Marcelin Dupraz
2021-06-12 23:24:27 -07:00
committed by Kevin Lewi
parent 940d1dcdb2
commit 055e76a115
6 changed files with 143 additions and 1 deletions
Generated
+11
View File
@@ -40,6 +40,15 @@ version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd"
[[package]]
name = "bincode"
version = "1.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad"
dependencies = [
"serde",
]
[[package]]
name = "bit-set"
version = "0.5.2"
@@ -562,6 +571,7 @@ version = "0.5.1-pre.1"
dependencies = [
"anyhow",
"base64",
"bincode",
"chacha20poly1305",
"criterion",
"curve25519-dalek",
@@ -577,6 +587,7 @@ dependencies = [
"rand 0.8.3",
"rustyline",
"scrypt",
"serde",
"serde_json",
"sha2",
"subtle",