Skip to content

Repository files navigation

Serde Bencode

CheckingFormattingTestingBenchmarkingCoverageCrates.iodocs.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

About

Serde backed Bencode encoding/decoding library for Rust.

Topics

Resources

Stars

79 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages