diff --git a/.github/workflows/payjoin-dart-precompile-binaries.yml b/.github/workflows/payjoin-dart-precompile-binaries.yml new file mode 100644 index 000000000..cea2ed2bf --- /dev/null +++ b/.github/workflows/payjoin-dart-precompile-binaries.yml @@ -0,0 +1,95 @@ +name: Precompile Payjoin Dart Binaries + +on: + workflow_call: + secrets: + PRECOMPILED_PRIVATE_KEY: + required: true + workflow_dispatch: + push: + branches: + - master + +permissions: + contents: write + +env: + CRATE_DIR: "native" + CRATE_PACKAGE: "payjoin-ffi-wrapper" + WORK_DIR: "payjoin-ffi/dart" + +jobs: + precompile_macos_ios: + runs-on: macos-latest + env: + PRIVATE_KEY: ${{ secrets.PRECOMPILED_PRIVATE_KEY }} + GH_TOKEN: ${{ github.token }} + GITHUB_TOKEN: ${{ github.token }} + steps: + - uses: actions/checkout@v4 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: 1.85.1 + override: true + - uses: dart-lang/setup-dart@v1 + - uses: subosito/flutter-action@v2 + with: + channel: "stable" + - name: Pub get + working-directory: ${{ env.WORK_DIR }} + run: dart pub get + - name: Precompile (macOS + iOS) + working-directory: ${{ env.WORK_DIR }} + run: | + set -euo pipefail + dart run bin/build_tool.dart precompile-binaries \ + -v \ + --os=macos \ + --manifest-dir="${CRATE_DIR}" \ + --crate-package="${CRATE_PACKAGE}" \ + --repository="${GITHUB_REPOSITORY}" + + precompile_android: + runs-on: ubuntu-latest + env: + PRIVATE_KEY: ${{ secrets.PRECOMPILED_PRIVATE_KEY }} + GH_TOKEN: ${{ github.token }} + GITHUB_TOKEN: ${{ github.token }} + ANDROID_NDK_VERSION: "26.3.11579264" + ANDROID_MIN_SDK: "23" + steps: + - uses: actions/checkout@v4 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: 1.85.1 + override: true + - uses: dart-lang/setup-dart@v1 + - name: Set up Android SDK + uses: android-actions/setup-android@v3 + - name: Install NDK + run: | + set -euo pipefail + sdkmanager --install "ndk;${ANDROID_NDK_VERSION}" + - name: Install cargo-ndk + run: cargo install cargo-ndk --locked --version 3.5.4 + - name: Pub get + working-directory: ${{ env.WORK_DIR }} + run: dart pub get + - name: Precompile (Android) + working-directory: ${{ env.WORK_DIR }} + env: + ANDROID_SDK_ROOT: ${{ env.ANDROID_SDK_ROOT }} + run: | + set -euo pipefail + ANDROID_SDK_ROOT="${ANDROID_SDK_ROOT:-$ANDROID_HOME}" + dart run bin/build_tool.dart precompile-binaries \ + -v \ + --os=android \ + --manifest-dir="${CRATE_DIR}" \ + --crate-package="${CRATE_PACKAGE}" \ + --repository="${GITHUB_REPOSITORY}" \ + --android-sdk-location="${ANDROID_SDK_ROOT}" \ + --android-ndk-version="${ANDROID_NDK_VERSION}" \ + --android-min-sdk-version="${ANDROID_MIN_SDK}" diff --git a/.gitignore b/.gitignore index 1c5d75631..12f268155 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ target !example.config.toml *.sqlite Cargo.lock + .vscode mutants.out* *.ikm diff --git a/payjoin-ffi/dart/.gitignore b/payjoin-ffi/dart/.gitignore index 925c8ad57..2cd8f4c16 100644 --- a/payjoin-ffi/dart/.gitignore +++ b/payjoin-ffi/dart/.gitignore @@ -13,3 +13,7 @@ doc/api/ # Auto-generated bindings lib/payjoin.dart lib/bitcoin.dart + +# Auto-generated precompiled binaries +precompiled_build/ +precompiled_upload/ \ No newline at end of file diff --git a/payjoin-ffi/dart/README.md b/payjoin-ffi/dart/README.md index 000c837b6..f90269313 100644 --- a/payjoin-ffi/dart/README.md +++ b/payjoin-ffi/dart/README.md @@ -2,6 +2,48 @@ Welcome to the Dart language bindings for the [Payjoin Dev Kit](https://payjoindevkit.org/)! +## Using the bindings in your app + +Declare the package as a dependency just like any other Dart package. When developing against the repo directly, point at the local path and let `flutter pub get` (or `dart pub get`) run the build hook: + +```yaml +dependencies: + payjoin: + path: ../rust-payjoin/payjoin-ffi/dart +``` + +The `hook/build.dart` script drives `native_toolchain_rust` (plus the precompiled-binaries helper) so that `flutter pub get` downloads the verified binaries when available or builds the native crate locally on demand. + +If you prefer to inspect or regenerate `payjoin.dart` manually, run the binder script from the `payjoin-ffi/dart` directory: + +```bash +bash ./scripts/generate_bindings.sh +``` + +This produces `lib/payjoin.dart` and the native artifacts under `target/`. These files are not tracked in the repository, so you should regenerate them locally whenever the Rust API changes. + +## Precompiled binaries + +This package supports downloading signed precompiled binaries or building locally via Dart's Native Assets hook. +If precompiled binaries are attempted but unavailable or verification fails, it falls back to building from source. + +### pubspec.yaml configuration + +In your app's `pubspec.yaml`, add the `payjoin` section at the top level (next to `dependencies`), like: + +```yaml +payjoin: + precompiled_binaries: + mode: auto # auto | always | never +``` + +`mode` controls when the precompiled path is used: +- `auto` prefers local builds if Rust toolchain is detected, otherwise uses precompiled binaries +- `always` requires precompiled binaries and skips local builds +- `never` always builds from source via the build hook + +If your tooling must rely on the signed GitHub releases, set `mode: always` and configure `artifact_host`/`public_key` to point at the published assets so `PrecompiledBuilder` can download the `precompiled_` bundles (macOS/iOS + Android builds are published via `.github/workflows/payjoin-dart-precompile-binaries.yml`). + ## Running Tests Follow these steps to clone the repository and run the tests. @@ -16,3 +58,5 @@ bash ./scripts/generate_bindings.sh # Run all tests dart test ``` + +Maintainers: see `docs/precompiled_binaries.md` for CI details, manual release steps, and configuration. diff --git a/payjoin-ffi/dart/bin/build_tool.dart b/payjoin-ffi/dart/bin/build_tool.dart new file mode 100644 index 000000000..9d3f39270 --- /dev/null +++ b/payjoin-ffi/dart/bin/build_tool.dart @@ -0,0 +1,5 @@ +import 'package:payjoin/src/precompiled/cli/cli.dart'; + +Future main(List args) async { + await runCli(args); +} diff --git a/payjoin-ffi/dart/docs/precompiled_binaries.md b/payjoin-ffi/dart/docs/precompiled_binaries.md new file mode 100644 index 000000000..090473f0b --- /dev/null +++ b/payjoin-ffi/dart/docs/precompiled_binaries.md @@ -0,0 +1,87 @@ +# Precompiled binaries (maintainers) + +This document describes how precompiled binaries are built, signed, and published for the Dart package. + +## Overview + +- CI builds and uploads precompiled binaries via a GitHub Actions workflow. +- Artifacts are tagged by the crate hash and uploaded to a GitHub release. +- Each binary is signed with an Ed25519 key; the public key is embedded in `pubspec.yaml`. +- The build hook downloads verified binaries when appropriate and falls back to local builds. + +## Mode behavior + +The `mode` configuration in app `pubspec.yaml` controls fallback behavior: + +- `auto`: prefers local builds if `rustup` is detected; otherwise downloads precompiled binaries. +- `always`: requires precompiled binaries and skips local builds. +- `never`: always builds locally via the standard build hook. + +## CI workflow + +The workflow runs on manual dispatch or on a workflow call. It invokes: + +``` +dart run bin/build_tool.dart precompile-binaries ... +``` + +It builds macOS/iOS and Android targets. + +## Release expectations + +- The workflow creates/releases a GitHub release named `precompiled_`. +- If the release already exists, the workflow uploads missing assets without rebuilding. +- If `gh release view precompiled_` fails locally, rerun `dart run bin/build_tool.dart precompile-binaries ...`. + +## How the download works + +- The crate hash is computed from the Rust crate sources plus the plugin's `precompiled_binaries` config. +- The release tag is `precompiled_`. +- Assets are named `_` with a matching `.sig` file. +- The hook downloads the signature and binary, verifies it, then places it in the build output. +- If any step fails, the hook builds locally via the standard build hook. + +## Manual release (local) + +Required environment variables: + +- `PRIVATE_KEY` (Ed25519 private key, hex-encoded, 64 bytes) +- `GH_TOKEN` or `GITHUB_TOKEN` (GitHub token with release upload permissions) + +Example: + +``` +dart run bin/build_tool.dart precompile-binaries \ + --manifest-dir="native" \ + --crate-package="payjoin-ffi-wrapper" \ + --repository="owner/repo" \ + --os=macos +``` + +## Troubleshooting & ops tips + +- If `gh release view precompiled_` shows a release without expected assets, rerun the build locally. +- A stale crate hash (because sources or `precompiled_binaries` config changed) will point to a release that either doesn't exist yet or lacks current binaries; re-run `dart run bin/build_tool.dart hash --manifest-dir=native` to confirm the hash and rebuild with the same inputs. +- Use `gh release view precompiled_ --json assets --jq '.assets[].name'` to inspect uploaded assets. +- Set `PAYJOIN_DART_PRECOMPILED_VERBOSE=1` to see download and verification details when debugging consumer builds. + +## Configuration knobs + +- `rust-toolchain.toml` controls the Rust channel and target list. +- `pubspec.yaml` under `payjoin.precompiled_binaries` must include: + - `artifact_host` (owner/repo) + - `public_key` (Ed25519 public key, hex-encoded, 32 bytes) + +## Environment, keys, and secrets + +- `PRIVATE_KEY`: 64-byte hex string (Ed25519 private key). Keep it out of source control. +- `PUBLIC_KEY`: Add the matching 32-byte hex public key to `pubspec.yaml`. +- `GH_TOKEN` / `GITHUB_TOKEN`: release upload permissions. +- `PAYJOIN_DART_PRECOMPILED_VERBOSE=1`: optional; shows download and verification details. + +Generate a keypair with `dart run bin/build_tool.dart gen-key` and copy the printed `PRIVATE_KEY`/`PUBLIC_KEY` values. Rotate the pair if you ever suspect the signing key was exposed, and update every release’s config accordingly. + +## Security reminder + +- Treat the `PRIVATE_KEY` used for signing as highly sensitive; do not commit it to version control and rotate it immediately if you suspect compromise. +- Update the public key in `pubspec.yaml` if the private key is rotated so consumers can still verify downloads. diff --git a/payjoin-ffi/dart/hook/build.dart b/payjoin-ffi/dart/hook/build.dart index 6713619be..4128a482f 100644 --- a/payjoin-ffi/dart/hook/build.dart +++ b/payjoin-ffi/dart/hook/build.dart @@ -1,11 +1,29 @@ import 'package:hooks/hooks.dart'; -import 'package:native_toolchain_rust/native_toolchain_rust.dart'; +import 'package:native_toolchain_rust/native_toolchain_rust.dart' as ntr; +import 'package:payjoin/src/precompiled/precompiled_builder.dart'; void main(List args) async { await build(args, (input, output) async { - await RustBuilder( + if (!input.config.linkingEnabled) { + return; + } + final builder = PrecompiledBuilder( assetName: 'uniffi:payjoin_ffi', - features: ['_test-utils'], - ).run(input: input, output: output); + buildModeName: ntr.BuildMode.release.name, + fallback: (input, output, assetRouting, logger) async { + final rustBuilder = ntr.RustBuilder( + assetName: 'uniffi:payjoin_ffi', + buildMode: ntr.BuildMode.release, + features: ['_test-utils'], + ); + await rustBuilder.run( + input: input, + output: output, + assetRouting: assetRouting, + logger: logger, + ); + }, + ); + await builder.run(input: input, output: output); }); } diff --git a/payjoin-ffi/dart/lib/src/precompiled/artifacts_provider.dart b/payjoin-ffi/dart/lib/src/precompiled/artifacts_provider.dart new file mode 100644 index 000000000..3a8d20e23 --- /dev/null +++ b/payjoin-ffi/dart/lib/src/precompiled/artifacts_provider.dart @@ -0,0 +1,190 @@ +import 'dart:io'; + +import 'package:code_assets/code_assets.dart'; +import 'package:ed25519_edwards/ed25519_edwards.dart'; +import 'package:hooks/hooks.dart'; +import 'package:logging/logging.dart'; +import 'package:path/path.dart' as path; + +import 'cargo.dart'; +import 'crate_hash.dart'; +import 'options.dart'; +import 'target.dart'; +import 'util.dart'; + +final _log = Logger('payjoin.artifacts_provider'); + +String? _invokerRootFromOutputDirectory(Uri outputDirectory) { + final parts = path.split(path.fromUri(outputDirectory)); + final dartToolIndex = parts.lastIndexOf('.dart_tool'); + if (dartToolIndex <= 0) { + return null; + } + return path.joinAll(parts.take(dartToolIndex)); +} + +class DownloadedArtifact { + DownloadedArtifact({required this.filePath, required this.dependencies}); + + final String filePath; + final List dependencies; +} + +class PrecompiledBinaryRequiredException implements Exception { + PrecompiledBinaryRequiredException(this.message); + + final String message; + + @override + String toString() => 'PrecompiledBinaryRequiredException: $message'; +} + +class PrecompiledArtifactProvider { + PrecompiledArtifactProvider({ + required this.input, + required this.buildModeName, + required this.crateDir, + }); + + final BuildInput input; + final String buildModeName; + final Directory crateDir; + + Future tryGetPrecompiledArtifact() async { + final pubspecOptions = PubspecOptions.load( + packageRoot: path.fromUri(input.packageRoot), + pluginConfigKey: 'payjoin', + ); + final baseConfig = pubspecOptions.precompiledBinaries; + if (baseConfig == null) { + return null; + } + + final invokerRoot = _invokerRootFromOutputDirectory(input.outputDirectory); + final invokerMode = invokerRoot == null + ? null + : PubspecOptions.loadModeOverride( + packageRoot: invokerRoot, + packageName: input.packageName, + ); + + final precompiled = invokerMode == null + ? baseConfig + : PrecompiledBinariesConfig( + artifactHost: baseConfig.artifactHost, + mode: invokerMode, + publicKey: baseConfig.publicKey, + urlPrefix: baseConfig.urlPrefix, + ); + + if (invokerMode != null) { + _log.info( + 'Using invoker override precompiled_binaries.mode=${invokerMode.name} from $invokerRoot', + ); + } + + if (precompiled.mode == PrecompiledBinaryMode.never) { + _log.info('Precompiled binaries disabled by mode=never'); + return null; + } + + if (precompiled.mode == PrecompiledBinaryMode.auto) { + final userOptions = UserOptions.load(hasConfig: true); + if (!userOptions.usePrecompiledBinaries) { + _log.info( + 'Precompiled binaries disabled (auto mode + local build preferred)', + ); + return null; + } + } + + if (!input.config.buildCodeAssets) { + return null; + } + + final codeConfig = input.config.code; + final crateInfo = CrateInfo.load(crateDir.path); + final targetTriple = codeConfig.targetTriple; + final linkMode = codeConfig.linkMode; + + final outDir = path.join(path.fromUri(input.outputDirectory), 'target'); + final libFileName = codeConfig.targetOS + .libraryFileName(crateInfo.packageName, linkMode) + .replaceAll('-', '_'); + final finalLibPath = path.join( + outDir, + targetTriple, + buildModeName, + libFileName, + ); + + Directory(path.dirname(finalLibPath)).createSync(recursive: true); + + final crateHash = CrateHash.compute(crateDir.path, tempStorage: outDir); + + final remoteFileName = '${targetTriple}_$libFileName'; + final remoteSignatureName = '$remoteFileName.sig'; + + final binaryUrl = precompiled.fileUrl( + crateHash: crateHash, + fileName: remoteFileName, + ); + final signatureUrl = precompiled.fileUrl( + crateHash: crateHash, + fileName: remoteSignatureName, + ); + + final bool requirePrecompiled = + precompiled.mode == PrecompiledBinaryMode.always; + + DownloadedArtifact? handleFailure(String message) { + if (requirePrecompiled) { + throw PrecompiledBinaryRequiredException(message); + } + return null; + } + + _log.info('Downloading signature from $signatureUrl'); + final signatureRes = await httpGetWithRetry(signatureUrl); + if (signatureRes.statusCode == 404) { + _log.info('No precompiled binaries for crate hash $crateHash'); + return handleFailure('No precompiled binaries for crate hash $crateHash'); + } + if (signatureRes.statusCode != 200) { + _log.warning( + 'Failed to download signature: status ${signatureRes.statusCode}', + ); + return handleFailure( + 'Failed to download signature: status ${signatureRes.statusCode}', + ); + } + + _log.info('Downloading binary from $binaryUrl'); + final binaryRes = await httpGetWithRetry(binaryUrl); + if (binaryRes.statusCode != 200) { + _log.warning('Failed to download binary: status ${binaryRes.statusCode}'); + return handleFailure( + 'Failed to download binary: status ${binaryRes.statusCode}', + ); + } + + final ok = verify( + precompiled.publicKey, + binaryRes.bodyBytes, + signatureRes.bodyBytes, + ); + if (!ok) { + _log.warning('Signature verification failed; ignoring binary'); + return handleFailure('Signature verification failed; ignoring binary'); + } + + await writeBytesAtomically(File(finalLibPath), binaryRes.bodyBytes); + _log.info('Verified and wrote precompiled binary to $finalLibPath'); + + final deps = CrateHash.collectFiles( + crateDir.path, + ).map((f) => f.absolute.uri).toList(growable: false); + + return DownloadedArtifact(filePath: finalLibPath, dependencies: deps); + } +} diff --git a/payjoin-ffi/dart/lib/src/precompiled/cargo.dart b/payjoin-ffi/dart/lib/src/precompiled/cargo.dart new file mode 100644 index 000000000..b71764315 --- /dev/null +++ b/payjoin-ffi/dart/lib/src/precompiled/cargo.dart @@ -0,0 +1,35 @@ +import 'dart:io'; + +import 'package:path/path.dart' as path; + +class CrateInfo { + CrateInfo({required this.packageName}); + + final String packageName; + + static CrateInfo load(String manifestDir) { + final manifestFile = File(path.join(manifestDir, 'Cargo.toml')); + final manifest = manifestFile.readAsStringSync(); + final lines = manifest.split('\n'); + var inPackage = false; + for (final raw in lines) { + final line = raw.trim(); + if (line.startsWith('[') && line.endsWith(']')) { + inPackage = line == '[package]'; + continue; + } + if (!inPackage) continue; + if (line.startsWith('name')) { + final parts = line.split('='); + if (parts.length >= 2) { + final value = parts.sublist(1).join('=').trim(); + final m = RegExp(r'^"(.+)"$').firstMatch(value); + if (m != null) { + return CrateInfo(packageName: m.group(1)!); + } + } + } + } + throw StateError('Failed to determine crate name from Cargo.toml'); + } +} diff --git a/payjoin-ffi/dart/lib/src/precompiled/cli/cli.dart b/payjoin-ffi/dart/lib/src/precompiled/cli/cli.dart new file mode 100644 index 000000000..cf7cc02ea --- /dev/null +++ b/payjoin-ffi/dart/lib/src/precompiled/cli/cli.dart @@ -0,0 +1,55 @@ +import 'dart:io'; + +import 'commands/gen_key.dart' as gen_key; +import 'commands/hash.dart' as hash; +import 'commands/precompile_binaries.dart' as precompile_binaries; +import 'commands/sign.dart' as sign_cmd; +import 'commands/targets.dart' as targets; + +Future runCli(List args) async { + if (args.isEmpty) { + _printUsage(); + exitCode = 2; + return; + } + + final command = args[0]; + final commandArgs = args.sublist(1); + + switch (command) { + case 'precompile-binaries': + await precompile_binaries.run(commandArgs); + return; + case 'hash': + await hash.run(commandArgs); + return; + case 'targets': + await targets.run(commandArgs); + return; + case 'sign': + await sign_cmd.run(commandArgs); + return; + case 'gen-key': + await gen_key.run(commandArgs); + return; + default: + stderr.writeln('Unknown command: $command'); + _printUsage(); + exitCode = 2; + } +} + +void _printUsage() { + stdout.writeln(''' +Usage: dart run payjoin [options] + +Commands: + precompile-binaries Precompile binaries for all targets + hash Compute crate hash + targets Resolve toolchain targets + sign Sign a file + gen-key Generate Ed25519 keypair + +Run 'dart run payjoin --help' for command-specific help. +'''); +} diff --git a/payjoin-ffi/dart/lib/src/precompiled/cli/commands/gen_key.dart b/payjoin-ffi/dart/lib/src/precompiled/cli/commands/gen_key.dart new file mode 100644 index 000000000..df9d3246b --- /dev/null +++ b/payjoin-ffi/dart/lib/src/precompiled/cli/commands/gen_key.dart @@ -0,0 +1,15 @@ +import 'dart:io'; + +import 'package:ed25519_edwards/ed25519_edwards.dart'; +import 'package:payjoin/src/precompiled/util.dart'; + +Future run(List args) async { + if (args.contains('--help') || args.contains('-h')) { + return; + } + final kp = generateKey(); + final privateHex = hexEncode(kp.privateKey.bytes); + final publicHex = hexEncode(kp.publicKey.bytes); + stdout.writeln('PRIVATE_KEY=$privateHex'); + stdout.writeln('PUBLIC_KEY=$publicHex'); +} diff --git a/payjoin-ffi/dart/lib/src/precompiled/cli/commands/hash.dart b/payjoin-ffi/dart/lib/src/precompiled/cli/commands/hash.dart new file mode 100644 index 000000000..2710f4172 --- /dev/null +++ b/payjoin-ffi/dart/lib/src/precompiled/cli/commands/hash.dart @@ -0,0 +1,55 @@ +import 'dart:io'; + +import 'package:payjoin/src/precompiled/crate_hash.dart'; + +Future run(List args) async { + String? manifestDir; + var debug = false; + var list = false; + + for (final arg in args) { + if (arg == '--debug') { + debug = true; + continue; + } + if (arg == '--list') { + list = true; + continue; + } + if (arg.startsWith('--manifest-dir=')) { + manifestDir = arg.substring('--manifest-dir='.length).trim(); + continue; + } + if (arg == '--help' || arg == '-h') { + stdout.writeln('Usage: hash --manifest-dir= [--debug] [--list]'); + return; + } + if (arg.trim().isEmpty) continue; + stderr.writeln('Unknown argument: $arg'); + exitCode = 2; + return; + } + + if (manifestDir == null || manifestDir.trim().isEmpty) { + stderr.writeln('Missing --manifest-dir'); + exitCode = 2; + return; + } + if (!Directory(manifestDir).existsSync()) { + stderr.writeln('Manifest directory not found: $manifestDir'); + exitCode = 1; + return; + } + + if (debug || list) { + final files = CrateHash.collectFiles(manifestDir); + for (final file in files) { + if (list) { + stderr.writeln(file.path); + } else { + stderr.writeln('${file.path}'); + } + } + } + stdout.write(CrateHash.compute(manifestDir)); +} diff --git a/payjoin-ffi/dart/lib/src/precompiled/cli/commands/precompile_binaries.dart b/payjoin-ffi/dart/lib/src/precompiled/cli/commands/precompile_binaries.dart new file mode 100644 index 000000000..94cb6fd6c --- /dev/null +++ b/payjoin-ffi/dart/lib/src/precompiled/cli/commands/precompile_binaries.dart @@ -0,0 +1,448 @@ +import 'dart:convert'; +import 'dart:io'; + +import 'package:ed25519_edwards/ed25519_edwards.dart'; +import 'package:path/path.dart' as p; +import 'package:payjoin/src/precompiled/crate_hash.dart'; +import 'package:payjoin/src/precompiled/rust_toolchain.dart'; +import 'package:payjoin/src/precompiled/util.dart'; + +import '../support/os.dart'; +import '../support/process.dart'; + +Future run(List args) async { + String? manifestDir; + String? cratePackage; + String? repository; + String? os; + String? androidSdkLocation; + String? androidNdkVersion; + String? androidMinSdkVersion; + var verbose = false; + + for (final arg in args) { + if (arg == '--help' || arg == '-h') { + stdout.writeln(''' +Usage: precompile-binaries [options] + +Options: + --manifest-dir= Rust crate directory (required) + --crate-package= Cargo package name (required) + --repository= GitHub repository for releases (required) + --os= macos | linux | windows | android | ios | all (default: current) + --android-sdk-location= Android SDK root (required when --os=android) + --android-ndk-version= NDK version folder name (required when --os=android) + --android-min-sdk-version= Android minSdkVersion (required when --os=android) + -v, --verbose Verbose output +'''); + return; + } + if (arg == '-v' || arg == '--verbose') { + verbose = true; + continue; + } + if (arg.startsWith('--manifest-dir=')) { + manifestDir = arg.substring('--manifest-dir='.length).trim(); + continue; + } + if (arg.startsWith('--crate-package=')) { + cratePackage = arg.substring('--crate-package='.length).trim(); + continue; + } + if (arg.startsWith('--repository=')) { + repository = arg.substring('--repository='.length).trim(); + continue; + } + if (arg.startsWith('--os=')) { + os = arg.substring('--os='.length).trim(); + continue; + } + if (arg.startsWith('--android-sdk-location=')) { + androidSdkLocation = arg + .substring('--android-sdk-location='.length) + .trim(); + continue; + } + if (arg.startsWith('--android-ndk-version=')) { + androidNdkVersion = arg.substring('--android-ndk-version='.length).trim(); + continue; + } + if (arg.startsWith('--android-min-sdk-version=')) { + androidMinSdkVersion = arg + .substring('--android-min-sdk-version='.length) + .trim(); + continue; + } + if (arg.trim().isEmpty) continue; + stderr.writeln('Unknown argument: $arg'); + exitCode = 2; + return; + } + + if (manifestDir == null || manifestDir.trim().isEmpty) { + stderr.writeln('Missing --manifest-dir'); + exitCode = 2; + return; + } + final manifestDirNormalized = manifestDir.trim(); + final manifestPath = Directory(manifestDirNormalized).absolute.path; + if (cratePackage == null || cratePackage.trim().isEmpty) { + stderr.writeln('Missing --crate-package'); + exitCode = 2; + return; + } + if (repository == null || repository.trim().isEmpty) { + stderr.writeln('Missing --repository'); + exitCode = 2; + return; + } + os ??= Platform.operatingSystem; + + final normalizedOs = normalizeOs(os); + if (normalizedOs == null && os.trim().toLowerCase() != 'all') { + stderr.writeln('Unsupported --os=$os'); + exitCode = 2; + return; + } + + if (verbose) { + stderr.writeln( + 'Precompiling binaries for manifest: $manifestDirNormalized', + ); + stderr.writeln('Crate package: $cratePackage'); + stderr.writeln('Repository: $repository'); + stderr.writeln('OS filter: ${normalizedOs ?? 'all'}'); + } + + final toolchain = RustToolchain.load(manifestPath); + final crateHash = CrateHash.compute(manifestPath); + final tag = 'precompiled_$crateHash'; + + final privateKeyHex = Platform.environment['PRIVATE_KEY']; + if (privateKeyHex == null) { + stderr.writeln('Missing PRIVATE_KEY environment variable'); + exitCode = 2; + return; + } + final privateKeyBytes = decodeHex(privateKeyHex); + if (privateKeyBytes.length != 64) { + stderr.writeln('PRIVATE_KEY must be 64 bytes (hex-encoded)'); + exitCode = 2; + return; + } + final privateKey = PrivateKey(privateKeyBytes); + + final ghToken = + Platform.environment['GH_TOKEN'] ?? + Platform.environment['GITHUB_TOKEN'] ?? + Platform.environment['GITHUB_TOKEN'.toUpperCase()]; + if (ghToken == null || ghToken.trim().isEmpty) { + stderr.writeln('Missing GH_TOKEN/GITHUB_TOKEN for GitHub release upload'); + exitCode = 2; + return; + } + + final targets = normalizedOs == null + ? toolchain.targets + : toolchain.targetsForOs(normalizedOs); + if (targets.isEmpty) { + stderr.writeln( + 'No toolchain targets found for os=${normalizedOs ?? 'all'}', + ); + exitCode = 1; + return; + } + + String? abiForTarget(String t) => switch (t) { + 'armv7-linux-androideabi' => 'armeabi-v7a', + 'aarch64-linux-android' => 'arm64-v8a', + 'x86_64-linux-android' => 'x86_64', + _ => null, + }; + + final buildableTargets = normalizedOs == 'android' + ? targets.where((t) => abiForTarget(t) != null).toList(growable: false) + : List.from(targets); + + final releaseHasAssets = buildableTargets.isNotEmpty + ? await _releaseHasAllAssets( + tag: tag, + targets: buildableTargets, + repository: repository, + ) + : false; + + final buildDir = Directory('precompiled_build'); + final uploadDir = Directory('precompiled_upload'); + final buildDirAbs = Directory( + p.join(Directory.current.absolute.path, buildDir.path), + ); + final uploadDirAbs = Directory( + p.join(Directory.current.absolute.path, uploadDir.path), + ); + + await _ensureReleaseExists( + tag: tag, + crateHash: crateHash, + repository: repository, + ); + if (releaseHasAssets) { + if (verbose) { + stderr.writeln( + 'Release $tag already contains assets for ${buildableTargets.join(', ')}; skipping build.', + ); + } + return; + } + + if (buildDirAbs.existsSync()) buildDirAbs.deleteSync(recursive: true); + if (uploadDirAbs.existsSync()) uploadDirAbs.deleteSync(recursive: true); + buildDirAbs.createSync(recursive: true); + uploadDirAbs.createSync(recursive: true); + + final crateFileBase = cratePackage.replaceAll('-', '_'); + + if (normalizedOs == 'android') { + if (androidSdkLocation == null || androidSdkLocation.trim().isEmpty) { + stderr.writeln( + 'Missing --android-sdk-location (required for --os=android)', + ); + exitCode = 2; + return; + } + if (androidNdkVersion == null || androidNdkVersion.trim().isEmpty) { + stderr.writeln( + 'Missing --android-ndk-version (required for --os=android)', + ); + exitCode = 2; + return; + } + if (androidMinSdkVersion == null || androidMinSdkVersion.trim().isEmpty) { + stderr.writeln( + 'Missing --android-min-sdk-version (required for --os=android)', + ); + exitCode = 2; + return; + } + + final ndkHome = '$androidSdkLocation/ndk/$androidNdkVersion'; + final env = { + ...Platform.environment, + 'ANDROID_SDK_ROOT': androidSdkLocation, + 'ANDROID_NDK_HOME': ndkHome, + 'ANDROID_NDK_ROOT': ndkHome, + }; + + final buildOut = Directory(p.join(buildDirAbs.path, 'android')); + buildOut.createSync(recursive: true); + + String? abiForTarget(String t) => switch (t) { + 'armv7-linux-androideabi' => 'armeabi-v7a', + 'aarch64-linux-android' => 'arm64-v8a', + 'x86_64-linux-android' => 'x86_64', + _ => null, + }; + + for (final target in buildableTargets) { + final abi = abiForTarget(target)!; + if (verbose) + stderr.writeln('Building Android target: $target (abi=$abi)'); + + await runOrThrow( + 'rustup', + ['target', 'add', target, '--toolchain', toolchain.channel], + verbose: verbose, + environment: env, + ); + + await runOrThrow( + 'rustup', + [ + 'run', + toolchain.channel, + 'cargo', + 'ndk', + '--platform', + androidMinSdkVersion, + '-t', + abi, + '-o', + buildOut.absolute.path, + 'build', + '--package', + cratePackage, + '--release', + '--locked', + ], + verbose: verbose, + environment: env, + workingDirectory: manifestPath, + ); + + final soPath = p.join(buildOut.path, abi, 'lib$crateFileBase.so'); + final soFile = File(soPath); + if (!soFile.existsSync()) { + stderr.writeln('Expected Android artifact not found: $soPath'); + exitCode = 1; + return; + } + + final outPath = p.join( + uploadDirAbs.path, + '${target}_lib$crateFileBase.so', + ); + final outFile = File(outPath)..writeAsBytesSync(soFile.readAsBytesSync()); + final sig = sign(privateKey, outFile.readAsBytesSync()); + File('$outPath.sig').writeAsBytesSync(sig); + if (verbose) stderr.writeln('Prepared: $outPath (+ .sig)'); + } + } else { + for (final target in buildableTargets) { + if (verbose) stderr.writeln('Building target: $target'); + await runOrThrow('rustup', [ + 'target', + 'add', + target, + '--toolchain', + toolchain.channel, + ], verbose: verbose); + await runOrThrow( + 'rustup', + [ + 'run', + toolchain.channel, + 'cargo', + 'build', + '--manifest-path', + '$manifestPath/Cargo.toml', + '--package', + cratePackage, + '--release', + '--locked', + '--target', + target, + '--target-dir', + buildDirAbs.path, + ], + verbose: verbose, + workingDirectory: manifestPath, + ); + + final artDir = Directory(p.join(buildDirAbs.path, target, 'release')); + if (!artDir.existsSync()) { + stderr.writeln('Missing artifact directory: ${artDir.path}'); + exitCode = 1; + return; + } + + final artifacts = []; + for (final ent in artDir.listSync(followLinks: false)) { + if (ent is! File) continue; + final name = ent.uri.pathSegments.last; + final ok = + name.startsWith('lib$crateFileBase.') || + name.startsWith('$crateFileBase.') || + name == 'lib$crateFileBase.a'; + if (ok) artifacts.add(ent); + } + + if (artifacts.isEmpty) { + stderr.writeln( + 'No artifacts found in ${artDir.path} for $cratePackage', + ); + exitCode = 1; + return; + } + + for (final file in artifacts) { + final base = file.uri.pathSegments.last; + final outPath = p.join(uploadDirAbs.path, '${target}_$base'); + final outFile = File(outPath); + outFile.writeAsBytesSync(file.readAsBytesSync()); + final sig = sign(privateKey, outFile.readAsBytesSync()); + File('$outPath.sig').writeAsBytesSync(sig); + if (verbose) stderr.writeln('Prepared: $outPath (+ .sig)'); + } + } + } + + await runOrThrow('gh', [ + 'release', + 'upload', + '--repo', + repository, + tag, + '${uploadDirAbs.path}/*', + '--clobber', + ], verbose: verbose); +} + +Future _ensureReleaseExists({ + required String tag, + required String crateHash, + required String repository, +}) async { + final view = await Process.run('gh', ['release', 'view', tag]); + if (view.exitCode == 0) return; + final create = await Process.run('gh', [ + 'release', + 'create', + tag, + '--repo', + repository, + '--title', + 'Precompiled binaries $crateHash', + '--notes', + 'Precompiled binaries for crate hash $crateHash.', + ]); + stdout.write(create.stdout); + stderr.write(create.stderr); + if (create.exitCode != 0) { + exitCode = create.exitCode; + throw StateError('Failed to create release $tag'); + } +} + +Future _releaseHasAllAssets({ + required String tag, + required List targets, + required String repository, +}) async { + final view = await Process.run('gh', [ + 'release', + 'view', + tag, + '--repo', + repository, + '--json', + 'assets', + '--jq', + '.assets[].name', + ]); + if (view.exitCode != 0) { + return false; + } + final output = view.stdout.toString(); + final assets = LineSplitter.split( + output, + ).map((name) => name.trim()).where((name) => name.isNotEmpty).toSet(); + if (assets.isEmpty) { + return false; + } + + for (final target in targets) { + final prefix = '${target}_'; + final binaryNames = assets + .where((name) => name.startsWith(prefix) && !name.endsWith('.sig')) + .toList(); + if (binaryNames.isEmpty) { + return false; + } + final hasPair = binaryNames.any((name) => assets.contains('$name.sig')); + if (!hasPair) { + return false; + } + } + + return true; +} diff --git a/payjoin-ffi/dart/lib/src/precompiled/cli/commands/sign.dart b/payjoin-ffi/dart/lib/src/precompiled/cli/commands/sign.dart new file mode 100644 index 000000000..8f1905723 --- /dev/null +++ b/payjoin-ffi/dart/lib/src/precompiled/cli/commands/sign.dart @@ -0,0 +1,40 @@ +import 'dart:io'; + +import 'package:ed25519_edwards/ed25519_edwards.dart'; +import 'package:payjoin/src/precompiled/util.dart'; + +Future run(List args) async { + if (args.length != 2 || args.contains('--help') || args.contains('-h')) { + stderr.writeln('Usage: sign '); + if (args.contains('--help') || args.contains('-h')) return; + exitCode = 2; + return; + } + + final privateKeyHex = Platform.environment['PRIVATE_KEY']; + if (privateKeyHex == null) { + stderr.writeln('Missing PRIVATE_KEY environment variable'); + exitCode = 2; + return; + } + final privateKeyBytes = decodeHex(privateKeyHex); + if (privateKeyBytes.length != 64) { + stderr.writeln('PRIVATE_KEY must be 64 bytes (hex-encoded)'); + exitCode = 2; + return; + } + + final inputFile = File(args[0]); + if (!inputFile.existsSync()) { + stderr.writeln('Input file does not exist: ${inputFile.path}'); + exitCode = 1; + return; + } + + final outFile = File(args[1]); + outFile.parent.createSync(recursive: true); + + final data = inputFile.readAsBytesSync(); + final signature = sign(PrivateKey(privateKeyBytes), data); + outFile.writeAsBytesSync(signature); +} diff --git a/payjoin-ffi/dart/lib/src/precompiled/cli/commands/targets.dart b/payjoin-ffi/dart/lib/src/precompiled/cli/commands/targets.dart new file mode 100644 index 000000000..0fdf689dd --- /dev/null +++ b/payjoin-ffi/dart/lib/src/precompiled/cli/commands/targets.dart @@ -0,0 +1,69 @@ +import 'dart:io'; + +import 'package:payjoin/src/precompiled/rust_toolchain.dart'; + +import '../support/os.dart'; + +Future run(List args) async { + String? os; + String? manifestDir; + var printChannel = false; + + for (final arg in args) { + if (arg.startsWith('--os=')) { + os = arg.substring('--os='.length).trim(); + continue; + } + if (arg.startsWith('--manifest-dir=')) { + manifestDir = arg.substring('--manifest-dir='.length).trim(); + continue; + } + if (arg == '--channel') { + printChannel = true; + continue; + } + if (arg == '--help' || arg == '-h') { + stdout.writeln( + 'Usage: targets --manifest-dir= [--os=macos] [--channel]', + ); + return; + } + if (arg.trim().isEmpty) continue; + stderr.writeln('Unknown argument: $arg'); + exitCode = 2; + return; + } + + if (manifestDir == null || manifestDir.trim().isEmpty) { + stderr.writeln('Missing --manifest-dir'); + exitCode = 2; + return; + } + + try { + final toolchain = RustToolchain.load(manifestDir); + if (printChannel) { + stdout.write(toolchain.channel); + return; + } + final targets = toolchain.targets; + if (targets.isEmpty) { + stderr.writeln('No targets found in rust-toolchain.toml'); + exitCode = 1; + return; + } + final normalized = normalizeOs(os ?? Platform.operatingSystem); + final filtered = normalized == null + ? targets + : toolchain.targetsForOs(normalized); + if (filtered.isEmpty) { + stderr.writeln('No targets match os=${normalized ?? 'all'}'); + exitCode = 1; + return; + } + stdout.write(filtered.join(' ')); + } catch (e) { + stderr.writeln('Error: $e'); + exitCode = 1; + } +} diff --git a/payjoin-ffi/dart/lib/src/precompiled/cli/support/os.dart b/payjoin-ffi/dart/lib/src/precompiled/cli/support/os.dart new file mode 100644 index 000000000..330709272 --- /dev/null +++ b/payjoin-ffi/dart/lib/src/precompiled/cli/support/os.dart @@ -0,0 +1,12 @@ +String? normalizeOs(String raw) { + final v = raw.trim().toLowerCase(); + return switch (v) { + 'linux' || 'ubuntu-latest' => 'linux', + 'macos' || 'darwin' || 'macos-latest' => 'macos', + 'windows' || 'windows-latest' => 'windows', + 'android' => 'android', + 'ios' => 'ios', + 'all' => null, + _ => v.isEmpty ? null : v, + }; +} diff --git a/payjoin-ffi/dart/lib/src/precompiled/cli/support/process.dart b/payjoin-ffi/dart/lib/src/precompiled/cli/support/process.dart new file mode 100644 index 000000000..e21b67544 --- /dev/null +++ b/payjoin-ffi/dart/lib/src/precompiled/cli/support/process.dart @@ -0,0 +1,23 @@ +import 'dart:io'; + +Future runOrThrow( + String exe, + List args, { + required bool verbose, + Map? environment, + String? workingDirectory, +}) async { + if (verbose) stderr.writeln('> $exe ${args.join(' ')}'); + final res = await Process.run( + exe, + args, + environment: environment, + workingDirectory: workingDirectory, + ); + stdout.write(res.stdout); + stderr.write(res.stderr); + if (res.exitCode != 0) { + exitCode = res.exitCode; + throw StateError('Command failed: $exe ${args.join(' ')}'); + } +} diff --git a/payjoin-ffi/dart/lib/src/precompiled/crate_hash.dart b/payjoin-ffi/dart/lib/src/precompiled/crate_hash.dart new file mode 100644 index 000000000..1dc6c8ed6 --- /dev/null +++ b/payjoin-ffi/dart/lib/src/precompiled/crate_hash.dart @@ -0,0 +1,163 @@ +import 'dart:convert'; +import 'dart:io'; +import 'dart:typed_data'; + +import 'package:convert/convert.dart'; +import 'package:crypto/crypto.dart'; +import 'package:path/path.dart' as path; +import 'package:yaml/yaml.dart'; + +class CrateHash { + static String compute(String manifestDir, {String? tempStorage}) { + return CrateHash._( + manifestDir: manifestDir, + tempStorage: tempStorage, + )._compute(); + } + + CrateHash._({required this.manifestDir, required this.tempStorage}); + + final String manifestDir; + final String? tempStorage; + + static List collectFiles(String manifestDir) { + return CrateHash._(manifestDir: manifestDir, tempStorage: null)._getFiles(); + } + + String _compute() { + final files = _getFiles(); + final tempStorage = this.tempStorage; + if (tempStorage != null) { + final quickHash = _computeQuickHash(files); + final quickHashFolder = Directory(path.join(tempStorage, 'crate_hash')); + quickHashFolder.createSync(recursive: true); + final quickHashFile = File(path.join(quickHashFolder.path, quickHash)); + if (quickHashFile.existsSync()) { + return quickHashFile.readAsStringSync(); + } + final hash = _computeHash(files); + quickHashFile.writeAsStringSync(hash); + return hash; + } + return _computeHash(files); + } + + String _computeQuickHash(List files) { + final output = AccumulatorSink(); + final input = sha256.startChunkedConversion(output); + + final data = ByteData(8); + for (final file in files) { + input.add(utf8.encode(file.path)); + final stat = file.statSync(); + data.setUint64(0, stat.size); + input.add(data.buffer.asUint8List()); + data.setUint64(0, stat.modified.millisecondsSinceEpoch); + input.add(data.buffer.asUint8List()); + } + + input.close(); + return base64Url.encode(output.events.single.bytes); + } + + String _computeHash(List files) { + final output = AccumulatorSink(); + final input = sha256.startChunkedConversion(output); + + void addTextFile(File file) { + final splitter = const LineSplitter(); + if (file.existsSync()) { + final data = file.readAsStringSync(); + final lines = splitter.convert(data); + for (final line in lines) { + input.add(utf8.encode(line)); + } + } + } + + void addPrecompiledBinariesFromPubspec(File file) { + if (!file.existsSync()) { + return; + } + final yamlContent = file.readAsStringSync(); + final doc = loadYaml(yamlContent); + final extensionSection = doc is YamlMap ? doc['payjoin'] : null; + final precompiled = extensionSection is YamlMap + ? extensionSection['precompiled_binaries'] + : null; + final normalized = _normalizeYaml(precompiled ?? {}); + input.add(utf8.encode('pubspec.yaml:payjoin.precompiled_binaries:')); + input.add(utf8.encode(jsonEncode(normalized))); + } + + final rootDir = path.normalize(path.join(manifestDir, '../')); + final pubspecFile = File(path.join(rootDir, 'pubspec.yaml')); + addPrecompiledBinariesFromPubspec(pubspecFile); + + for (final file in files) { + addTextFile(file); + } + + input.close(); + final res = output.events.single; + final hash = res.bytes.sublist(0, 16); + return _hexEncode(hash); + } + + String _hexEncode(List bytes) { + final b = StringBuffer(); + for (final v in bytes) { + b.write(v.toRadixString(16).padLeft(2, '0')); + } + return b.toString(); + } + + Object? _normalizeYaml(Object? value) { + if (value is YamlMap) { + final keys = value.keys.map((key) => key.toString()).toList()..sort(); + final result = {}; + for (final key in keys) { + result[key] = _normalizeYaml(value[key]); + } + return result; + } + if (value is YamlList) { + return value.map(_normalizeYaml).toList(); + } + if (value is Map) { + final keys = value.keys.map((key) => key.toString()).toList()..sort(); + final result = {}; + for (final key in keys) { + result[key] = _normalizeYaml(value[key]); + } + return result; + } + if (value is List) { + return value.map(_normalizeYaml).toList(); + } + return value; + } + + List _getFiles() { + final src = Directory(path.join(manifestDir, 'src')); + final files = src.existsSync() + ? src + .listSync(recursive: true, followLinks: false) + .whereType() + .toList() + : []; + files.sort((a, b) => a.path.compareTo(b.path)); + + void addFileInCrate(String relative) { + final file = File(path.join(manifestDir, relative)); + if (file.existsSync()) { + files.add(file); + } + } + + addFileInCrate('Cargo.toml'); + addFileInCrate('Cargo.lock'); + addFileInCrate('build.rs'); + return files; + } +} diff --git a/payjoin-ffi/dart/lib/src/precompiled/options.dart b/payjoin-ffi/dart/lib/src/precompiled/options.dart new file mode 100644 index 000000000..62a231db0 --- /dev/null +++ b/payjoin-ffi/dart/lib/src/precompiled/options.dart @@ -0,0 +1,264 @@ +import 'dart:io'; + +import 'package:ed25519_edwards/ed25519_edwards.dart'; +import 'package:path/path.dart' as path; +import 'package:yaml/yaml.dart'; + +import 'util.dart'; + +enum PrecompiledBinaryMode { auto, always, never } + +class PrecompiledBinariesConfig { + PrecompiledBinariesConfig({ + required this.artifactHost, + required this.mode, + required this.publicKey, + this.urlPrefix, + }); + + final String artifactHost; + final PrecompiledBinaryMode mode; + final String? urlPrefix; + final PublicKey publicKey; + + Uri fileUrl({required String crateHash, required String fileName}) { + final prefix = urlPrefix; + if (prefix != null && prefix.isNotEmpty) { + return Uri.parse('$prefix$crateHash/$fileName'); + } + final tag = 'precompiled_$crateHash'; + return Uri.parse( + 'https://github.com/$artifactHost/releases/download/$tag/$fileName', + ); + } + + static PrecompiledBinariesConfig parse(YamlNode node) { + if (node is! YamlMap) { + throw FormatException('precompiled_binaries must be a map'); + } + + String? urlPrefix; + final urlPrefixNode = node.nodes['url_prefix']; + if (urlPrefixNode != null) { + if (urlPrefixNode is! YamlScalar || urlPrefixNode.value is! String) { + throw FormatException( + 'precompiled_binaries.url_prefix must be a string', + ); + } + urlPrefix = urlPrefixNode.value as String; + } + + PrecompiledBinaryMode mode = PrecompiledBinaryMode.auto; + final modeNode = node.nodes['mode']; + if (modeNode != null) { + if (modeNode is! YamlScalar || modeNode.value is! String) { + throw FormatException('precompiled_binaries.mode must be a string'); + } + final m = (modeNode.value as String).trim(); + final parsed = _parsePrecompiledBinaryMode(m); + if (parsed == null) { + throw FormatException( + 'precompiled_binaries.mode must be one of: auto, always, never (aliases: download->always, build->never)', + ); + } + mode = parsed; + } + + final artifactHostNode = node.nodes['artifact_host']; + final releaseRepoNode = node.nodes['release_repo']; + + final publicKeyNode = node.nodes['public_key']; + + String? artifactHost; + if (artifactHostNode != null) { + if (artifactHostNode is! YamlScalar || + artifactHostNode.value is! String) { + throw FormatException( + 'precompiled_binaries.artifact_host must be a string', + ); + } + artifactHost = (artifactHostNode.value as String).trim(); + } + if (artifactHost == null && releaseRepoNode != null) { + if (releaseRepoNode is! YamlScalar || releaseRepoNode.value is! String) { + throw FormatException( + 'precompiled_binaries.release_repo must be a string', + ); + } + artifactHost = (releaseRepoNode.value as String).trim(); + } + + if ((urlPrefix == null || urlPrefix.isEmpty) && + (artifactHost == null || artifactHost.isEmpty)) { + throw FormatException( + 'precompiled_binaries must specify either url_prefix or artifact_host', + ); + } + + artifactHost ??= ''; + final normalizedArtifactHost = artifactHost.isEmpty + ? '' + : _normalizeOwnerRepo(artifactHost); + if (artifactHost.isNotEmpty && normalizedArtifactHost == null) { + throw FormatException( + 'precompiled_binaries.artifact_host must be in owner/repo format (or github.com/owner/repo)', + ); + } + + if (publicKeyNode is! YamlScalar || publicKeyNode.value is! String) { + throw FormatException('precompiled_binaries.public_key must be a string'); + } + final keyBytes = decodeHex(publicKeyNode.value as String); + if (keyBytes.length != 32) { + throw FormatException('public_key must be 32 bytes'); + } + return PrecompiledBinariesConfig( + artifactHost: normalizedArtifactHost ?? '', + mode: mode, + publicKey: PublicKey(keyBytes), + urlPrefix: urlPrefix, + ); + } +} + +String? _normalizeOwnerRepo(String raw) { + var v = raw.trim(); + v = v.replaceFirst(RegExp(r'^https?://'), ''); + v = v.replaceFirst(RegExp(r'^github\.com/'), ''); + v = v.replaceAll(RegExp(r'/+$'), ''); + final parts = v.split('/'); + if (parts.length != 2) { + return null; + } + if (parts[0].isEmpty || parts[1].isEmpty) { + return null; + } + return '${parts[0]}/${parts[1]}'; +} + +class PubspecOptions { + PubspecOptions({required this.precompiledBinaries}); + + final PrecompiledBinariesConfig? precompiledBinaries; + + static YamlNode? _findPrecompiledBinariesNode( + YamlMap root, { + required String configKey, + }) { + final key = configKey.trim(); + if (key.isEmpty) { + return null; + } + final packageNode = root.nodes[key]; + if (packageNode is! YamlMap) { + return null; + } + return packageNode.nodes['precompiled_binaries']; + } + + static PrecompiledBinaryMode? loadModeOverride({ + required String packageRoot, + required String packageName, + }) { + final file = File(path.join(packageRoot, 'pubspec.yaml')); + if (!file.existsSync()) { + return null; + } + final root = loadYamlNode(file.readAsStringSync(), sourceUrl: file.uri); + if (root is! YamlMap) { + throw FormatException('pubspec.yaml must be a map'); + } + + final node = _findPrecompiledBinariesNode(root, configKey: packageName); + if (node == null) { + return null; + } + if (node is! YamlMap) { + throw FormatException('precompiled_binaries must be a map'); + } + + final modeNode = node.nodes['mode']; + if (modeNode == null) { + return null; + } + if (modeNode is! YamlScalar || modeNode.value is! String) { + throw FormatException('precompiled_binaries.mode must be a string'); + } + + final m = (modeNode.value as String).trim(); + final parsed = _parsePrecompiledBinaryMode(m); + if (parsed == null) { + throw FormatException( + 'precompiled_binaries.mode must be one of: auto, always, never (aliases: download->always, build->never)', + ); + } + return parsed; + } + + static PubspecOptions load({ + required String packageRoot, + required String pluginConfigKey, + }) { + final file = File(path.join(packageRoot, 'pubspec.yaml')); + if (!file.existsSync()) { + return PubspecOptions(precompiledBinaries: null); + } + final root = loadYamlNode(file.readAsStringSync(), sourceUrl: file.uri); + if (root is! YamlMap) { + throw FormatException('pubspec.yaml must be a map'); + } + final node = _findPrecompiledBinariesNode(root, configKey: pluginConfigKey); + + if (node == null) { + return PubspecOptions(precompiledBinaries: null); + } + + return PubspecOptions( + precompiledBinaries: PrecompiledBinariesConfig.parse(node), + ); + } +} + +class UserOptions { + UserOptions({required this.usePrecompiledBinaries}); + + final bool usePrecompiledBinaries; + + static bool _rustupExists() { + final envPath = Platform.environment['PATH']; + final envPathSeparator = Platform.isWindows ? ';' : ':'; + final home = Platform.isWindows + ? Platform.environment['USERPROFILE'] + : Platform.environment['HOME']; + final paths = [ + if (home != null) path.join(home, '.cargo', 'bin'), + if (envPath != null) ...envPath.split(envPathSeparator), + ]; + for (final p in paths) { + final rustup = Platform.isWindows ? 'rustup.exe' : 'rustup'; + if (File(path.join(p, rustup)).existsSync()) { + return true; + } + } + return false; + } + + static bool defaultUsePrecompiledBinaries() => !_rustupExists(); + + static UserOptions load({required bool hasConfig}) { + if (!hasConfig) { + return UserOptions(usePrecompiledBinaries: false); + } + return UserOptions(usePrecompiledBinaries: defaultUsePrecompiledBinaries()); + } +} + +PrecompiledBinaryMode? _parsePrecompiledBinaryMode(String raw) { + final v = raw.trim().toLowerCase(); + return switch (v) { + 'auto' => PrecompiledBinaryMode.auto, + 'always' || 'download' => PrecompiledBinaryMode.always, + 'never' || 'build' || 'off' || 'disabled' => PrecompiledBinaryMode.never, + _ => null, + }; +} diff --git a/payjoin-ffi/dart/lib/src/precompiled/precompiled_builder.dart b/payjoin-ffi/dart/lib/src/precompiled/precompiled_builder.dart new file mode 100644 index 000000000..e950fb228 --- /dev/null +++ b/payjoin-ffi/dart/lib/src/precompiled/precompiled_builder.dart @@ -0,0 +1,123 @@ +import 'dart:io'; + +import 'package:code_assets/code_assets.dart'; +import 'package:hooks/hooks.dart'; +import 'package:logging/logging.dart'; +import 'package:path/path.dart' as path; + +import 'artifacts_provider.dart'; +import 'target.dart'; + +final _log = Logger('payjoin.precompiled_builder'); + +typedef FallbackBuilder = + Future Function( + BuildInput input, + BuildOutputBuilder output, + List assetRouting, + Logger? logger, + ); + +final class PrecompiledBuilder implements Builder { + const PrecompiledBuilder({ + required this.assetName, + required this.fallback, + this.cratePath, + this.buildModeName = 'release', + }); + + final String assetName; + final FallbackBuilder fallback; + final String? cratePath; + final String buildModeName; + + @override + Future run({ + required BuildInput input, + required BuildOutputBuilder output, + List assetRouting = const [ToAppBundle()], + Logger? logger, + }) async { + _initLogging(); + if (!input.config.buildCodeAssets) { + return; + } + + logger ??= Logger('payjoin.PrecompiledBuilder'); + + final crateDirectory = _resolveCrateDirectory( + rootPath: path.fromUri(input.packageRoot), + cratePathOptions: cratePath != null ? [cratePath!] : ['native', 'rust'], + ); + + final provider = PrecompiledArtifactProvider( + input: input, + buildModeName: buildModeName, + crateDir: crateDirectory, + ); + + final downloaded = await provider.tryGetPrecompiledArtifact(); + if (downloaded != null) { + for (final dep in downloaded.dependencies) { + output.dependencies.add(dep); + } + + final codeConfig = input.config.code; + final linkMode = codeConfig.linkMode; + + for (final routing in assetRouting) { + output.assets.code.add( + CodeAsset( + package: input.packageName, + name: assetName, + linkMode: linkMode, + file: File(downloaded.filePath).absolute.uri, + ), + routing: routing, + ); + } + _log.info('Using precompiled binary for ${codeConfig.targetTriple}'); + return; + } + + _log.info( + 'Falling back to local build for ${input.config.code.targetTriple}', + ); + await fallback(input, output, assetRouting, logger); + } + + Directory _resolveCrateDirectory({ + required String rootPath, + required List cratePathOptions, + }) { + for (final option in cratePathOptions) { + final dir = Directory(path.join(rootPath, option)); + if (dir.existsSync()) { + return dir; + } + } + throw StateError( + 'Could not find crate directory. Checked: $cratePathOptions at $rootPath', + ); + } +} + +bool _loggingInitialized = false; + +void _initLogging() { + if (_loggingInitialized) return; + _loggingInitialized = true; + + final verbose = Platform.environment['PAYJOIN_DART_PRECOMPILED_VERBOSE'] == '1'; + Logger.root.level = verbose ? Level.ALL : Level.INFO; + Logger.root.onRecord.listen((rec) { + final out = rec.level >= Level.WARNING ? stderr : stdout; + out.writeln('${rec.level.name}: ${rec.message}'); + if (rec.error != null) { + out.writeln(rec.error); + } + if (rec.stackTrace != null && verbose) { + out.writeln(rec.stackTrace); + } + }); +} diff --git a/payjoin-ffi/dart/lib/src/precompiled/rust_toolchain.dart b/payjoin-ffi/dart/lib/src/precompiled/rust_toolchain.dart new file mode 100644 index 000000000..1737ba49f --- /dev/null +++ b/payjoin-ffi/dart/lib/src/precompiled/rust_toolchain.dart @@ -0,0 +1,70 @@ +import 'dart:io'; + +import 'package:path/path.dart' as path; +import 'package:toml/toml.dart'; + +class RustToolchain { + RustToolchain._({required this.channel, required this.targets}); + + final String channel; + final List targets; + + static RustToolchain load(String manifestDir) { + final file = File(path.join(manifestDir, 'rust-toolchain.toml')); + if (!file.existsSync()) { + throw StateError('rust-toolchain.toml not found: ${file.path}'); + } + return _parseToolchain(file.path); + } + + static RustToolchain _parseToolchain(String toolchainTomlPath) { + final doc = TomlDocument.loadSync(toolchainTomlPath).toMap(); + final toolchain = doc['toolchain']; + if (toolchain is! Map) { + throw FormatException('Missing [toolchain] table in $toolchainTomlPath'); + } + final channel = toolchain['channel']; + if (channel is! String || channel.trim().isEmpty) { + throw FormatException('Missing toolchain.channel in $toolchainTomlPath'); + } + final targetsRaw = toolchain['targets']; + final targets = targetsRaw is List + ? targetsRaw.whereType().toList(growable: false) + : const []; + return RustToolchain._(channel: channel.trim(), targets: targets); + } + + List targetsForOs(String os) { + final normalized = _normalizeOs(os); + if (normalized == null) { + return targets; + } + return _filterTargets(targets, normalized); + } + + static String? _normalizeOs(String raw) { + final v = raw.trim().toLowerCase(); + return switch (v) { + 'linux' || 'ubuntu-latest' => 'linux', + 'macos' || 'darwin' || 'macos-latest' => 'macos', + 'windows' || 'windows-latest' => 'windows', + 'android' => 'android', + 'ios' => 'ios', + 'all' => null, + _ => v.isEmpty ? null : v, + }; + } + + static List _filterTargets(List targets, String os) { + bool include(String t) => switch (os) { + 'macos' => t.endsWith('apple-darwin') || t.contains('apple-ios'), + 'ios' => t.contains('apple-ios'), + 'linux' => t.endsWith('unknown-linux-gnu'), + 'windows' => t.endsWith('pc-windows-msvc'), + 'android' => + t.endsWith('linux-android') || t.endsWith('linux-androideabi'), + _ => false, + }; + return targets.where(include).toList(growable: false); + } +} diff --git a/payjoin-ffi/dart/lib/src/precompiled/target.dart b/payjoin-ffi/dart/lib/src/precompiled/target.dart new file mode 100644 index 000000000..bfa2de032 --- /dev/null +++ b/payjoin-ffi/dart/lib/src/precompiled/target.dart @@ -0,0 +1,38 @@ +import 'package:code_assets/code_assets.dart'; + +extension CodeConfigTargetTriple on CodeConfig { + String get targetTriple { + return switch ((targetOS, targetArchitecture)) { + (OS.android, Architecture.arm64) => 'aarch64-linux-android', + (OS.android, Architecture.arm) => 'armv7-linux-androideabi', + (OS.android, Architecture.x64) => 'x86_64-linux-android', + (OS.iOS, Architecture.arm64) + when iOS.targetSdk == IOSSdk.iPhoneSimulator => + 'aarch64-apple-ios-sim', + (OS.iOS, Architecture.arm64) when iOS.targetSdk == IOSSdk.iPhoneOS => + 'aarch64-apple-ios', + (OS.iOS, Architecture.x64) => 'x86_64-apple-ios', + (OS.windows, Architecture.arm64) => 'aarch64-pc-windows-msvc', + (OS.windows, Architecture.x64) => 'x86_64-pc-windows-msvc', + (OS.linux, Architecture.arm64) => 'aarch64-unknown-linux-gnu', + (OS.linux, Architecture.x64) => 'x86_64-unknown-linux-gnu', + (OS.macOS, Architecture.arm64) => 'aarch64-apple-darwin', + (OS.macOS, Architecture.x64) => 'x86_64-apple-darwin', + (_, _) => throw UnsupportedError( + 'Unsupported target: $targetOS on $targetArchitecture', + ), + }; + } + + LinkMode get linkMode { + return switch (linkModePreference) { + LinkModePreference.dynamic || + LinkModePreference.preferDynamic => DynamicLoadingBundled(), + LinkModePreference.static || + LinkModePreference.preferStatic => StaticLinking(), + _ => throw UnsupportedError( + 'Unsupported LinkModePreference: $linkModePreference', + ), + }; + } +} diff --git a/payjoin-ffi/dart/lib/src/precompiled/util.dart b/payjoin-ffi/dart/lib/src/precompiled/util.dart new file mode 100644 index 000000000..5897d5fd0 --- /dev/null +++ b/payjoin-ffi/dart/lib/src/precompiled/util.dart @@ -0,0 +1,76 @@ +import 'dart:async'; +import 'dart:io'; + +import 'package:http/http.dart' as http; + +List decodeHex(String hex) { + final normalized = hex.trim().toLowerCase(); + if (normalized.length.isOdd) { + throw FormatException('Invalid hex length'); + } + final out = []; + for (var i = 0; i < normalized.length; i += 2) { + final byte = int.parse(normalized.substring(i, i + 2), radix: 16); + out.add(byte); + } + return out; +} + +String hexEncode(List bytes) { + final b = StringBuffer(); + for (final v in bytes) { + b.write(v.toRadixString(16).padLeft(2, '0')); + } + return b.toString(); +} + +Future httpGetWithRetry( + Uri url, { + Map? headers, + int maxAttempts = 4, + Duration timeout = const Duration(seconds: 30), + Duration retryDelay = const Duration(seconds: 1), +}) async { + final client = http.Client(); + var attempt = 0; + try { + while (true) { + attempt++; + try { + return await client.get(url, headers: headers).timeout(timeout); + } on TimeoutException { + if (attempt >= maxAttempts) rethrow; + } on SocketException { + if (attempt >= maxAttempts) rethrow; + } on http.ClientException { + if (attempt >= maxAttempts) rethrow; + } on HttpException { + if (attempt >= maxAttempts) rethrow; + } + await Future.delayed(retryDelay); + } + } finally { + client.close(); + } +} + +Future writeBytesAtomically(File file, List bytes) async { + final directory = file.parent; + if (!directory.existsSync()) { + directory.createSync(recursive: true); + } + + final tempPath = '${file.path}.${DateTime.now().microsecondsSinceEpoch}.tmp'; + final tempFile = File(tempPath); + + await tempFile.writeAsBytes(bytes, flush: true); + + try { + await tempFile.rename(file.path); + } on FileSystemException { + if (file.existsSync()) { + await file.delete(); + } + await tempFile.rename(file.path); + } +} diff --git a/payjoin-ffi/dart/native/.gitignore b/payjoin-ffi/dart/native/.gitignore new file mode 100644 index 000000000..0b512c76a --- /dev/null +++ b/payjoin-ffi/dart/native/.gitignore @@ -0,0 +1 @@ +!Cargo.lock \ No newline at end of file diff --git a/payjoin-ffi/dart/native/Cargo.lock b/payjoin-ffi/dart/native/Cargo.lock new file mode 100644 index 000000000..13c25b095 --- /dev/null +++ b/payjoin-ffi/dart/native/Cargo.lock @@ -0,0 +1,4406 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "aead" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b613b8e1e3cf911a086f53f03bf286f52fd7a7258e4fa606f0ef220d39d8877" +dependencies = [ + "generic-array", + "rand_core 0.6.4", +] + +[[package]] +name = "aead" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d122413f284cf2d62fb1b7db97e02edb8cda96d769b16e443a4f6195e35662b0" +dependencies = [ + "crypto-common", + "generic-array", +] + +[[package]] +name = "aes" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e8b47f52ea9bae42228d07ec09eb676433d7c4ed1ebdf0f1d1c29ed446f1ab8" +dependencies = [ + "cfg-if", + "cipher 0.3.0", + "cpufeatures 0.2.17", + "opaque-debug", +] + +[[package]] +name = "aes-gcm" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc3be92e19a7ef47457b8e6f90707e12b6ac5d20c6f3866584fa3be0787d839f" +dependencies = [ + "aead 0.4.3", + "aes", + "cipher 0.3.0", + "ctr", + "ghash", + "subtle", +] + +[[package]] +name = "aho-corasick" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" +dependencies = [ + "memchr", +] + +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] + +[[package]] +name = "anstream" +version = "0.6.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43d5b281e737544384e969a5ccad3f1cdd24b48086a0fc1b2a5262a26b8f4f4a" +dependencies = [ + "anstyle", + "anstyle-parse", + "anstyle-query", + "anstyle-wincon", + "colorchoice", + "is_terminal_polyfill", + "utf8parse", +] + +[[package]] +name = "anstyle" +version = "1.0.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5192cca8006f1fd4f7237516f40fa183bb07f8fbdfedaa0036de5ea9b0b45e78" + +[[package]] +name = "anstyle-parse" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2" +dependencies = [ + "utf8parse", +] + +[[package]] +name = "anstyle-query" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "anstyle-wincon" +version = "3.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" +dependencies = [ + "anstyle", + "once_cell_polyfill", + "windows-sys 0.61.2", +] + +[[package]] +name = "anyhow" +version = "1.0.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61" + +[[package]] +name = "arc-swap" +version = "1.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51d03449bb8ca2cc2ef70869af31463d1ae5ccc8fa3e334b307203fbf815207e" +dependencies = [ + "rustversion", +] + +[[package]] +name = "arraydeque" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d902e3d592a523def97af8f317b08ce16b7ab854c1985a0c671e6f15cebc236" + +[[package]] +name = "arrayvec" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" + +[[package]] +name = "askama" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d4744ed2eef2645831b441d8f5459689ade2ab27c854488fbab1fbe94fce1a7" +dependencies = [ + "askama_derive", + "itoa", + "percent-encoding", + "serde", + "serde_json", +] + +[[package]] +name = "askama_derive" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d661e0f57be36a5c14c48f78d09011e67e0cb618f269cca9f2fd8d15b68c46ac" +dependencies = [ + "askama_parser", + "basic-toml", + "memchr", + "proc-macro2", + "quote", + "rustc-hash", + "serde", + "serde_derive", + "syn 2.0.114", +] + +[[package]] +name = "askama_parser" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf315ce6524c857bb129ff794935cf6d42c82a6cff60526fe2a63593de4d0d4f" +dependencies = [ + "memchr", + "serde", + "serde_derive", + "winnow", +] + +[[package]] +name = "asn1-rs" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56624a96882bb8c26d61312ae18cb45868e5a9992ea73c58e45c3101e56a1e60" +dependencies = [ + "asn1-rs-derive", + "asn1-rs-impl", + "displaydoc", + "nom", + "num-traits", + "rusticata-macros", + "thiserror 2.0.18", + "time", +] + +[[package]] +name = "asn1-rs-derive" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3109e49b1e4909e9db6515a30c633684d68cdeaa252f215214cb4fa1a5bfee2c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", + "synstructure", +] + +[[package]] +name = "asn1-rs-impl" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b18050c2cd6fe86c3a76584ef5e0baf286d038cda203eb6223df2cc413565f7" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "async-compat" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1ba85bc55464dcbf728b56d97e119d673f4cf9062be330a9a26f3acf504a590" +dependencies = [ + "futures-core", + "futures-io", + "once_cell", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "async-trait" +version = "0.1.89" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "autocfg" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" + +[[package]] +name = "axum" +version = "0.8.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b52af3cb4058c895d37317bb27508dccc8e5f2d39454016b297bf4a400597b8" +dependencies = [ + "axum-core", + "bytes", + "form_urlencoded", + "futures-util", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-util", + "itoa", + "matchit", + "memchr", + "mime", + "percent-encoding", + "pin-project-lite", + "serde_core", + "serde_json", + "serde_path_to_error", + "serde_urlencoded", + "sync_wrapper", + "tokio", + "tower", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "axum-core" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08c78f31d7b1291f7ee735c1c6780ccde7785daae9a9206026862dab7d8792d1" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "http-body-util", + "mime", + "pin-project-lite", + "sync_wrapper", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "axum-server" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1ab4a3ec9ea8a657c72d99a03a824af695bd0fb5ec639ccbd9cd3543b41a5f9" +dependencies = [ + "arc-swap", + "bytes", + "fs-err 3.2.2", + "http", + "http-body", + "hyper", + "hyper-util", + "pin-project-lite", + "rustls 0.23.36", + "rustls-pemfile", + "rustls-pki-types", + "tokio", + "tokio-rustls", + "tower-service", +] + +[[package]] +name = "base58ck" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c8d66485a3a2ea485c1913c4572ce0256067a5377ac8c75c4960e1cda98605f" +dependencies = [ + "bitcoin-internals", + "bitcoin_hashes", +] + +[[package]] +name = "base64" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" + +[[package]] +name = "base64" +version = "0.21.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "basic-toml" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba62675e8242a4c4e806d12f11d136e626e6c8361d6b829310732241652a178a" +dependencies = [ + "serde", +] + +[[package]] +name = "bech32" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32637268377fc7b10a8c6d51de3e7fba1ce5dd371a96e342b34e6078db558e7f" + +[[package]] +name = "bhttp" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16fc24bc615b9fd63148f59b218ea58a444b55762f8845da910e23aca686398b" +dependencies = [ + "thiserror 1.0.69", + "url", +] + +[[package]] +name = "bitcoin" +version = "0.32.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e499f9fc0407f50fe98af744ab44fa67d409f76b6772e1689ec8485eb0c0f66" +dependencies = [ + "base58ck", + "base64 0.21.7", + "bech32", + "bitcoin-internals", + "bitcoin-io", + "bitcoin-units", + "bitcoin_hashes", + "hex-conservative 0.2.2", + "hex_lit", + "secp256k1", + "serde", +] + +[[package]] +name = "bitcoin-hpke" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d37a54c486727c1d1ae9cc28dcf78b6e6ba20dcb88e8c892f1437d9ce215dc8c" +dependencies = [ + "aead 0.5.2", + "chacha20poly1305 0.10.1", + "digest 0.10.7", + "generic-array", + "hkdf 0.12.4", + "hmac 0.12.1", + "rand_core 0.6.4", + "secp256k1", + "sha2 0.10.9", + "subtle", + "zeroize", +] + +[[package]] +name = "bitcoin-internals" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30bdbe14aa07b06e6cfeffc529a1f099e5fbe249524f8125358604df99a4bed2" +dependencies = [ + "serde", +] + +[[package]] +name = "bitcoin-io" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2dee39a0ee5b4095224a0cfc6bf4cc1baf0f9624b96b367e53b66d974e51d953" + +[[package]] +name = "bitcoin-ohttp" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87a803a4b54e44635206b53329c78c0029d0c70926288ac2f07f4bb1267546cb" +dependencies = [ + "aead 0.4.3", + "aes-gcm", + "bitcoin-hpke", + "byteorder", + "chacha20poly1305 0.8.0", + "hex", + "hkdf 0.11.0", + "lazy_static", + "log", + "rand 0.8.5", + "serde", + "serde_derive", + "sha2 0.9.9", + "thiserror 1.0.69", + "toml 0.5.11", +] + +[[package]] +name = "bitcoin-units" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5285c8bcaa25876d07f37e3d30c303f2609179716e11d688f51e8f1fe70063e2" +dependencies = [ + "bitcoin-internals", + "serde", +] + +[[package]] +name = "bitcoin_hashes" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26ec84b80c482df901772e931a9a681e26a1b9ee2302edeff23cb30328745c8b" +dependencies = [ + "bitcoin-io", + "hex-conservative 0.2.2", + "serde", +] + +[[package]] +name = "bitcoin_uri" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e0a228e083d1702f83389b0ac71eb70078dc8d7fcbb6cde864d1cbca145f5cc" +dependencies = [ + "bitcoin", + "percent-encoding-rfc3986", +] + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bitflags" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3" +dependencies = [ + "serde_core", +] + +[[package]] +name = "block-buffer" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" +dependencies = [ + "generic-array", +] + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "bumpalo" +version = "3.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5dd9dc738b7a8311c7ade152424974d8115f2cdad61e8dab8dac9f2362298510" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "bytes" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b35204fbdc0b3f4446b89fc1ac2cf84a8a68971995d0bf2e925ec7cd960f9cb3" + +[[package]] +name = "bzip2" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdb116a6ef3f6c3698828873ad02c3014b3c85cadb88496095628e3ef1e347f8" +dependencies = [ + "bzip2-sys", + "libc", +] + +[[package]] +name = "bzip2-sys" +version = "0.1.13+1.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "225bff33b2141874fe80d71e07d6eec4f85c5c216453dd96388240f96e1acc14" +dependencies = [ + "cc", + "pkg-config", +] + +[[package]] +name = "camino" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e629a66d692cb9ff1a1c664e41771b3dcaf961985a9774c0eb0bd1b51cf60a48" +dependencies = [ + "serde_core", +] + +[[package]] +name = "cargo-platform" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea" +dependencies = [ + "serde", +] + +[[package]] +name = "cargo_metadata" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd5eb614ed4c27c5d706420e4320fbe3216ab31fa1c33cd8246ac36dae4479ba" +dependencies = [ + "camino", + "cargo-platform", + "semver", + "serde", + "serde_json", + "thiserror 2.0.18", +] + +[[package]] +name = "cc" +version = "1.2.54" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6354c81bbfd62d9cfa9cb3c773c2b7b2a3a482d569de977fd0e961f6e7c00583" +dependencies = [ + "find-msvc-tools", + "shlex", +] + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "cfg_aliases" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" + +[[package]] +name = "chacha20" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fee7ad89dc1128635074c268ee661f90c3f7e83d9fd12910608c36b47d6c3412" +dependencies = [ + "cfg-if", + "cipher 0.3.0", + "cpufeatures 0.1.5", + "zeroize", +] + +[[package]] +name = "chacha20" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3613f74bd2eac03dad61bd53dbe620703d4371614fe0bc3b9f04dd36fe4e818" +dependencies = [ + "cfg-if", + "cipher 0.4.4", + "cpufeatures 0.2.17", +] + +[[package]] +name = "chacha20poly1305" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1580317203210c517b6d44794abfbe600698276db18127e37ad3e69bf5e848e5" +dependencies = [ + "aead 0.4.3", + "chacha20 0.7.1", + "cipher 0.3.0", + "poly1305 0.7.2", + "zeroize", +] + +[[package]] +name = "chacha20poly1305" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10cd79432192d1c0f4e1a0fef9527696cc039165d729fb41b3f4f4f354c2dc35" +dependencies = [ + "aead 0.5.2", + "chacha20 0.9.1", + "cipher 0.4.4", + "poly1305 0.8.0", + "zeroize", +] + +[[package]] +name = "chrono" +version = "0.4.43" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fac4744fb15ae8337dc853fee7fb3f4e48c0fbaa23d0afe49c447b4fab126118" +dependencies = [ + "iana-time-zone", + "num-traits", + "serde", + "windows-link", +] + +[[package]] +name = "cipher" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ee52072ec15386f770805afd189a01c8841be8696bed250fa2f13c4c0d6dfb7" +dependencies = [ + "generic-array", +] + +[[package]] +name = "cipher" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" +dependencies = [ + "crypto-common", + "inout", + "zeroize", +] + +[[package]] +name = "clap" +version = "4.5.54" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6e6ff9dcd79cff5cd969a17a545d79e84ab086e444102a591e288a8aa3ce394" +dependencies = [ + "clap_builder", + "clap_derive", +] + +[[package]] +name = "clap_builder" +version = "4.5.54" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa42cf4d2b7a41bc8f663a7cab4031ebafa1bf3875705bfaf8466dc60ab52c00" +dependencies = [ + "anstream", + "anstyle", + "clap_lex", + "strsim", +] + +[[package]] +name = "clap_derive" +version = "4.5.49" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a0b5487afeab2deb2ff4e03a807ad1a03ac532ff5a2cee5d86884440c7f7671" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "clap_lex" +version = "0.7.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3e64b0cc0439b12df2fa678eae89a1c56a529fd067a9115f7827f1fffd22b32" + +[[package]] +name = "colorchoice" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75" + +[[package]] +name = "config" +version = "0.15.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b30fa8254caad766fc03cb0ccae691e14bf3bd72bfff27f72802ce729551b3d6" +dependencies = [ + "async-trait", + "convert_case", + "json5", + "pathdiff", + "ron", + "rust-ini", + "serde-untagged", + "serde_core", + "serde_json", + "toml 0.9.11+spec-1.1.0", + "winnow", + "yaml-rust2", +] + +[[package]] +name = "const-random" +version = "0.1.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87e00182fe74b066627d63b85fd550ac2998d4b0bd86bfed477a0ae4c7c71359" +dependencies = [ + "const-random-macro", +] + +[[package]] +name = "const-random-macro" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9d839f2a20b0aee515dc581a6172f2321f96cab76c1a38a4c584a194955390e" +dependencies = [ + "getrandom 0.2.17", + "once_cell", + "tiny-keccak", +] + +[[package]] +name = "convert_case" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec182b0ca2f35d8fc196cf3404988fd8b8c739a4d270ff118a398feb0cbec1ca" +dependencies = [ + "unicode-segmentation", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "corepc-client" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7755b8b9219b23d166a5897b5e2d8266cbdd0de5861d351b96f6db26bcf415f3" +dependencies = [ + "bitcoin", + "corepc-types", + "jsonrpc", + "log", + "serde", + "serde_json", +] + +[[package]] +name = "corepc-node" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "768391062ec3812e223bb3031c5b2fcdd6e0e60b816157f21df82fd3e6617dc0" +dependencies = [ + "anyhow", + "bitcoin_hashes", + "corepc-client", + "flate2", + "log", + "minreq", + "serde_json", + "tar", + "tempfile", + "which", + "zip", +] + +[[package]] +name = "corepc-types" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c22db78b0223b66f82f92b14345f06307078f76d94b18280431ea9bc6cd9cbb6" +dependencies = [ + "bitcoin", + "serde", + "serde_json", +] + +[[package]] +name = "cpufeatures" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66c99696f6c9dd7f35d486b9d04d7e6e202aa3e8c40d553f2fdf5e7e0c6a71ef" +dependencies = [ + "libc", +] + +[[package]] +name = "cpufeatures" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +dependencies = [ + "libc", +] + +[[package]] +name = "crc32fast" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" + +[[package]] +name = "crunchy" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" + +[[package]] +name = "crypto-common" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" +dependencies = [ + "generic-array", + "rand_core 0.6.4", + "typenum", +] + +[[package]] +name = "crypto-mac" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25fab6889090c8133f3deb8f73ba3c65a7f456f66436fc012a1b1e272b1e103e" +dependencies = [ + "generic-array", + "subtle", +] + +[[package]] +name = "ctr" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a232f92a03f37dd7d7dd2adc67166c77e9cd88de5b019b9a9eecfaeaf7bfd481" +dependencies = [ + "cipher 0.3.0", +] + +[[package]] +name = "darling" +version = "0.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9cdf337090841a411e2a7f3deb9187445851f91b309c0c0a29e05f74a00a48c0" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1247195ecd7e3c85f83c8d2a366e4210d588e802133e1e355180a9870b517ea4" +dependencies = [ + "fnv", + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn 2.0.114", +] + +[[package]] +name = "darling_macro" +version = "0.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d38308df82d1080de0afee5d069fa14b0326a88c14f15c5ccda35b4a6c414c81" +dependencies = [ + "darling_core", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "data-encoding" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7a1e2f27636f116493b8b860f5546edb47c8d8f8ea73e1d2a20be88e28d1fea" + +[[package]] +name = "der-parser" +version = "10.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07da5016415d5a3c4dd39b11ed26f915f52fc4e0dc197d87908bc916e51bc1a6" +dependencies = [ + "asn1-rs", + "displaydoc", + "nom", + "num-bigint", + "num-traits", + "rusticata-macros", +] + +[[package]] +name = "deranged" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ececcb659e7ba858fb4f10388c250a7252eb0a27373f1a72b8748afdd248e587" +dependencies = [ + "powerfmt", + "serde_core", +] + +[[package]] +name = "digest" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" +dependencies = [ + "generic-array", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer 0.10.4", + "crypto-common", + "subtle", +] + +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "dlv-list" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "442039f5147480ba31067cb00ada1adae6892028e40e45fc5de7b7df6dcc1b5f" +dependencies = [ + "const-random", +] + +[[package]] +name = "document-features" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4b8a88685455ed29a21542a33abd9cb6510b6b129abadabdcef0f4c55bc8f61" +dependencies = [ + "litrs", +] + +[[package]] +name = "dyn-clone" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" + +[[package]] +name = "encoding_rs" +version = "0.8.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "equivalent" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" + +[[package]] +name = "erased-serde" +version = "0.4.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "89e8918065695684b2b0702da20382d5ae6065cf3327bc2d6436bd49a71ce9f3" +dependencies = [ + "serde", + "serde_core", + "typeid", +] + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "fastrand" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" + +[[package]] +name = "filetime" +version = "0.2.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f98844151eee8917efc50bd9e8318cb963ae8b297431495d3f758616ea5c57db" +dependencies = [ + "cfg-if", + "libc", + "libredox", +] + +[[package]] +name = "find-msvc-tools" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8591b0bcc8a98a64310a2fae1bb3e9b8564dd10e381e6e28010fde8e8e8568db" + +[[package]] +name = "flate2" +version = "1.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b375d6465b98090a5f25b1c7703f3859783755aa9a80433b36e0379a3ec2f369" +dependencies = [ + "crc32fast", + "miniz_oxide", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "fs-err" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88a41f105fe1d5b6b34b2055e3dc59bb79b46b48b2040b9e6c7b4b5de097aa41" +dependencies = [ + "autocfg", +] + +[[package]] +name = "fs-err" +version = "3.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf68cef89750956493a66a10f512b9e58d9db21f2a573c079c0bdf1207a54a7" +dependencies = [ + "autocfg", + "tokio", +] + +[[package]] +name = "futures" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-channel" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" + +[[package]] +name = "futures-executor" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" + +[[package]] +name = "futures-macro" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "futures-sink" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" + +[[package]] +name = "futures-task" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" + +[[package]] +name = "futures-util" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "pin-utils", + "slab", +] + +[[package]] +name = "genco" +version = "0.17.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a35958104272e516c2a5f66a9d82fba4784d2b585fc1e2358b8f96e15d342995" +dependencies = [ + "genco-macros", + "relative-path", + "smallvec", +] + +[[package]] +name = "genco-macros" +version = "0.17.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43eaff6bbc0b3a878361aced5ec6a2818ee7c541c5b33b5880dfa9a86c23e9e7" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "wasi", + "wasm-bindgen", +] + +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "r-efi", + "wasip2", + "wasm-bindgen", +] + +[[package]] +name = "ghash" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1583cc1656d7839fd3732b80cf4f38850336cdb9b8ded1cd399ca62958de3c99" +dependencies = [ + "opaque-debug", + "polyval", +] + +[[package]] +name = "glob" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280" + +[[package]] +name = "goblin" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b363a30c165f666402fe6a3024d3bec7ebc898f96a4a23bd1c99f8dbf3f4f47" +dependencies = [ + "log", + "plain", + "scroll", +] + +[[package]] +name = "h2" +version = "0.4.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f44da3a8150a6703ed5d34e164b875fd14c2cdab9af1252a9a1020bde2bdc54" +dependencies = [ + "atomic-waker", + "bytes", + "fnv", + "futures-core", + "futures-sink", + "http", + "indexmap 2.13.0", + "slab", + "tokio", + "tokio-util", + "tracing", +] + +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" + +[[package]] +name = "hashbrown" +version = "0.14.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" + +[[package]] +name = "hashbrown" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +dependencies = [ + "foldhash", +] + +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" + +[[package]] +name = "hashlink" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7382cf6263419f2d8df38c55d7da83da5c18aef87fc7a7fc1fb1e344edfe14c1" +dependencies = [ + "hashbrown 0.15.5", +] + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "hex-conservative" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "212ab92002354b4819390025006c897e8140934349e8635c9b077f47b4dcbd20" + +[[package]] +name = "hex-conservative" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fda06d18ac606267c40c04e41b9947729bf8b9efe74bd4e82b61a5f26a510b9f" +dependencies = [ + "arrayvec", +] + +[[package]] +name = "hex_lit" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3011d1213f159867b13cfd6ac92d2cd5f1345762c63be3554e84092d85a50bbd" + +[[package]] +name = "hkdf" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01706d578d5c281058480e673ae4086a9f4710d8df1ad80a5b03e39ece5f886b" +dependencies = [ + "digest 0.9.0", + "hmac 0.11.0", +] + +[[package]] +name = "hkdf" +version = "0.12.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7" +dependencies = [ + "hmac 0.12.1", +] + +[[package]] +name = "hmac" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a2a2320eb7ec0ebe8da8f744d7812d9fc4cb4d09344ac01898dbcb6a20ae69b" +dependencies = [ + "crypto-mac", + "digest 0.9.0", +] + +[[package]] +name = "hmac" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" +dependencies = [ + "digest 0.10.7", +] + +[[package]] +name = "http" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "httpdate" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" + +[[package]] +name = "hyper" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ab2d4f250c3d7b1c9fcdff1cece94ea4e2dfbec68614f7b87cb205f24ca9d11" +dependencies = [ + "atomic-waker", + "bytes", + "futures-channel", + "futures-core", + "h2", + "http", + "http-body", + "httparse", + "httpdate", + "itoa", + "pin-project-lite", + "pin-utils", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-rustls" +version = "0.27.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58" +dependencies = [ + "http", + "hyper", + "hyper-util", + "rustls 0.23.36", + "rustls-pki-types", + "tokio", + "tokio-rustls", + "tower-service", + "webpki-roots 1.0.5", +] + +[[package]] +name = "hyper-util" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "727805d60e7938b76b826a6ef209eb70eaa1812794f9424d4a4e2d740662df5f" +dependencies = [ + "base64 0.22.1", + "bytes", + "futures-channel", + "futures-core", + "futures-util", + "http", + "http-body", + "hyper", + "ipnet", + "libc", + "percent-encoding", + "pin-project-lite", + "socket2 0.6.2", + "tokio", + "tower-service", + "tracing", +] + +[[package]] +name = "iana-time-zone" +version = "0.1.64" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33e57f83510bb73707521ebaffa789ec8caf86f9657cad665b092b581d40e9fb" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "icu_collections" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c6b649701667bbe825c3b7e6388cb521c23d88644678e83c0c4d0a621a34b43" +dependencies = [ + "displaydoc", + "potential_utf", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edba7861004dd3714265b4db54a3c390e880ab658fec5f7db895fae2046b5bb6" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f6c8828b67bf8908d82127b2054ea1b4427ff0230ee9141c54251934ab1b599" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7aedcccd01fc5fe81e6b489c15b247b8b0690feb23304303a9e560f37efc560a" + +[[package]] +name = "icu_properties" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "020bfc02fe870ec3a66d93e677ccca0562506e5872c650f893269e08615d74ec" +dependencies = [ + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "616c294cf8d725c6afcd8f55abc17c56464ef6211f9ed59cccffe534129c77af" + +[[package]] +name = "icu_provider" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85962cf0ce02e1e0a629cc34e7ca3e373ce20dda4c4d7294bbd0bf1fdb59e614" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "indexmap" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +dependencies = [ + "autocfg", + "hashbrown 0.12.3", + "serde", +] + +[[package]] +name = "indexmap" +version = "2.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017" +dependencies = [ + "equivalent", + "hashbrown 0.16.1", + "serde", + "serde_core", +] + +[[package]] +name = "inout" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01" +dependencies = [ + "generic-array", +] + +[[package]] +name = "ipnet" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130" + +[[package]] +name = "iri-string" +version = "0.7.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c91338f0783edbd6195decb37bae672fd3b165faffb89bf7b9e6942f8b1a731a" +dependencies = [ + "memchr", + "serde", +] + +[[package]] +name = "is_terminal_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" + +[[package]] +name = "itoa" +version = "1.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2" + +[[package]] +name = "js-sys" +version = "0.3.85" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c942ebf8e95485ca0d52d97da7c5a2c387d0e7f0ba4c35e93bfcaee045955b3" +dependencies = [ + "once_cell", + "wasm-bindgen", +] + +[[package]] +name = "json5" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96b0db21af676c1ce64250b5f40f3ce2cf27e4e47cb91ed91eb6fe9350b430c1" +dependencies = [ + "pest", + "pest_derive", + "serde", +] + +[[package]] +name = "jsonrpc" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3662a38d341d77efecb73caf01420cfa5aa63c0253fd7bc05289ef9f6616e1bf" +dependencies = [ + "base64 0.13.1", + "minreq", + "serde", + "serde_json", +] + +[[package]] +name = "lazy_static" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" + +[[package]] +name = "libc" +version = "0.2.180" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bcc35a38544a891a5f7c865aca548a982ccb3b8650a5b06d0fd33a10283c56fc" + +[[package]] +name = "libredox" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d0b95e02c851351f877147b7deea7b1afb1df71b63aa5f8270716e0c5720616" +dependencies = [ + "bitflags 2.10.0", + "libc", + "redox_syscall 0.7.0", +] + +[[package]] +name = "linux-raw-sys" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039" + +[[package]] +name = "litemap" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6373607a59f0be73a39b6fe456b8192fcc3585f602af20751600e974dd455e77" + +[[package]] +name = "litrs" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11d3d7f243d5c5a8b9bb5d6dd2b1602c0cb0b9db1621bafc7ed66e35ff9fe092" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" + +[[package]] +name = "lru-slab" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154" + +[[package]] +name = "matchers" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9" +dependencies = [ + "regex-automata", +] + +[[package]] +name = "matchit" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47e1ffaa40ddd1f3ed91f717a33c8c0ee23fff369e3aa8772b9605cc1d22f4c3" + +[[package]] +name = "memchr" +version = "2.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273" + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "minimal-lexical" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "minreq" +version = "2.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05015102dad0f7d61691ca347e9d9d9006685a64aefb3d79eecf62665de2153d" +dependencies = [ + "rustls 0.21.12", + "rustls-webpki 0.101.7", + "serde", + "serde_json", + "webpki-roots 0.25.4", +] + +[[package]] +name = "mio" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a69bcab0ad47271a0234d9422b131806bf3968021e5dc9328caf2d4cd58557fc" +dependencies = [ + "libc", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "nix" +version = "0.26.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "598beaf3cc6fdd9a5dfb1630c2800c7acd31df7aaf0f565796fba2b53ca1af1b" +dependencies = [ + "bitflags 1.3.2", + "cfg-if", + "libc", +] + +[[package]] +name = "nom" +version = "7.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" +dependencies = [ + "memchr", + "minimal-lexical", +] + +[[package]] +name = "nu-ansi-term" +version = "0.50.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "num-bigint" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9" +dependencies = [ + "num-integer", + "num-traits", +] + +[[package]] +name = "num-conv" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf97ec579c3c42f953ef76dbf8d55ac91fb219dde70e49aa4a6b7d74e9919050" + +[[package]] +name = "num-integer" +version = "0.1.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "ohttp-relay" +version = "0.0.11" +dependencies = [ + "byteorder", + "bytes", + "futures", + "hex-conservative 0.1.2", + "http", + "http-body-util", + "hyper", + "hyper-rustls", + "hyper-util", + "rustls 0.23.36", + "tokio", + "tokio-tungstenite", + "tokio-util", + "tower", + "tracing", + "tracing-subscriber", +] + +[[package]] +name = "oid-registry" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12f40cff3dde1b6087cc5d5f5d4d65712f34016a03ed60e9c08dcc392736b5b7" +dependencies = [ + "asn1-rs", +] + +[[package]] +name = "once_cell" +version = "1.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" + +[[package]] +name = "once_cell_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" + +[[package]] +name = "opaque-debug" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381" + +[[package]] +name = "ordered-multimap" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49203cdcae0030493bad186b28da2fa25645fa276a51b6fec8010d281e02ef79" +dependencies = [ + "dlv-list", + "hashbrown 0.14.5", +] + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall 0.5.18", + "smallvec", + "windows-link", +] + +[[package]] +name = "paste" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" + +[[package]] +name = "pathdiff" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3" + +[[package]] +name = "payjoin" +version = "1.0.0-rc.1" +dependencies = [ + "bhttp", + "bitcoin", + "bitcoin-hpke", + "bitcoin-ohttp", + "bitcoin_uri", + "http", + "reqwest", + "rustls 0.23.36", + "serde", + "serde_json", + "tracing", + "url", + "web-time", +] + +[[package]] +name = "payjoin-directory" +version = "0.0.3" +dependencies = [ + "anyhow", + "bhttp", + "bitcoin", + "bitcoin-ohttp", + "clap", + "config", + "futures", + "http-body-util", + "hyper", + "hyper-util", + "ohttp-relay", + "payjoin", + "prometheus", + "rand 0.8.5", + "serde", + "tokio", + "tokio-stream", + "tower", + "tracing", + "tracing-subscriber", +] + +[[package]] +name = "payjoin-ffi" +version = "0.24.0" +dependencies = [ + "bitcoin-ohttp", + "getrandom 0.2.17", + "lazy_static", + "payjoin", + "payjoin-test-utils", + "serde", + "serde_json", + "thiserror 2.0.18", + "tokio", + "uniffi", + "uniffi-dart", + "url", +] + +[[package]] +name = "payjoin-ffi-wrapper" +version = "0.1.0" +dependencies = [ + "payjoin-ffi", +] + +[[package]] +name = "payjoin-service" +version = "0.0.1" +dependencies = [ + "anyhow", + "axum", + "axum-server", + "clap", + "config", + "ohttp-relay", + "payjoin-directory", + "rand 0.8.5", + "rustls 0.23.36", + "serde", + "tokio", + "tokio-listener", + "tower", + "tracing", + "tracing-subscriber", +] + +[[package]] +name = "payjoin-test-utils" +version = "0.0.1" +dependencies = [ + "axum-server", + "bitcoin", + "bitcoin-ohttp", + "corepc-node", + "http", + "once_cell", + "payjoin", + "payjoin-service", + "rcgen", + "reqwest", + "rustls 0.23.36", + "tempfile", + "tokio", + "tracing", + "tracing-subscriber", +] + +[[package]] +name = "pem" +version = "3.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d30c53c26bc5b31a98cd02d20f25a7c8567146caf63ed593a9d87b2775291be" +dependencies = [ + "base64 0.22.1", + "serde_core", +] + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "percent-encoding-rfc3986" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3637c05577168127568a64e9dc5a6887da720efef07b3d9472d45f63ab191166" + +[[package]] +name = "pest" +version = "2.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c9eb05c21a464ea704b53158d358a31e6425db2f63a1a7312268b05fe2b75f7" +dependencies = [ + "memchr", + "ucd-trie", +] + +[[package]] +name = "pest_derive" +version = "2.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68f9dbced329c441fa79d80472764b1a2c7e57123553b8519b36663a2fb234ed" +dependencies = [ + "pest", + "pest_generator", +] + +[[package]] +name = "pest_generator" +version = "2.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3bb96d5051a78f44f43c8f712d8e810adb0ebf923fc9ed2655a7f66f63ba8ee5" +dependencies = [ + "pest", + "pest_meta", + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "pest_meta" +version = "2.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "602113b5b5e8621770cfd490cfd90b9f84ab29bd2b0e49ad83eb6d186cef2365" +dependencies = [ + "pest", + "sha2 0.10.9", +] + +[[package]] +name = "pin-project" +version = "1.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "677f1add503faace112b9f1373e43e9e054bfdd22ff1a63c1bc485eaec6a6a8a" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e918e4ff8c4549eb882f14b3a4bc8c8bc93de829416eacf579f1207a8fbf861" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" + +[[package]] +name = "pin-utils" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + +[[package]] +name = "pkg-config" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" + +[[package]] +name = "plain" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6" + +[[package]] +name = "poly1305" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "048aeb476be11a4b6ca432ca569e375810de9294ae78f4774e78ea98a9246ede" +dependencies = [ + "cpufeatures 0.2.17", + "opaque-debug", + "universal-hash 0.4.0", +] + +[[package]] +name = "poly1305" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8159bd90725d2df49889a078b54f4f79e87f1f8a8444194cdca81d38f5393abf" +dependencies = [ + "cpufeatures 0.2.17", + "opaque-debug", + "universal-hash 0.5.1", +] + +[[package]] +name = "polyval" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8419d2b623c7c0896ff2d5d96e2cb4ede590fed28fcc34934f4c33c036e620a1" +dependencies = [ + "cfg-if", + "cpufeatures 0.2.17", + "opaque-debug", + "universal-hash 0.4.0", +] + +[[package]] +name = "potential_utf" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b73949432f5e2a09657003c25bca5e19a0e9c84f8058ca374f49e0ebe605af77" +dependencies = [ + "zerovec", +] + +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + +[[package]] +name = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "proc-macro2" +version = "1.0.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "prometheus" +version = "0.13.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d33c28a30771f7f96db69893f78b857f7450d7e0237e9c8fc6427a81bae7ed1" +dependencies = [ + "cfg-if", + "fnv", + "lazy_static", + "memchr", + "parking_lot", + "protobuf", + "thiserror 1.0.69", +] + +[[package]] +name = "protobuf" +version = "2.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "106dd99e98437432fed6519dedecfade6a06a73bb7b2a1e019fdd2bee5778d94" + +[[package]] +name = "quinn" +version = "0.11.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e20a958963c291dc322d98411f541009df2ced7b5a4f2bd52337638cfccf20" +dependencies = [ + "bytes", + "cfg_aliases", + "pin-project-lite", + "quinn-proto", + "quinn-udp", + "rustc-hash", + "rustls 0.23.36", + "socket2 0.6.2", + "thiserror 2.0.18", + "tokio", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-proto" +version = "0.11.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1906b49b0c3bc04b5fe5d86a77925ae6524a19b816ae38ce1e426255f1d8a31" +dependencies = [ + "bytes", + "getrandom 0.3.4", + "lru-slab", + "rand 0.9.2", + "ring", + "rustc-hash", + "rustls 0.23.36", + "rustls-pki-types", + "slab", + "thiserror 2.0.18", + "tinyvec", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-udp" +version = "0.5.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "addec6a0dcad8a8d96a771f815f0eaf55f9d1805756410b39f5fa81332574cbd" +dependencies = [ + "cfg_aliases", + "libc", + "once_cell", + "socket2 0.6.2", + "tracing", + "windows-sys 0.60.2", +] + +[[package]] +name = "quote" +version = "1.0.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21b2ebcf727b7760c461f091f9f0f539b77b8e87f2fd88131e7f1b433b3cece4" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + +[[package]] +name = "rand" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +dependencies = [ + "libc", + "rand_chacha 0.3.1", + "rand_core 0.6.4", +] + +[[package]] +name = "rand" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" +dependencies = [ + "rand_chacha 0.9.0", + "rand_core 0.9.5", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core 0.9.5", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.17", +] + +[[package]] +name = "rand_core" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" +dependencies = [ + "getrandom 0.3.4", +] + +[[package]] +name = "rcgen" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10b99e0098aa4082912d4c649628623db6aba77335e4f4569ff5083a6448b32e" +dependencies = [ + "pem", + "ring", + "rustls-pki-types", + "time", + "x509-parser", + "yasna", +] + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags 2.10.0", +] + +[[package]] +name = "redox_syscall" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49f3fe0889e69e2ae9e41f4d6c4c0181701d00e4697b356fb1f74173a5e0ee27" +dependencies = [ + "bitflags 2.10.0", +] + +[[package]] +name = "ref-cast" +version = "1.0.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f354300ae66f76f1c85c5f84693f0ce81d747e2c3f21a45fef496d89c960bf7d" +dependencies = [ + "ref-cast-impl", +] + +[[package]] +name = "ref-cast-impl" +version = "1.0.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7186006dcb21920990093f30e3dea63b7d6e977bf1256be20c3563a5db070da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "regex-automata" +version = "0.4.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5276caf25ac86c8d810222b3dbb938e512c55c6831a10f3e6ed1c93b84041f1c" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a2d987857b319362043e95f5353c0535c1f58eec5336fdfcf626430af7def58" + +[[package]] +name = "relative-path" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba39f3699c378cd8970968dcbff9c43159ea4cfbd88d43c00b22f2ef10a435d2" + +[[package]] +name = "reqwest" +version = "0.12.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147" +dependencies = [ + "base64 0.22.1", + "bytes", + "futures-core", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-rustls", + "hyper-util", + "js-sys", + "log", + "percent-encoding", + "pin-project-lite", + "quinn", + "rustls 0.23.36", + "rustls-pki-types", + "serde", + "serde_json", + "serde_urlencoded", + "sync_wrapper", + "tokio", + "tokio-rustls", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "webpki-roots 1.0.5", +] + +[[package]] +name = "ring" +version = "0.17.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" +dependencies = [ + "cc", + "cfg-if", + "getrandom 0.2.17", + "libc", + "untrusted", + "windows-sys 0.52.0", +] + +[[package]] +name = "ron" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd490c5b18261893f14449cbd28cb9c0b637aebf161cd77900bfdedaff21ec32" +dependencies = [ + "bitflags 2.10.0", + "once_cell", + "serde", + "serde_derive", + "typeid", + "unicode-ident", +] + +[[package]] +name = "rust-ini" +version = "0.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "796e8d2b6696392a43bea58116b667fb4c29727dc5abd27d6acf338bb4f688c7" +dependencies = [ + "cfg-if", + "ordered-multimap", +] + +[[package]] +name = "rustc-hash" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" + +[[package]] +name = "rusticata-macros" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "faf0c4a6ece9950b9abdb62b1cfcf2a68b3b67a10ba445b3bb85be2a293d0632" +dependencies = [ + "nom", +] + +[[package]] +name = "rustix" +version = "1.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "146c9e247ccc180c1f61615433868c99f3de3ae256a30a43b49f67c2d9171f34" +dependencies = [ + "bitflags 2.10.0", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustls" +version = "0.21.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f56a14d1f48b391359b22f731fd4bd7e43c97f3c50eee276f3aa09c94784d3e" +dependencies = [ + "log", + "ring", + "rustls-webpki 0.101.7", + "sct", +] + +[[package]] +name = "rustls" +version = "0.23.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c665f33d38cea657d9614f766881e4d510e0eda4239891eea56b4cadcf01801b" +dependencies = [ + "once_cell", + "ring", + "rustls-pki-types", + "rustls-webpki 0.103.9", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls-pemfile" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50" +dependencies = [ + "rustls-pki-types", +] + +[[package]] +name = "rustls-pki-types" +version = "1.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be040f8b0a225e40375822a563fa9524378b9d63112f53e19ffff34df5d33fdd" +dependencies = [ + "web-time", + "zeroize", +] + +[[package]] +name = "rustls-webpki" +version = "0.101.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765" +dependencies = [ + "ring", + "untrusted", +] + +[[package]] +name = "rustls-webpki" +version = "0.103.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7df23109aa6c1567d1c575b9952556388da57401e4ace1d15f79eedad0d8f53" +dependencies = [ + "ring", + "rustls-pki-types", + "untrusted", +] + +[[package]] +name = "rustversion" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" + +[[package]] +name = "ryu" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a50f4cf475b65d88e057964e0e9bb1f0aa9bbb2036dc65c64596b42932536984" + +[[package]] +name = "schemars" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "schemars" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54e910108742c57a770f492731f99be216a52fadd361b06c8fb59d74ccc267d2" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "scroll" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ab8598aa408498679922eff7fa985c25d58a90771bd6be794434c5277eab1a6" +dependencies = [ + "scroll_derive", +] + +[[package]] +name = "scroll_derive" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1783eabc414609e28a5ba76aee5ddd52199f7107a0b24c2e9746a1ecc34a683d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "sct" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414" +dependencies = [ + "ring", + "untrusted", +] + +[[package]] +name = "secp256k1" +version = "0.29.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9465315bc9d4566e1724f0fffcbcc446268cb522e60f9a27bcded6b19c108113" +dependencies = [ + "bitcoin_hashes", + "rand 0.8.5", + "secp256k1-sys", + "serde", +] + +[[package]] +name = "secp256k1-sys" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4387882333d3aa8cb20530a17c69a3752e97837832f34f6dccc760e715001d9" +dependencies = [ + "cc", +] + +[[package]] +name = "semver" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2" +dependencies = [ + "serde", + "serde_core", +] + +[[package]] +name = "serde" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde-untagged" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9faf48a4a2d2693be24c6289dbe26552776eb7737074e6722891fadbe6c5058" +dependencies = [ + "erased-serde", + "serde", + "serde_core", + "typeid", +] + +[[package]] +name = "serde_core" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "serde_json" +version = "1.0.149" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_path_to_error" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10a9ff822e371bb5403e391ecd83e182e0e77ba7f6fe0160b795797109d1b457" +dependencies = [ + "itoa", + "serde", + "serde_core", +] + +[[package]] +name = "serde_spanned" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8bbf91e5a4d6315eee45e704372590b30e260ee83af6639d64557f51b067776" +dependencies = [ + "serde_core", +] + +[[package]] +name = "serde_urlencoded" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" +dependencies = [ + "form_urlencoded", + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "serde_with" +version = "3.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fa237f2807440d238e0364a218270b98f767a00d3dada77b1c53ae88940e2e7" +dependencies = [ + "base64 0.22.1", + "chrono", + "hex", + "indexmap 1.9.3", + "indexmap 2.13.0", + "schemars 0.9.0", + "schemars 1.2.0", + "serde_core", + "serde_json", + "serde_with_macros", + "time", +] + +[[package]] +name = "serde_with_macros" +version = "3.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52a8e3ca0ca629121f70ab50f95249e5a6f925cc0f6ffe8256c45b728875706c" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "sha1" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" +dependencies = [ + "cfg-if", + "cpufeatures 0.2.17", + "digest 0.10.7", +] + +[[package]] +name = "sha2" +version = "0.9.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d58a1e1bf39749807d89cf2d98ac2dfa0ff1cb3faa38fbb64dd88ac8013d800" +dependencies = [ + "block-buffer 0.9.0", + "cfg-if", + "cpufeatures 0.2.17", + "digest 0.9.0", + "opaque-debug", +] + +[[package]] +name = "sha2" +version = "0.10.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" +dependencies = [ + "cfg-if", + "cpufeatures 0.2.17", + "digest 0.10.7", +] + +[[package]] +name = "sharded-slab" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" +dependencies = [ + "lazy_static", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "signal-hook-registry" +version = "1.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" +dependencies = [ + "errno", + "libc", +] + +[[package]] +name = "simd-adler32" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e320a6c5ad31d271ad523dcf3ad13e2767ad8b1cb8f047f75a8aeaf8da139da2" + +[[package]] +name = "siphasher" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" + +[[package]] +name = "slab" +version = "0.4.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a2ae44ef20feb57a68b23d846850f861394c2e02dc425a50098ae8c90267589" + +[[package]] +name = "smallvec" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" + +[[package]] +name = "smawk" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7c388c1b5e93756d0c740965c41e8822f866621d41acbdf6336a6a168f8840c" + +[[package]] +name = "socket2" +version = "0.5.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e22376abed350d73dd1cd119b57ffccad95b4e585a7cda43e286245ce23c0678" +dependencies = [ + "libc", + "windows-sys 0.52.0", +] + +[[package]] +name = "socket2" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86f4aa3ad99f2088c990dfa82d367e19cb29268ed67c574d10d0a4bfe71f07e0" +dependencies = [ + "libc", + "windows-sys 0.60.2", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + +[[package]] +name = "stringcase" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04028eeb851ed08af6aba5caa29f2d59a13ed168cee4d6bd753aeefcf1d636b0" + +[[package]] +name = "stringcase" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72abeda133c49d7bddece6c154728f83eec8172380c80ab7096da9487e20d27c" + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4d107df263a3013ef9b1879b0df87d706ff80f65a86ea879bd9c31f9b307c2a" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sync_wrapper" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" +dependencies = [ + "futures-core", +] + +[[package]] +name = "synstructure" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "tar" +version = "0.4.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d863878d212c87a19c1a610eb53bb01fe12951c0501cf5a0d65f724914a667a" +dependencies = [ + "filetime", + "libc", + "xattr", +] + +[[package]] +name = "tempfile" +version = "3.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "655da9c7eb6305c55742045d5a8d2037996d61d8de95806335c7c86ce0f82e9c" +dependencies = [ + "fastrand", + "getrandom 0.3.4", + "once_cell", + "rustix", + "windows-sys 0.61.2", +] + +[[package]] +name = "textwrap" +version = "0.16.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c13547615a44dc9c452a8a534638acdf07120d4b6847c8178705da06306a3057" +dependencies = [ + "smawk", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4" +dependencies = [ + "thiserror-impl 2.0.18", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "thread_local" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "time" +version = "0.3.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9da98b7d9b7dad93488a84b8248efc35352b0b2657397d4167e7ad67e5d535e5" +dependencies = [ + "deranged", + "itoa", + "num-conv", + "powerfmt", + "serde_core", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca" + +[[package]] +name = "time-macros" +version = "0.2.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78cc610bac2dcee56805c99642447d4c5dbde4d01f752ffea0199aee1f601dc4" +dependencies = [ + "num-conv", + "time-core", +] + +[[package]] +name = "tiny-keccak" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237" +dependencies = [ + "crunchy", +] + +[[package]] +name = "tinystr" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42d3e9c45c09de15d06dd8acf5f4e0e399e85927b7f00711024eb7ae10fa4869" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tinyvec" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa5fdc3bce6191a1dbc8c02d5c8bffcf557bafa17c124c5264a458f1b0613fa" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "tokio" +version = "1.49.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72a2903cd7736441aac9df9d7688bd0ce48edccaadf181c3b90be801e81d3d86" +dependencies = [ + "bytes", + "libc", + "mio", + "parking_lot", + "pin-project-lite", + "signal-hook-registry", + "socket2 0.6.2", + "tokio-macros", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-listener" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8a49c7295dbf705691c238002e4be940d5e0605f204683b1c8e55490032c79d" +dependencies = [ + "axum", + "document-features", + "futures-core", + "futures-util", + "nix", + "pin-project", + "serde", + "serde_with", + "socket2 0.5.10", + "tokio", + "tokio-util", + "tracing", +] + +[[package]] +name = "tokio-macros" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af407857209536a95c8e56f8231ef2c2e2aff839b22e07a1ffcbc617e9db9fa5" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "tokio-rustls" +version = "0.26.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61" +dependencies = [ + "rustls 0.23.36", + "tokio", +] + +[[package]] +name = "tokio-stream" +version = "0.1.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32da49809aab5c3bc678af03902d4ccddea2a87d028d86392a4b1560c6906c70" +dependencies = [ + "futures-core", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "tokio-tungstenite" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "489a59b6730eda1b0171fcfda8b121f4bee2b35cba8645ca35c5f7ba3eb736c1" +dependencies = [ + "futures-util", + "log", + "tokio", + "tungstenite", +] + +[[package]] +name = "tokio-util" +version = "0.7.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "toml" +version = "0.5.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" +dependencies = [ + "serde", +] + +[[package]] +name = "toml" +version = "0.9.11+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3afc9a848309fe1aaffaed6e1546a7a14de1f935dc9d89d32afd9a44bab7c46" +dependencies = [ + "indexmap 2.13.0", + "serde_core", + "serde_spanned", + "toml_datetime", + "toml_parser", + "toml_writer", + "winnow", +] + +[[package]] +name = "toml_datetime" +version = "0.7.5+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_parser" +version = "1.0.6+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3198b4b0a8e11f09dd03e133c0280504d0801269e9afa46362ffde1cbeebf44" +dependencies = [ + "winnow", +] + +[[package]] +name = "toml_writer" +version = "1.0.6+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab16f14aed21ee8bfd8ec22513f7287cd4a91aa92e44edfe2c17ddd004e92607" + +[[package]] +name = "tower" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper", + "tokio", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tower-http" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4e6559d53cc268e5031cd8429d05415bc4cb4aefc4aa5d6cc35fbf5b924a1f8" +dependencies = [ + "bitflags 2.10.0", + "bytes", + "futures-util", + "http", + "http-body", + "iri-string", + "pin-project-lite", + "tower", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-layer" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + +[[package]] +name = "tower-service" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "log", + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", + "valuable", +] + +[[package]] +name = "tracing-log" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" +dependencies = [ + "log", + "once_cell", + "tracing-core", +] + +[[package]] +name = "tracing-subscriber" +version = "0.3.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f30143827ddab0d256fd843b7a66d164e9f271cfa0dde49142c5ca0ca291f1e" +dependencies = [ + "matchers", + "nu-ansi-term", + "once_cell", + "regex-automata", + "sharded-slab", + "smallvec", + "thread_local", + "tracing", + "tracing-core", + "tracing-log", +] + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "tungstenite" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eadc29d668c91fcc564941132e17b28a7ceb2f3ebf0b9dae3e03fd7a6748eb0d" +dependencies = [ + "bytes", + "data-encoding", + "http", + "httparse", + "log", + "rand 0.9.2", + "sha1", + "thiserror 2.0.18", + "utf-8", +] + +[[package]] +name = "typeid" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c" + +[[package]] +name = "typenum" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb" + +[[package]] +name = "ucd-trie" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2896d95c02a80c6d6a5d6e953d479f5ddf2dfdb6a244441010e373ac0fb88971" + +[[package]] +name = "unicode-ident" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5" + +[[package]] +name = "unicode-segmentation" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" + +[[package]] +name = "uniffi" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c866f627c3f04c3df068b68bb2d725492caaa539dd313e2a9d26bb85b1a32f4e" +dependencies = [ + "anyhow", + "camino", + "cargo_metadata", + "clap", + "uniffi_bindgen", + "uniffi_build", + "uniffi_core", + "uniffi_macros", + "uniffi_pipeline", +] + +[[package]] +name = "uniffi-dart" +version = "0.1.0" +source = "git+https://github.com/Uniffi-Dart/uniffi-dart.git?rev=5bdcc79#5bdcc790c3fc99845e7b4a61d7a4f6e1460896e9" +dependencies = [ + "anyhow", + "camino", + "genco", + "heck", + "lazy_static", + "paste", + "proc-macro2", + "serde", + "stringcase 0.4.0", + "toml 0.9.11+spec-1.1.0", + "uniffi", + "uniffi_bindgen", + "uniffi_dart_macro", +] + +[[package]] +name = "uniffi_bindgen" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c8ca600167641ebe7c8ba9254af40492dda3397c528cc3b2f511bd23e8541a5" +dependencies = [ + "anyhow", + "askama", + "camino", + "cargo_metadata", + "fs-err 2.11.0", + "glob", + "goblin", + "heck", + "indexmap 2.13.0", + "once_cell", + "serde", + "tempfile", + "textwrap", + "toml 0.9.11+spec-1.1.0", + "uniffi_internal_macros", + "uniffi_meta", + "uniffi_pipeline", + "uniffi_udl", +] + +[[package]] +name = "uniffi_build" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e55c05228f4858bb258f651d21d743fcc1fe5a2ec20d3c0f9daefddb105ee4d" +dependencies = [ + "anyhow", + "camino", + "uniffi_bindgen", +] + +[[package]] +name = "uniffi_core" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e7a5a038ebffe8f4cf91416b154ef3c2468b18e828b7009e01b1b99938089f9" +dependencies = [ + "anyhow", + "async-compat", + "bytes", + "once_cell", + "static_assertions", +] + +[[package]] +name = "uniffi_dart_macro" +version = "0.1.0" +source = "git+https://github.com/Uniffi-Dart/uniffi-dart.git?rev=5bdcc79#5bdcc790c3fc99845e7b4a61d7a4f6e1460896e9" +dependencies = [ + "futures", + "proc-macro2", + "quote", + "stringcase 0.3.0", + "syn 1.0.109", + "uniffi", +] + +[[package]] +name = "uniffi_internal_macros" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3c2a6f93e7b73726e2015696ece25ca0ac5a5f1cf8d6a7ab5214dd0a01d2edf" +dependencies = [ + "anyhow", + "indexmap 2.13.0", + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "uniffi_macros" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64c6309fc36c7992afc03bc0c5b059c656bccbef3f2a4bc362980017f8936141" +dependencies = [ + "camino", + "fs-err 2.11.0", + "once_cell", + "proc-macro2", + "quote", + "serde", + "syn 2.0.114", + "toml 0.9.11+spec-1.1.0", + "uniffi_meta", +] + +[[package]] +name = "uniffi_meta" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a138823392dba19b0aa494872689f97d0ee157de5852e2bec157ce6de9cdc22" +dependencies = [ + "anyhow", + "siphasher", + "uniffi_internal_macros", + "uniffi_pipeline", +] + +[[package]] +name = "uniffi_pipeline" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c27c4b515d25f8e53cc918e238c39a79c3144a40eaf2e51c4a7958973422c29" +dependencies = [ + "anyhow", + "heck", + "indexmap 2.13.0", + "tempfile", + "uniffi_internal_macros", +] + +[[package]] +name = "uniffi_udl" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0adacdd848aeed7af4f5af7d2f621d5e82531325d405e29463482becfdeafca" +dependencies = [ + "anyhow", + "textwrap", + "uniffi_meta", + "weedle2", +] + +[[package]] +name = "universal-hash" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8326b2c654932e3e4f9196e69d08fdf7cfd718e1dc6f66b347e6024a0c961402" +dependencies = [ + "generic-array", + "subtle", +] + +[[package]] +name = "universal-hash" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea" +dependencies = [ + "crypto-common", + "subtle", +] + +[[package]] +name = "untrusted" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + +[[package]] +name = "url" +version = "2.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", + "serde_derive", +] + +[[package]] +name = "utf-8" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "utf8parse" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" + +[[package]] +name = "valuable" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "want" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +dependencies = [ + "try-lock", +] + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasip2" +version = "1.0.2+wasi-0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.108" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64024a30ec1e37399cf85a7ffefebdb72205ca1c972291c51512360d90bd8566" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.58" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70a6e77fd0ae8029c9ea0063f87c46fde723e7d887703d74ad2616d792e51e6f" +dependencies = [ + "cfg-if", + "futures-util", + "js-sys", + "once_cell", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.108" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "008b239d9c740232e71bd39e8ef6429d27097518b6b30bdf9086833bd5b6d608" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.108" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5256bae2d58f54820e6490f9839c49780dff84c65aeab9e772f15d5f0e913a55" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 2.0.114", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.108" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f01b580c9ac74c8d8f0c0e4afb04eeef2acf145458e52c03845ee9cd23e3d12" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "web-sys" +version = "0.3.85" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "312e32e551d92129218ea9a2452120f4aabc03529ef03e4d0d82fb2780608598" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web-time" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "webpki-roots" +version = "0.25.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f20c57d8d7db6d3b86154206ae5d8fba62dd39573114de97c2cb0578251f8e1" + +[[package]] +name = "webpki-roots" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12bed680863276c63889429bfd6cab3b99943659923822de1c8a39c49e4d722c" +dependencies = [ + "rustls-pki-types", +] + +[[package]] +name = "weedle2" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "998d2c24ec099a87daf9467808859f9d82b61f1d9c9701251aea037f514eae0e" +dependencies = [ + "nom", +] + +[[package]] +name = "which" +version = "3.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d011071ae14a2f6671d0b74080ae0cd8ebf3a6f8c9589a2cd45f23126fe29724" +dependencies = [ + "libc", +] + +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" +dependencies = [ + "windows-targets 0.53.5", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm 0.52.6", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows-targets" +version = "0.53.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3" +dependencies = [ + "windows-link", + "windows_aarch64_gnullvm 0.53.1", + "windows_aarch64_msvc 0.53.1", + "windows_i686_gnu 0.53.1", + "windows_i686_gnullvm 0.53.1", + "windows_i686_msvc 0.53.1", + "windows_x86_64_gnu 0.53.1", + "windows_x86_64_gnullvm 0.53.1", + "windows_x86_64_msvc 0.53.1", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_i686_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" + +[[package]] +name = "winnow" +version = "0.7.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a5364e9d77fcdeeaa6062ced926ee3381faa2ee02d3eb83a5c27a8825540829" +dependencies = [ + "memchr", +] + +[[package]] +name = "wit-bindgen" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" + +[[package]] +name = "writeable" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9edde0db4769d2dc68579893f2306b26c6ecfbe0ef499b013d731b7b9247e0b9" + +[[package]] +name = "x509-parser" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb3e137310115a65136898d2079f003ce33331a6c4b0d51f1531d1be082b6425" +dependencies = [ + "asn1-rs", + "data-encoding", + "der-parser", + "lazy_static", + "nom", + "oid-registry", + "ring", + "rusticata-macros", + "thiserror 2.0.18", + "time", +] + +[[package]] +name = "xattr" +version = "1.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32e45ad4206f6d2479085147f02bc2ef834ac85886624a23575ae137c8aa8156" +dependencies = [ + "libc", + "rustix", +] + +[[package]] +name = "yaml-rust2" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2462ea039c445496d8793d052e13787f2b90e750b833afee748e601c17621ed9" +dependencies = [ + "arraydeque", + "encoding_rs", + "hashlink", +] + +[[package]] +name = "yasna" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e17bb3549cc1321ae1296b9cdc2698e2b6cb1992adfa19a8c72e5b7a738f44cd" +dependencies = [ + "time", +] + +[[package]] +name = "yoke" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72d6e5c6afb84d73944e5cedb052c4680d5657337201555f9f2a16b7406d4954" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b659052874eb698efe5b9e8cf382204678a0086ebf46982b79d6ca3182927e5d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", + "synstructure", +] + +[[package]] +name = "zerocopy" +version = "0.8.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71ddd76bcebeed25db614f82bf31a9f4222d3fbba300e6fb6c00afa26cbd4d9d" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8187381b52e32220d50b255276aa16a084ec0a9017a0ca2152a1f55c539758d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "zerofrom" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", + "synstructure", +] + +[[package]] +name = "zeroize" +version = "1.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0" +dependencies = [ + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85a5b4158499876c763cb03bc4e49185d3cccbabb15b33c627f7884f43db852e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "zerotrie" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a59c17a5562d507e4b54960e8569ebee33bee890c70aa3fe7b97e85a9fd7851" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c28719294829477f525be0186d13efa9a3c602f7ec202ca9e353d310fb9a002" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eadce39539ca5cb3985590102671f2567e659fca9666581ad3411d59207951f3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "zip" +version = "0.6.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "760394e246e4c28189f19d488c058bf16f564016aefac5d32bb1f3b51d5e9261" +dependencies = [ + "byteorder", + "bzip2", + "crc32fast", + "crossbeam-utils", + "flate2", +] + +[[package]] +name = "zmij" +version = "1.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02aae0f83f69aafc94776e879363e9771d7ecbffe2c7fbb6c14c5e00dfe88439" diff --git a/payjoin-ffi/dart/pubspec.yaml b/payjoin-ffi/dart/pubspec.yaml index 4995a8fd4..753e5a06d 100644 --- a/payjoin-ffi/dart/pubspec.yaml +++ b/payjoin-ffi/dart/pubspec.yaml @@ -7,12 +7,27 @@ environment: dependencies: ffi: ^2.1.4 - hooks: any - code_assets: any + hooks: ^1.0.0 + code_assets: ^1.0.0 native_toolchain_rust: ^1.0.0 + crypto: ^3.0.7 + ed25519_edwards: ^0.3.1 + http: ^1.6.0 + logging: ^1.3.0 + path: ^1.9.1 + toml: ^0.18.0 + yaml: ^3.1.3 + convert: ^3.1.2 dev_dependencies: test: ^1.26.2 - http: ^1.4.0 hooks: build: hook/build.dart + +executables: + build_tool: build_tool + +payjoin: + precompiled_binaries: + artifact_host: payjoin/rust-payjoin + public_key: