Skip to content

Commit

Permalink
Merge branch 'main' of github.com:antoniusnaumann/cargo-swift into main
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniusnaumann committed Sep 7, 2024
2 parents a6ec82f + 9d8b87c commit d52ae49
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 49 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Cargo Outdated
run: cargo outdated --exit-code 1
run: cargo outdated -i cargo_metadata --exit-code 1
- name: Cargo Audit
run: cargo audit -D warnings
74 changes: 30 additions & 44 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exclude = ["/readme", "/.github", "/testing", "/swift-examples", "*-DRAFT.md"]

[dependencies]
camino = "1.1.7"
cargo_metadata = "0.18.1"
cargo_metadata = "0.15.4"
clap = { version = "4.5.11", features = ["derive"] }
convert_case = "0.6.0"
glob = "0.3.1"
Expand All @@ -35,7 +35,7 @@ execute = "0.2.13"
indicatif = "0.17.8"

# FFI Bindings
uniffi_bindgen = { version = "0.28.0" }
uniffi_bindgen = { version = "=0.28.1" }

# Error Handling
anyhow = "1.0.86"
Expand Down
5 changes: 3 additions & 2 deletions src/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ use std::{
io,
};

use crate::Result;
use crate::{metadata::metadata, Result};
use camino::Utf8Path;
use uniffi_bindgen::bindings::SwiftBindingGenerator;
use uniffi_bindgen::{bindings::SwiftBindingGenerator, cargo_metadata::CrateConfigSupplier};

use crate::recreate_dir;

Expand All @@ -23,6 +23,7 @@ pub fn generate_bindings(lib_path: &Utf8Path) -> Result<()> {
lib_path,
None,
&SwiftBindingGenerator {},
&CrateConfigSupplier::from(metadata().clone()),
None,
out_dir,
false,
Expand Down

0 comments on commit d52ae49

Please sign in to comment.