Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
- name: Ensure generated bindings exist
run: test -f lib/bdk.dart

- name: Check generated binding drift
run: git diff --exit-code -- lib/bdk.dart

- name: Pub get
run: dart pub get

Expand Down
2 changes: 1 addition & 1 deletion hook/build.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Future<void> main(List<String> args) async {
// config explicitly instead of relying on Cargo's working-directory lookup.
await RustBuilder(
assetName: 'uniffi:bdk_dart_ffi',
extraCargoBuildArgs: ['--config', cargoConfigPath],
extraCargoBuildArgs: ['--locked', '--config', cargoConfigPath],
).run(input: input, output: output);
});
}
6 changes: 3 additions & 3 deletions scripts/generate_bindings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ fi
# Navigate to the native directory to build the rust code using Cargo.toml
cd "$NATIVE_DIR"
echo "Building bdk-dart-ffi..."
cargo build --profile dev
cargo build --locked --profile dev

# Generate Dart bindings using local uniffi-bindgen wrapper
cargo run --profile dev --bin uniffi-bindgen -- generate --library --language dart --out-dir "$BDK_DART_DIR/lib/" "$NATIVE_DIR/target/debug/$LIBNAME"
cargo run --locked --profile dev --bin uniffi-bindgen -- generate --library --language dart --out-dir "$BDK_DART_DIR/lib/" "$NATIVE_DIR/target/debug/$LIBNAME"

echo "Bindings generated successfully!"
echo "Bindings generated successfully!"
Loading