bdk-ffi/generate.sh
Alekos Filini d2bbecc5f5
Build wheels using setuptools-rust
Build wheels in a more "standard" way using setuptools-rust, which makes
our life easier when dealing with multiple different platforms.

Also use the new bdk-ffi's `generate` binary instead of relying on
uniffi's bindgen cli.
2022-02-15 16:48:38 +01:00

10 lines
331 B
Bash

#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR=$(dirname "$(realpath $0)")
PY_SRC="${SCRIPT_DIR}/src/bdkpython/"
echo "Generating bdk.py..."
GENERATE_PYTHON_BINDINGS_OUT="$PY_SRC" GENERATE_PYTHON_BINDINGS_FIXUP_LIB_PATH=bdkffi cargo run --manifest-path ./bdk-ffi/Cargo.toml --release --bin generate --features generate-python