2 releases (1 stable)

1.0.0 Jun 3, 2022
0.1.0 Mar 3, 2022

#8 in #magnet

22 downloads per month
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.6–2MB
~32K SLoC