PackageTrack
Sign in Get early access

coset

Set of types for supporting COSE

0.4.2 22M downloads/mo #1989 most downloaded on crates.io google/coset

What this package is like to depend on

Last release 5 months ago

02 Mar 2026

Release timing varies

gaps range from 5 weeks to 1.2 years

Nearly every release is documented

notes for 16 of 16 stable releases

Nothing withdrawn

no release was ever pulled

5 years old

16 releases · first in 2021

3 releases in the last 12 months

see the full history below

Release timeline

16 releases · May 2021 to Mar 2026
2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 16
  1. 0.4.2 02 Mar 2026
    Release notes

    Prep for 0.4.2 release (#128)

    Open source →
    Release notes
    • Add CoseKeyBuilder::new_mldsa_pub_key() helper, with associated MlDsaVariant enum.
    Open source →
  2. 0.4.1 19 Jan 2026
    Release notes
    • Bump MSRV to 1.81.
    • Implement the core version of Error, making the std feature now a no-op.
    • Add new IANA COSE algorithm values.
    • Add helpers for converting EC keys to SEC1 octet strings.
    Open source →
  3. 0.4.0 22 Sep 2025
    Release notes

    Prep for 0.4.0 release (#117)

    Open source →
    Release notes
    • Breaking change: alter type of crit field in Header to support private-use labels (in accordance with 9052 §3.1).
    • Deprecate CoseMac[0]::verify_tag in favour of verify_payload_tag.
    • Deprecate CoseEncrypt[0]::decrypt, CoseRecipient::decrypt in favour of decrypt_ciphertext.
    Open source →
  4. 0.3.8 24 Jul 2024
    Release notes

    Prep 0.3.8 release (#97)

    Open source →
    Release notes
    • Make CoseSign[1]::tbs_[detached_]data methods pub.
    Open source →
  5. 0.3.7 05 Apr 2024
    Release notes

    Prep 0.3.7 release (#94)

    Open source →
    Release notes
    • Bump MSRV to 1.58.
    • Update dependencies.
    • Fix bounds bug for label sorting.
    Open source →
  6. 0.3.6 15 Jan 2024
    Release notes

    Prep 0.3.6 release (#86)

    Open source →
    Release notes
    • Helpers for ordering of fields in a COSE_Key:
      • Add Label::cmp_canonical() for RFC 7049 canonical ordering.
      • Add CborOrdering enum to specify ordering.
      • Add CoseKey::canonicalize() method to order fields.
    Open source →
  7. 0.3.5 29 Sep 2023
    Release notes

    CHANGELOG: update for release (#83)

    Open source →
    Release notes
    • Add helper methods to create and verify detached signatures:
      • Add CoseSignBuilder methods add_detached_signature and try_add_detached_signature.
      • Add CoseSign method verify_detached_signature.
      • Add CoseSign1Builder methods create_detached_signature and try_create_detached_signature.
      • Add CoseSign1 method verify_detached_signature.
    • Implement CBOR conversion traits for ciborium::value::Value.
    • Update ciborium dependency.
    Open source →
  8. 0.3.4 25 Jan 2023
    Release notes

    Prep 0.3.4 release (#62)

    Open source →
    Release notes
    • Add non-default std feature that turns on impl Error for CoseError.
    • Add cwt::ClaimsSetBuilder::private_claim method.
    • Update documentation for existing encryption methods to make it clear that they only support AEAD encryption.
    Open source →
  9. 0.3.3 30 Sep 2022
    Release notes

    Prep 0.3.3 release (#57)

    Open source →
    Release notes
    • Add CoseKeyBuilder methods kty, key_type and new_okp_key.
    Open source →
  10. 0.3.2 02 Apr 2022
    Release notes

    Prep 0.3.2 release (#52)

    Open source →
    Release notes
    • Add basic CWT support in cwt module, via the ClaimsSet type.
    Open source →
  11. 0.3.1 23 Feb 2022
    Release notes

    Fixes #49

    Open source →
    Release notes
    • Implement Display for CoseError.
    • Fix Cargo.toml to indicate reliance on alloc feature of ciborium-io.
    • Make AsCborValue trait public.
    Open source →
  12. 0.3.0 19 Jan 2022
    Release notes
    • Change to use ciborium as CBOR library. Breaking change with many knock-on effects:
      • Re-export ciborium as coset::cbor (rather than sk-cbor).
      • Use ciborium's Value type rather than sk-cbor's version.
      • Change CoseError to no longer wrap sk-cbor errors.
      • Drop derive of Eq for data types (ciborium supports float values, which are inherently non-Eq)
      • Add #[must_use] attributes to builder methods.
      • Update MSRV to 1.56.0, as ciborium is edition=2021
    • Use new ProtectedHeader type for protected headers (breaking change). This variant of Header preserves 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 OutOfRangeIntegerValue error when an integer value is too large for the representation used in this crate.
      • Use new DuplicateMapKey error when a CBOR map contains duplicate keys (and is thus invalid).
      • Extend DecodeFailed error to include the underlying ciborium::de::Error value.
      • Use new ExtraneousData error when data remains after reading a CBOR value.
      • Rename UnexpectedType error to UnexpectedItem to reflect broader usage than type.
    • Add a crate-specific Result type whose E field defaults to CoseError.
    Open source →
  13. 0.2.0 09 Dec 2021
    Release notes
    • Change to use sk-cbor as CBOR library, due to deprecation of serde-cbor. Breaking change with many knock-on effects:
      • Re-export sk-cbor as coset::cbor.
      • Use sk-cbor's Value type rather than serde-cbor's version.
      • Change encoding methods to consume self.
      • Change encoding methods to be fallible.
      • Move to be no_std (but still using alloc)
      • Add CoseError error type and use throughout.
      • Use Vec of pairs not BTreeMaps for CBOR map values.
      • Use i64 not i128 for integer values throughout.
      • Drop use of serde's Serialize and Deserialize traits; instead…
      • Add CborSerializable extension trait for conversion to/from bytes.
      • Drop from_tagged_reader / to_tagged_writer methods from TaggedCborSerializable trait.
      • Derive Debug for builders.
      • Convert CoseKeySet to a newtype, and add standard traits.
    Open source →
  14. 0.1.2 24 Aug 2021
    Release notes
    • 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.
    Open source →
  15. 0.1.1 24 Jun 2021
    Release notes
    • Make KeyType and KeyOperation public.
    • Upgrade dependencies.
    Open source →
  16. 0.1.0 18 May 2021
    Release notes
    • Initial version, using serde-cbor as CBOR library.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive