Releases: pyfisch/cbor
PROJECT IS ARCHIVED
After almost 6 years it is time to retire this crate. This implementation of CBOR for serde is used in hundreds of projects with widely differing needs. Besides the standard features it contains code for no-std environments, a packed encoding and CBOR tags.
However while these features are useful to many people they sometimes interact poorly with each others and with optional features of serde itself. Because I don't use the crate myself and because of the potential for new errors I have been reluctant to accept any changes or additional features for the crate. Since this situation is unlikely to change anytime soon and no one else stepped up to maintain this crate I am archiving the repository today. If the crate works for you there is no need to switch to another implementation. However if you encounter problems or for new projects I recommend you take a look at these crates:
v0.11.0 - Tags at last
v0.10.3
v0.10.2 - Fix stack overflow
Changes:
- Fix stack overflow caused by nested tags reported by Eric Rafaloff at Trail of Bits.
- #147 The functions 'to_vec' and 'from_slice' are available in
no_std
environments ifalloc
is present.
Deeply nested tags like 17(17(17(17(17(17(...17(17(17("foobar"))))...)))
may cause a stack overflow. Malicious input can exploit this to crash the program while decoding the file.
v0.10.1
v0.10.0
Important changes since last release:
no_std
support!- The default enum format was changed. It now uses the externally tagged format recommended by serde.
One can optionally serialize to the legacy array-based format.
Both formats are accepted for deserialization. - Deserialization is configurable.
Opt-out of the packed format or only accept one enum serialization. Value
variants were renamed and simplified.- Keys of
Value
maps are now sorted in a canonical order. - Some utility methods for serialization and deserialization were removed
because they saw little use. - 128-bit numbers can be used, but bear in mind that the values are
still limited to 64-bit by the CBOR format. - Better docs and README.
- Bug fixes.
I would like to thank @sfackler, @chrysn, @ogoodman, @kcking, @wildarch and @baloo for their contributions to this release!
If you have any questions or problems with the new release please open an issue.