bendy 0.6.1

A rust library for encoding and decoding bencode with enforced canonicalization rules.
Documentation
//! Encodes and decodes bencoded structures.
//!
//! The decoder is explicitly designed to be zero-copy as much as possible, and to not
//! accept any sort of invalid encoding in any mode (including non-canonical encodings)
//!
//! The encoder is likewise designed to ensure that it only produces valid structures.

#![cfg_attr(not(feature = "std"), no_std)]

extern crate alloc;

#[cfg(all(test, feature = "serde"))]
#[macro_use]
mod assert_matches;

pub mod decoding;
pub mod encoding;
pub mod state_tracker;

#[cfg(any(test, feature = "inspect"))]
pub mod inspect;

#[cfg(feature = "serde")]
pub mod serde;

pub mod value;

#[rustversion::since(1.40)]
const _: () = {
    #[cfg(doctest)]
    doc_comment::doctest!("../../README.md");
};