From 6f860a2dfe0bcebd204abdb3e4406925185b31f6 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Mon, 21 Oct 2024 21:47:21 +0200 Subject: [PATCH] Update cbor-smol to v0.5.0 --- CHANGELOG.md | 4 ++++ Cargo.toml | 2 +- src/ctap2.rs | 3 +-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 86732e0..c26eb45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [Unreleased]: https://github.com/trussed-dev/ctap-types/compare/0.3.1...HEAD +### Changed + +- Update `cbor-smol` dependency to v0.5.0 + ## [0.3.1] 2024-10-18 [0.3.1]: https://github.com/trussed-dev/ctap-types/compare/0.3.0...0.3.1 diff --git a/Cargo.toml b/Cargo.toml index 33c4f69..f89c844 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ repository = "https://github.com/trussed-dev/ctap-types" [dependencies] arbitrary = { version = "1.3.2", features = ["derive"], optional = true } bitflags = "1.3" -cbor-smol = "0.4" +cbor-smol = { version = "0.5", features = ["heapless-bytes-v0-3"] } cosey = "0.3.1" delog = "0.1" heapless = { version = "0.7", default-features = false, features = ["serde"] } diff --git a/src/ctap2.rs b/src/ctap2.rs index 3ff7258..8136be2 100644 --- a/src/ctap2.rs +++ b/src/ctap2.rs @@ -242,8 +242,7 @@ impl<'a, A: SerializeAttestedCredentialData, E: serde::Serialize> AuthenticatorD // the extensions data if let Some(extensions) = self.extensions.as_ref() { - cbor_smol::cbor_serialize_extending_bytes(extensions, &mut bytes) - .map_err(|_| Error::Other)?; + cbor_smol::cbor_serialize_to(extensions, &mut bytes).map_err(|_| Error::Other)?; } Ok(bytes)