aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorJack O'Connor <[email protected]>2020-05-06 00:42:26 -0400
committerJack O'Connor <[email protected]>2020-05-06 12:34:07 -0400
commit76a5267c348d5fe9747d5a005dfef6b91ca3a523 (patch)
treede89056f96b67b1dccf52f6b4c8cf32b17ee025a /Cargo.toml
parent4ad79ae457e826e6a74e91aaa0d3f4ec1562dc54 (diff)
add export_hasher and import_hasher to the guts moduleexport
This was requested in https://github.com/BLAKE3-team/BLAKE3/issues/84.
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml6
1 files changed, 6 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 3114148..c2aad54 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -30,6 +30,10 @@ std = ["digest/std"]
# perform multi-threaded hashing. However, even if this feature is enabled, all
# other APIs remain single-threaded.
+# Implements `serde::{Serialize, Deserialize}` for `ExportedHasher` in the
+# undocumented guts module. Most callers don't need this.
+serde_derive = ["serde", "serde_json", "arrayvec/serde"]
+
# ---------- Features below this line are for internal testing only. ----------
# By default on x86_64, this crate uses Samuel Neves' hand-written assembly
@@ -77,6 +81,8 @@ rayon = { version = "1.2.1", optional = true }
cfg-if = "0.1.10"
digest = "0.8.1"
crypto-mac = "0.7.0"
+serde = { version = "1.0", features = ["derive"], optional = true }
+serde_json = { version = "1.0", optional = true }
[dev-dependencies]
hex = "0.4.2"