3.2 KiB
3.2 KiB
Change Log
0.3.1 - 2022-02-23
- Implement
DisplayforCoseError. - Fix
Cargo.tomlto indicate reliance onallocfeature ofciborium-io. - Make
AsCborValuetrait public.
0.3.0 - 2022-01-19
- Change to use
ciboriumas CBOR library. Breaking change with many knock-on effects:- Re-export
ciboriumascoset::cbor(rather thansk-cbor). - Use
ciborium'sValuetype rather thansk-cbor's version. - Change
CoseErrorto no longer wrapsk-cborerrors. - Drop
deriveofEqfor data types (ciboriumsupports float values, which are inherently non-Eq) - Add
#[must_use]attributes to builder methods. - Update MSRV to 1.56.0, as
ciboriumisedition=2021
- Re-export
- Use new
ProtectedHeadertype for protected headers (breaking change). This variant ofHeaderpreserves any originally-parsed data, so that calculations (signatures, decryption, etc.) over the data can use the bit-for-bit wire data instead of a reconstituted (and potentially different) version. - Add more specific error cases to
CoseError(breaking change):- Use new
OutOfRangeIntegerValueerror when an integer value is too large for the representation used in this crate. - Use new
DuplicateMapKeyerror when a CBOR map contains duplicate keys (and is thus invalid). - Extend
DecodeFailederror to include the underlyingciborium::de::Errorvalue. - Use new
ExtraneousDataerror when data remains after reading a CBOR value. - Rename
UnexpectedTypeerror toUnexpectedItemto reflect broader usage than type.
- Use new
- Add a crate-specific
Resulttype whoseEfield defaults toCoseError.
0.2.0 - 2021-12-09
- Change to use
sk-cboras CBOR library, due to deprecation ofserde-cbor. Breaking change with many knock-on effects:- Re-export
sk-cborascoset::cbor. - Use
sk-cbor'sValuetype rather thanserde-cbor's version. - Change encoding methods to consume
self. - Change encoding methods to be fallible.
- Move to be
no_std(but still usingalloc) - Add
CoseErrorerror type and use throughout. - Use
Vecof pairs notBTreeMaps for CBOR map values. - Use
i64noti128for integer values throughout. - Drop use of
serde'sSerializeandDeserializetraits; instead… - Add
CborSerializableextension trait for conversion to/from bytes. - Drop
from_tagged_reader/to_tagged_writermethods fromTaggedCborSerializabletrait. - Derive
Debugfor builders. - Convert
CoseKeySetto a newtype, and add standard traits.
- Re-export
0.1.2 - 2021-08-24
- Add fallible variants of builder methods that invoke closures (#20):
CoseRecipientBuilder::try_create_ciphertext()CoseEncryptBuilder::try_create_ciphertext()CoseEncrypt0Builder::try_create_ciphertext()CoseMacBuilder::try_create_tag()CoseMac0Builder::try_create_tag()CoseSignBuilder::try_add_created_signature()CoseSign1Builder::try_create_signature()
- Upgrade dependencies.
0.1.1 - 2021-06-24
- Make
KeyTypeandKeyOperationpublic. - Upgrade dependencies.
0.1.0 - 2021-05-18
- Initial version, using
serde-cboras CBOR library.