Skip to content

Minimal, lean, no-bullshit, iterator-based bencode decoder.

License

Notifications You must be signed in to change notification settings

wngr/bencode-decode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bencode-decode

WTFPL

Minimal, lean, no-bullshit, iterator-based bencode decoder.

use bencode_decode::{Parser, decode};
use std::fs::File;

let f = File::open("./test/ubuntu-18.04.4-live-server-amd64.iso.torrent").unwrap();
let mut parser = Parser::new(f);
let res = decode(&mut parser, None).unwrap();
println!("Your torrent file in its raw glory: {:?}", res);

About

Minimal, lean, no-bullshit, iterator-based bencode decoder.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages