bencoding

Crates.iobencoding
lib.rsbencoding
version0.1.3
sourcesrc
created_at2024-06-18 03:49:03.567715
updated_at2024-06-20 02:59:52.637264
descriptionA library for decoding bencoded data
homepage
repositoryhttps://github.com/max-muoto/bencoding-rs
max_upload_size
id1275107
size48,311
Max Muoto (max-muoto)

documentation

README

bencoding-rs

Simple library for decoding bencoded data in Rust.

Usage

use bencoding::{decode, Bencode};

fn main() {
    let data = b"i42e";
    let decoded = decode(data).unwrap();
    assert_eq!(decoded, Bencode::Int(42));
}

License

MIT

Commit count: 11

cargo fmt