libtorrent_dart
Dart bindings for libtorrent-rasterbar.
This package exposes two entry points:
- High-level wrapper API:
package:libtorrent_dart/libtorrent_dart.dart - Low-level FFI API:
package:libtorrent_dart/libtorrent_dart_ffi.dart
Installation
Add this to your pubspec.yaml:
dependencies:
libtorrent_dart: ^0.4.1
Then run:
dart pub get
The build hook downloads the required native binary for the current package version, platform, and architecture. Native assets are bundled into the consuming application by Dart's build system.
Usage
Check out the example for a quick start.
Libtorrent API parity
Libtorrent API parity is tracked in:
Platforms
- Linux: ARM64 and x64.
- macOS: Apple silicon and Intel.
- Windows: ARM64 and x64.
- Android: ARM64 and x64.
- iOS: ARM64 (build/link validated; runtime untested).
Build
Build instructions for all supported platforms (macOS, Linux, Windows, Android, iOS) are in:
Libraries
- libtorrent_dart
- High-level Dart bindings for libtorrent-rasterbar.