Skip to content

Flutter/Dart - Support prebuilt binaries as default (with opt-in source builds) #1308

@BitcoinZavior

Description

@BitcoinZavior

Which crate is this feature request for?

payjoin-ffi

Please describe the feature you'd like to see added.

Right now building from source is the default method, which means every user of this repository will need Rust + NDK + platform toolchains set up. This adds a lot of friction for regular Flutter devs who just want to add bdk as a dependency.

Proposal: Support multiple build modes:

Prebuilt - download from GitHub releases, verify checksums, no toolchain needed
Source - opt-in for custom builds, auditing, airgapped environments etc
Auto (default) - try prebuilt first, fall back to source if unavailable or verification fails

Binaries should be version-locked to the resolved package version and verified with SHA256. If download fails or checksum doesn't match, show a clear error with instructions to switch to source mode.
This keeps the zero-setup experience for most users while still supporting advanced use cases.

Is your feature related to a problem, if so please describe it.

No response

Describe the solution you'd like

No response

Describe any alternatives you've considered

No response

Please leave any additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions