libtorrent_dart 0.4.1
libtorrent_dart: ^0.4.1 copied to clipboard
Cross-platform Dart FFI wrapper over libtorrent (libtorrent-rasterbar). Provides full ABI-compatible bindings for sessions, magnet downloads, progress polling, pause/resume/cancel, and settings.
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.
- HTTPS torrents are currently not supported on iOS.
Build #
Build instructions for all supported platforms (macOS, Linux, Windows, Android, iOS) are in: