2 releases (1 stable)

1.0.0 Jun 3, 2022
0.1.0 Mar 3, 2022

#6 in #magnet

33 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–1.3MB
~27K SLoC