All notable changes to this project will be documented in this file.
- Finally retired the use of the failure crate
- Various internal cleanups
- Improved documentation of serde support (thanks @casey)
- Fix lifetime on Deserializer implementation for Value (thanks @euclio)
- Many documentation fixes (thanks @casey)
- Bugfix release allowing generic values to be contained within lists or maps
- Added serde support
- Added generic value type that can represent any Bencode value
- Make the
no_std
api match thestd
api a little bit more closely.
- Add missing
FromBencode
implementation forBTreeMap
. - Introduce
std
as default enabled feature.- Disabling this feature makes bendy
no_std
compatible. - This currently requires that the target provides allocator support and
also supports
atomic_cas
as bendy contains a defaultToBencode
implementation forArc<T: ToBencode>
.
- Disabling this feature makes bendy
- Update minimal required rustc version to v1.36 (to use
extern crate alloc
inside tests and examples).
- Add new
try_into_*
utility methods onObject
. - Introduce ...
FromBencode
trait for simpler decoding.- a high level encoding
Error
type. - a high level decoding
Error
type. ResultExt
decoding trait to improve error handling.
- Subscribed into edition 2018 and latest rustfmt version.
Breaking Changes
- Remove
Error
from the public API. - Move
Token
fromdecoder
intostate_tracker
submodule. - Rename ...
- Changed signatures of all
_or_err
methods onObject
. - Replaced all occurrences of
Error
inside the API with the new high level decodingError
and encodingError
.
- Add
AsRef<[u8]>
andFrom<&[u8]>
forAsString
if the content supports them.
- Add missing trait derives for the
AsString
encoding wrapper.
Initial release