Remove cbor-smol re-export

Renaming cbor-smol to serde is confusing and the re-export is not
necessary as the cbor-smol version is an implementation detail.

Fixes: https://github.com/trussed-dev/ctap-types/issues/69
This commit is contained in:
Robin Krahl
2026-06-08 10:07:44 +02:00
parent 5795bfc809
commit 53359f7138
5 changed files with 4 additions and 4 deletions
+1
View File
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[Unreleased]: https://github.com/trussed-dev/ctap-types/compare/0.6.0-rc.4...HEAD
- Remove unused `Rpc` trait.
- Remove `cbor-smol` re-export as `serde`.
## [0.6.0-rc.4] 2026-06-01
+1 -1
View File
@@ -512,7 +512,7 @@ mod tests {
// The following test would then fail, as [1] != [2]
let mut buf = [0u8; 64];
let example = PinV1Subcommand::GetKeyAgreement;
let ser = crate::serde::cbor_serialize(&example, &mut buf).unwrap();
let ser = cbor_smol::cbor_serialize(&example, &mut buf).unwrap();
assert_eq!(ser, &[0x02]);
}
}
-1
View File
@@ -31,7 +31,6 @@ pub mod authenticator;
pub mod ctap1;
pub mod ctap2;
pub(crate) mod operation;
pub use cbor_smol as serde;
pub mod sizes;
#[cfg(test)]
mod test;
+1 -1
View File
@@ -1,4 +1,4 @@
use ctap_types::serde::{cbor_deserialize, cbor_serialize};
use cbor_smol::{cbor_deserialize, cbor_serialize};
use serde::{Deserialize, Serialize};
#[derive(Debug, PartialEq, Serialize, Deserialize)]
+1 -1
View File
@@ -1,5 +1,5 @@
fn test<'data, T: serde::Deserialize<'data> + std::fmt::Debug>(data: &'data [u8]) {
let result = ctap_types::serde::cbor_deserialize::<T>(data);
let result = cbor_smol::cbor_deserialize::<T>(data);
assert!(result.is_ok(), "{:?}", result);
}