fake-torrent-client

Crates.iofake-torrent-client
lib.rsfake-torrent-client
version0.9.10
created_at2022-10-28 19:20:47.036756+00
updated_at2025-08-22 16:25:54.720144+00
descriptionA rust library to generate torrent client information (key, peer ID, query, ...)
homepage
repositoryhttps://codeberg.org/slundi/fake-torrent-client
max_upload_size
id700597
size271,644
slundi (slundi)

documentation

README

fake-torrent-client

Rust library to get client information (name, peer ID, key)

Usage

let mut client = Client::new();
client.build(ClientVersion::Qbittorrent_4_4_2);
//or tou can get the enum from a string
client.build(ClientVersion::from_str("Transmission_3_00").expect("Wrong client"));

client.get_query(); //get the query URL and HTTP headers (you have to replace fields in the url)
client.generate_key(); //generate a new key
client.generate_peer_id(); //generate a new peer ID

You can also get other information form the client (see doc)

Commit count: 0

cargo fmt