ben 0.2.0

A minimalistic Bencode parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! `ben` is an efficient Bencode parser which parses the structure into
//! a flat stream of tokens rather than an actual tree and thus avoids
//! unneccessary allocations.

pub mod decode;
pub mod encode;
mod error;
mod parse;
mod token;

pub use decode::{Decode, Decoder};
pub use encode::{Encode, Encoder};
pub use error::{Error, Result};
pub use parse::Parser;