Crates.io | serde_bencode |
lib.rs | serde_bencode |
version | 0.2.4 |
source | src |
created_at | 2016-12-17 22:42:32.596134 |
updated_at | 2023-10-09 14:31:34.84645 |
description | A Serde backed Bencode encoding/decoding library for Rust. |
homepage | |
repository | https://github.com/toby/serde-bencode |
max_upload_size | |
id | 7658 |
size | 100,738 |
A Serde backed Bencode encoding/decoding library for Rust.
Add the following to your Cargo.toml
:
[dependencies]
serde_bencode = "^0.2.4"
serde = "^1.0.0"
serde_derive = "^1.0.0"
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.
cargo bench