Crates.io | bencoding |
lib.rs | bencoding |
version | 0.1.3 |
source | src |
created_at | 2024-06-18 03:49:03.567715 |
updated_at | 2024-06-20 02:59:52.637264 |
description | A library for decoding bencoded data |
homepage | |
repository | https://github.com/max-muoto/bencoding-rs |
max_upload_size | |
id | 1275107 |
size | 48,311 |
Simple library for decoding bencoded data in Rust.
use bencoding::{decode, Bencode};
fn main() {
let data = b"i42e";
let decoded = decode(data).unwrap();
assert_eq!(decoded, Bencode::Int(42));
}
MIT