btracker-scrape 0.1.0

Shared BitTorrent scrape API for the βtracker project components
Documentation
  • Coverage
  • 0%
    0 out of 8 items documented0 out of 4 items with examples
  • Size
  • Source code size: 11.55 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 386.56 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • YGGverse/btracker-scrape
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • oooo-ps

btracker-scrape

Build Dependencies crates.io

Shared BitTorrent scrape API for the βtracker project components

Install

cargo add btracker-scrape

Usage

let udp_server = vec![
    SocketAddr::V4(SocketAddrV4::new(Ipv4Addr::UNSPECIFIED, 0)),
    SocketAddr::V6(SocketAddrV6::new(Ipv6Addr::UNSPECIFIED, 0, 0, 0))
];

let udp_trackers = vec![
    SocketAddr::V4(SocketAddrV4::new(Ipv4Addr::UNSPECIFIED, 6969))
];

let scrape = Scrape::init(Some(udp_server, udp_trackers));

println!("{:?}", scrape.get([u8; 20])); // hash v1