Skip to content

Commit a33879b

Browse files
Relax cbor-smol dependency
1 parent 699539a commit a33879b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repository = "https://github.com/trussed-dev/ctap-types"
1010
[dependencies]
1111
arbitrary = { version = "1.3.2", features = ["derive"], optional = true }
1212
bitflags = "1.3"
13-
cbor-smol = "0.4"
13+
cbor-smol = { version = ">= 0.4.1, < 0.6", features = ["heapless-bytes-v0-3"] }
1414
cosey = "0.3.1"
1515
delog = "0.1"
1616
heapless = { version = "0.7", default-features = false, features = ["serde"] }

src/ctap2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ impl<'a, A: SerializeAttestedCredentialData, E: serde::Serialize> AuthenticatorD
242242

243243
// the extensions data
244244
if let Some(extensions) = self.extensions.as_ref() {
245-
cbor_smol::cbor_serialize_extending_bytes(extensions, &mut bytes)
245+
cbor_smol::cbor_serialize_to(extensions, &mut bytes)
246246
.map_err(|_| Error::Other)?;
247247
}
248248

0 commit comments

Comments
 (0)