-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
63 lines (58 loc) · 2.23 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[package]
name = "selfhash"
version = "0.4.0"
authors = ["Victor Dods <victor.dods@gmail.com>"]
edition = "2021"
[features]
# This enables support for the BLAKE3 hash function via the blake3 crate.
blake3 = ["dep:blake3"]
# This provides the default implementation of the SelfHashable::write_digest_data method for when a
# SelfHashable implements Clone and the desired serialization format is JSON Canonicalization Scheme (JCS).
jcs = ["dep:serde", "dep:serde_json_canonicalizer"]
# This enables support for self-hashable serde_json::Value-s.
self-hashable-json = ["jcs", "dep:serde_json"]
# This enables serde support for for KERIHash and NamedHashFunction types.
serde = ["dep:serde", "dep:serde_with"]
# This enables support for the SHA-256 hash function via the sha2 crate.
sha-256 = ["dep:digest", "dep:lazy_static", "dep:sha2"]
# This enables support for the SHA-512 hash function via the sha2 crate.
sha-512 = ["dep:digest", "dep:lazy_static", "dep:sha2"]
[dependencies]
base64 = { version = "0.21.4", default-features = false }
blake3 = { version = "1.4.1", optional = true, default-features = false, features = [
"std",
] }
derive_more = { version = "0.99.17", default-features = false, features = [
"deref",
"display",
"from",
"into",
] }
digest = { version = "0.10.7", optional = true }
lazy_static = { version = "1.4", optional = true, default-features = false }
pneutype = "0.5.1"
serde = { version = "1.0", optional = true, default-features = false, features = [
"alloc",
"derive",
] }
serde_json = { version = "1.0.106", optional = true }
serde_json_canonicalizer = { version = "0.2.0", optional = true }
serde_with = { version = "3.3.0", optional = true, default-features = false, features = [
"macros",
] }
sha2 = { version = "0.10.7", optional = true, default-features = false, features = [
"std",
] }
[dev-dependencies]
maplit = "1.0.2"
serde = { version = "1.0", default-features = false, features = ["derive"] }
serde_json = "1.0"
serde_json_canonicalizer = "0.2.0"
serde_with = { version = "3.3.0", default-features = false, features = [
"macros",
] }
serial_test = "2.0.0"
[patch.crates-io]
pneutype = { git = "https://github.com/vdods/pneutype", rev = "pneutype-v0.5.1" }
[workspace]
members = [".", "selfhash-bin"]