Skip to content

Commit

Permalink
Updated latest binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
i5hi committed Feb 3, 2024
1 parent 113e174 commit ae03142
Show file tree
Hide file tree
Showing 6 changed files with 338 additions and 575 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The top level directory of this project is a dart/flutter pub library.
The `rust` folder containers the core code which uses the `boltz-rust` crate internally to expose an abstracted API to manage boltz swaps.

## Dependencies
Docker is required for linux builds.

```bash
cargo install flutter_rust_bridge_codegen
Expand All @@ -27,11 +28,18 @@ types.rs structures and enums are also re-exported via api.rs
# in the project root directory

./compile.native.sh # build for your native platform (linux/macos). adds binary to dart test folder.
./compile.android.sh # build for android (workds on linux and macos hosts)
./compile.ios.sh # build for ios (can only build on macos hosts)

```

## MacOS as host

macos as the host machine can build binaries for all platforms using:

```bash
# requires dockerd running
./compile.all.sh
```

Compile will first build native binaries of the rust code and move them to the dart test folder.

It will then run flutter_rust_bridge_codegen and generate ffi code in rust and dart.
Expand Down
Loading

0 comments on commit ae03142

Please sign in to comment.