2 releases (1 stable)

1.0.0 Jun 3, 2022
0.1.0 Mar 3, 2022

#7 in #magnet


Used in libtorrent

MIT license

10KB
84 lines

libtorrent-sys

Rust API / cxx bindings for libtorrent.

All c++ reference can be found in libtorrent reference documentation

Exposed API Reference

  • session
  • add_torrent_params
  • add_torrent_params
  • torrent_handle
  • create_torrent
  • parse_magnet_uri()
  • bencode()

Install

1/ Download or build libtorrent (branch C_2_0)

2/ Build libtorrent-sys:

RUSTFLAGS="-C linker=g++" CXX=g++ cargo build

Dependencies

~0.5–2.1MB
~34K SLoC