Skip to content
Logo

A modern bencode parser written from scratch for the next generation of torrent streaming


Documentation : https://bencode-rust.readthedocs.io/

Source Code : https://github.com/baseplate-admin/bencode-rust


Bencode rust is a new parser for bencode written from scratch ( using )

The main goals are:

  • Readable: The main goal of this project is to be readable.
  • Fast: The other goal of this project is to be fast ( like really fast ).
  • Feature Parity: Support the entire bencode encoding scheme
  • Optimize: The parser should be optimized, every byte optimizes will theoritically optimize other lower libs that depend on it
  • Extensible: The library should support as many language as possible

Language Support

Language Support Type Location
Rust ⭐ Core
Python1 ⭐ crates/python_bindings/
WebAssembly2 ⭐ crates/wasm_bindings/
Node.js3 🚀 -
Deno4 🚀 -
Bun5 🚀 -

  • ⭐ : Support via native binding
  • 🚀 : Support via WebAssembly



  1. Python support is due to CoreProject tracker and backend being written in Python 

  2. Webassembly support is due to CoreProject's main target of streaming content in a browser, also it indirectly allows us to target node.js/deno/bun users 

  3. Node.js natively supports wasm 

  4. Deno natively supports wasm 

  5. Bun natively supports loading wasm