Crates.io | torrust-serde-bencode |
lib.rs | torrust-serde-bencode |
version | 0.2.3 |
source | src |
created_at | 2023-09-25 14:37:23.486544 |
updated_at | 2023-09-25 14:37:23.486544 |
description | A Serde backed Bencode encoding/decoding library for Rust. |
homepage | |
repository | https://github.com/torrust/torrust-serde-bencode |
max_upload_size | |
id | 982775 |
size | 59,816 |
A Serde backed Bencode encoding/decoding library for Rust.
Forked from: https://github.com/toby/serde-bencode due to inactivity in upstream repo.
Add the following to your Cargo.toml
:
[dependencies]
torrust-serde-bencode = "^0.2.3"
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.