From 166fe1bca64d606cfdb5df9b5663befc211f8938 Mon Sep 17 00:00:00 2001 From: Nick Zana Date: Wed, 17 May 2023 22:54:46 -0400 Subject: [PATCH] ctap2-proto: Add serde_with Required for serializing and deserializing Vecs as byte strings instead of sequences of bytes in CTAP request/response types. --- crates/ctap2-proto/Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/ctap2-proto/Cargo.toml b/crates/ctap2-proto/Cargo.toml index b45c9b3..c766155 100644 --- a/crates/ctap2-proto/Cargo.toml +++ b/crates/ctap2-proto/Cargo.toml @@ -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"]