ctap2-proto: Add serde_with

Required for serializing and deserializing Vec<u8>s as byte strings
instead of sequences of bytes in CTAP request/response types.
main
Nick Zana 2 years ago
parent 7f98c2779a
commit 166fe1bca6

@ -10,6 +10,8 @@ fido-common = { path = "../fido-common" }
bounded-integer = { version = "0.5.3", features = ["types", "std"] }
coset = "0.3.3"
serde = { version = "=1.0.136", features = ["derive"], optional = true }
# Version <= to support older serde
serde_with = { version = "<=2.2.0", optional = true }
[features]
serde = ["dep:serde", "fido-common/serde", "bounded-integer/serde1"]
serde = ["dep:serde", "dep:serde_with", "fido-common/serde", "bounded-integer/serde1"]

Loading…
Cancel
Save