Skip to content

Commit

Permalink
Make hmacsha256p256 deps optional
Browse files Browse the repository at this point in the history
  • Loading branch information
szszszsz committed Jun 29, 2023
1 parent 094ca93 commit 8329b12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ littlefs2 = "0.4.0"
serde-byte-array = "0.1.2"

# For hmacsha256p256
hmac = "0.12"
sha2 = { version = "0.10", default-features = false }
hmac = { version = "0.12", optional = true }
sha2 = { version = "0.10", default-features = false, optional = true }

[dev-dependencies]
trussed = { version = "0.1.0", default-features = false, features = ["serde-extensions", "virt"] }

[features]
default = []

hmacsha256p256 = []
hmacsha256p256 = ["hmac", "sha2"]
wrap-key-to-file = ["chacha20poly1305"]
chunked = []
encrypted-chunked = ["chunked", "chacha20poly1305/stream"]
Expand Down

0 comments on commit 8329b12

Please sign in to comment.