serde_bencode

Crates.ioserde_bencode
lib.rsserde_bencode
version0.2.4
sourcesrc
created_at2016-12-17 22:42:32.596134
updated_at2023-10-09 14:31:34.84645
descriptionA Serde backed Bencode encoding/decoding library for Rust.
homepage
repositoryhttps://github.com/toby/serde-bencode
max_upload_size
id7658
size100,738
Jose Celano (josecelano)

documentation

https://docs.rs/serde_bencode/

README

Serde Bencode

Checking Formatting Testing Benchmarking Coverage Crates.io docs.rs

A Serde backed Bencode encoding/decoding library for Rust.

Installation

Add the following to your Cargo.toml:

[dependencies]
serde_bencode = "^0.2.4"
serde = "^1.0.0"
serde_derive = "^1.0.0"

Usage

This is an abbreviated .torrent parsing example from examples/parse_torrent.rs. If you compile this crate as a binary, it will print metadata for any Torrent sent to stdin.

Benchmarking

cargo bench
Commit count: 108

cargo fmt