payjoin 0.25.1
payjoin: ^0.25.1 copied to clipboard
Dart bindings for payjoin
Payjoin Dart Bindings #
Welcome to the Dart language bindings for the Payjoin Dev Kit!
Usage #
Install #
dart pub add payjoin
Import #
import 'package:payjoin/payjoin.dart' as payjoin;
For OHTTP relay helpers:
import 'package:payjoin/http.dart' as payjoin_http;
Native build #
The package compiles its Rust library on your machine through a Dart
build hook, with the toolchain named in native/rust-toolchain.toml.
- Hosted releases are locked. A version from pub.dev ships the
native/Cargo.lockit was released with, and the hook builds it with--locked. Every release compiles the same dependency versions, whenever and wherever you build it. - Git dependencies are development builds. A
git:dependency on this repository checks out the monorepo layout, which the hook treats as a development build: it buildspayjoin-ffifrom the checkout, enables test-only helpers and resolves dependencies afresh, without a lockfile. Use a hosted release in production. - Cargo config
rustflagsdo not apply. The hook setsCARGO_ENCODED_RUSTFLAGSto strip build paths from the library, and Cargo then ignoresbuild.rustflagsandtarget.*.rustflagsfrom any Cargo config file for this build.
Made with uniffi-dart