mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 10:27:26 +08:00
* v2.1.0 [omit consensus and adjacent] - this commit will be amended with the full release after the file copy is complete * 2.1.0 main node rollup
15 lines
433 B
Bash
Executable File
15 lines
433 B
Bash
Executable File
#!/bin/bash
|
|
set -euxo pipefail
|
|
|
|
ROOT_DIR="${ROOT_DIR:-$( cd "$(dirname "$(realpath "$( dirname "${BASH_SOURCE[0]}" )")")" >/dev/null 2>&1 && pwd )}"
|
|
|
|
RUST_FERRET_PACKAGE="$ROOT_DIR/crates/ferret"
|
|
BINDINGS_DIR="$ROOT_DIR/ferret"
|
|
|
|
# Build the Rust FERRET package in release mode
|
|
cargo build -p ferret --release
|
|
|
|
# Generate Go bindings
|
|
pushd "$RUST_FERRET_PACKAGE" > /dev/null
|
|
uniffi-bindgen-go src/lib.udl -o "$BINDINGS_DIR"/generated
|