Skip to content

Commit

Permalink
Add support for uniffi 0.23
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Feb 14, 2023
1 parent f69fdcc commit 03efb0e
Show file tree
Hide file tree
Showing 12 changed files with 165 additions and 148 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ jobs:
if: ${{ !contains(matrix.python-version, 'pypy') }}
run: pip install cffi
- name: Install python packages
run: pip install virtualenv ziglang~=0.10.0 twine uniffi-bindgen==0.22.0
run: pip install virtualenv ziglang~=0.10.0 twine uniffi-bindgen==0.23.0
- uses: dtolnay/rust-toolchain@beta
id: rustup
with:
Expand Down
5 changes: 2 additions & 3 deletions src/templates/Cargo.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ pyo3 = "0.18.1"
{% elif bindings == "rust-cpython" -%}
cpython = "0.7.1"
{% elif bindings == "uniffi" -%}
uniffi = "0.21.0"
uniffi_macros = "0.21.0"
uniffi = "0.23.0"

[build-dependencies]
uniffi_build = { version = "0.21.0", features = ["builtin-bindgen"] }
uniffi = { version = "0.23.0", features = ["build"] }
{% endif -%}
2 changes: 1 addition & 1 deletion src/templates/build.rs.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{%- if bindings == "uniffi" -%}
fn main() {
uniffi_build::generate_scaffolding("./src/example.udl").unwrap();
uniffi::generate_scaffolding("./src/example.udl").unwrap();
}
{% endif -%}
2 changes: 1 addition & 1 deletion src/templates/lib.rs.j2
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ fn add(a: u32, b: u32) -> u32 {
a + b
}

uniffi_macros::include_scaffolding!("example");
uniffi::include_scaffolding!("example");
{%- endif %}
142 changes: 76 additions & 66 deletions test-crates/uniffi-mixed/Cargo.lock

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

Loading

0 comments on commit 03efb0e

Please sign in to comment.