Skip to content

Commit

Permalink
Bump uniffi-rs to 0.19.3
Browse files Browse the repository at this point in the history
  • Loading branch information
thunderbiscuit committed Jul 25, 2022
1 parent 1a20d0a commit 6a52e69
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ name = "bdkffi"
[dependencies]
bdk = { version = "0.20", features = ["all-keys", "use-esplora-ureq", "sqlite-bundled"] }

uniffi_macros = { version = "0.16.0", features = ["builtin-bindgen"] }
uniffi = { version = "0.16.0", features = ["builtin-bindgen"] }
uniffi_macros = { version = "0.19.3", features = ["builtin-bindgen"] }
uniffi = { version = "0.19.3", features = ["builtin-bindgen"] }

[build-dependencies]
uniffi_build = { version = "0.16.0", features = ["builtin-bindgen"] }
uniffi_build = { version = "0.19.3", features = ["builtin-bindgen"] }
5 changes: 2 additions & 3 deletions bdk-ffi-bindgen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ name = "bdk-ffi-bindgen"
version = "0.2.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anyhow = "=1.0.45" # remove after upgrading to next version of uniffi
structopt = "0.3"
uniffi_bindgen = "0.16.0"
uniffi_bindgen = "0.19.3"
camino = "1.0.9"
6 changes: 4 additions & 2 deletions bdk-ffi-bindgen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use std::fmt;
use std::path::{Path, PathBuf};
use std::str::FromStr;
use structopt::StructOpt;
use camino::Utf8Path;

#[derive(Debug, PartialEq)]
pub enum Language {
Expand Down Expand Up @@ -44,11 +45,12 @@ impl FromStr for Language {
}

fn generate_bindings(opt: &Opt) -> anyhow::Result<(), anyhow::Error> {
let path: &Utf8Path = Utf8Path::from_path(&opt.udl_file).unwrap();
uniffi_bindgen::generate_bindings(
&opt.udl_file,
path,
None,
vec![opt.language.to_string().as_str()],
Some(&opt.out_dir),
Some(path),
false,
)?;

Expand Down

0 comments on commit 6a52e69

Please sign in to comment.