Bump uniffi-rs to 0.19.3 (#173)

This commit is contained in:
thunderbiscuit
2022-07-25 15:15:23 -04:00
committed by GitHub
parent 1a20d0a6c2
commit fa5c67cd05
3 changed files with 10 additions and 8 deletions

View File

@@ -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 {
@@ -44,11 +45,13 @@ impl FromStr for Language {
}
fn generate_bindings(opt: &Opt) -> anyhow::Result<(), anyhow::Error> {
let path: &Utf8Path = Utf8Path::from_path(&opt.udl_file).unwrap();
let out_dir: &Utf8Path = Utf8Path::from_path(&opt.out_dir).unwrap();
uniffi_bindgen::generate_bindings(
&opt.udl_file,
path,
None,
vec![opt.language.to_string().as_str()],
Some(&opt.out_dir),
Some(out_dir),
false,
)?;