Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cbor-smol to v0.5.0 and release v0.3.2 #68

Merged
merged 2 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

[Unreleased]: https://github.com/trussed-dev/ctap-types/compare/0.3.1...HEAD
[Unreleased]: https://github.com/trussed-dev/ctap-types/compare/0.3.2...HEAD

-

## [0.3.2] 2024-10-24

[0.3.2]: https://github.com/trussed-dev/ctap-types/compare/0.3.1...0.3.2

### Changed

- Update `cbor-smol` dependency to v0.5.0

## [0.3.1] 2024-10-18

Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ctap-types"
version = "0.3.1"
version = "0.3.2"
authors = ["Nicolas Stalder <[email protected]>", "The Trussed developers"]
edition = "2021"
license = "Apache-2.0 OR MIT"
Expand All @@ -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"] }
Expand Down
3 changes: 1 addition & 2 deletions src/ctap2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading