Upgrade uniffi-rs to 0.23.0 and migrate Gradle plugins

This commit is contained in:
thunderbiscuit
2023-02-27 14:43:52 -05:00
parent a75c868eb2
commit c93f292b0e
7 changed files with 161 additions and 73 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "bdk-ffi"
version = "0.27.0"
version = "0.27.1"
authors = ["Steve Myers <steve@notmandatory.org>", "Sudarsan Balaji <sudarsan.balaji@artfuldev.com>"]
edition = "2018"
license = "MIT OR Apache-2.0"
@@ -9,13 +9,16 @@ license = "MIT OR Apache-2.0"
crate-type = ["staticlib", "cdylib"]
name = "bdkffi"
[[bin]]
name = "uniffi-bindgen"
path = "uniffi-bindgen.rs"
[dependencies]
bdk = { version = "0.27.1", features = ["all-keys", "use-esplora-ureq", "sqlite-bundled", "rpc"] }
uniffi_macros = { version = "0.21.0", features = ["builtin-bindgen"] }
uniffi = { version = "0.21.0", features = ["builtin-bindgen"] }
uniffi = { version = "0.23.0" }
[build-dependencies]
uniffi_build = { version = "0.21.0", features = ["builtin-bindgen"] }
uniffi = { version = "0.23.0", features = ["build"] }
[dev-dependencies]
assert_matches = "1.5.0"

View File

@@ -1,3 +1,3 @@
fn main() {
uniffi_build::generate_scaffolding("src/bdk.udl").unwrap();
uniffi::generate_scaffolding("./src/bdk.udl").unwrap();
}

View File

@@ -32,7 +32,7 @@ use std::io::Cursor;
use std::str::FromStr;
use std::sync::Arc;
uniffi_macros::include_scaffolding!("bdk");
uniffi::include_scaffolding!("bdk");
/// A output script and an amount of satoshis.
pub struct ScriptAmount {

View File

@@ -0,0 +1,3 @@
fn main() {
uniffi::uniffi_bindgen_main()
}