Expand description
A bencode encoding/decoding implementation backed by serde.
This library exposes two simple functions:
decode
- Which you can use to decode bencoded bytes into a deserializable type.encode
- Which you can use to encode a serializable type into bencoded bytes.
Additionally, we have the Value
type that represents any valid bencode data type. It also implements Serialize
and Deserialize
.
You’d also find error types for both encoding and decoding, alongside the Encoder
and Decoder
types.
Re-exports§
pub use value::Value;
Modules§
- de
- Bencode decoding and deserialization.
- en
- Bencode encoding and serialization.
- value
- Bencode data types.