Crates.io | fake-torrent-client |
lib.rs | fake-torrent-client |
version | 0.9.6 |
source | src |
created_at | 2022-10-28 19:20:47.036756 |
updated_at | 2022-10-30 12:08:58.537444 |
description | A rust library to generate torrent client information (key, peer ID, query, ...) |
homepage | |
repository | https://github.com/slundi/fake-torrent-client |
max_upload_size | |
id | 700597 |
size | 208,138 |
Rust library to get client information (name, peer ID, key)
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)