Skip to content

badboy/nom-bencode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bencode parser

Bencode is the format used in Bittorrent files. It's a very simplistic format. All it knows about are strings, integers, lists and dictionaries (also known as hash maps).

Using nom I wrote a small parser able to parse all this.

let data = "l5:jelly4:cake7:custarde".as_bytes();
let obj = bencode::value(data);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages