4 releases
0.1.3 | Jun 20, 2024 |
---|---|
0.1.2 | Jun 19, 2024 |
0.1.1 | Jun 18, 2024 |
0.1.0 | Jun 18, 2024 |
#1409 in Parser implementations
41KB
229 lines
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