Skip to content

Commit

Permalink
Upgrade pyo3 to 0.22.0, uniffi to 0.28.0
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Jun 25, 2024
1 parent 3add89a commit e758d1e
Show file tree
Hide file tree
Showing 49 changed files with 739 additions and 2,910 deletions.
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ linux_aarch64_task:
- echo $CIRRUS_OS
- cat Cargo.lock
install_script:
- python3 -m pip install uniffi-bindgen==0.27.0
- python3 -m pip install uniffi-bindgen==0.28.0
<<: *BUILD_AND_TEST
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ jobs:
if: ${{ !contains(matrix.platform.python-version, 'pypy') }}
run: pip install cffi
- name: Install python packages
run: pip install virtualenv ziglang~=0.10.0 twine uniffi-bindgen==0.27.0
run: pip install virtualenv ziglang~=0.10.0 twine uniffi-bindgen==0.28.0
- uses: dtolnay/rust-toolchain@stable
id: rustup
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ venv*/
.venv/
.pytest_cache/
.tox/
*.o
*.so
*.py[cdo]
__pycache__/
Expand Down
2 changes: 1 addition & 1 deletion guide/src/distribution.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ or providing any Windows Python library files.

```toml
[dependencies]
pyo3 = { version = "0.21.0", features = ["extension-module", "generate-import-lib"] }
pyo3 = { version = "0.22.0", features = ["extension-module", "generate-import-lib"] }
```

It uses an external [`python3-dll-a`](https://docs.rs/python3-dll-a/latest/python3_dll_a/) crate to
Expand Down
6 changes: 3 additions & 3 deletions src/templates/Cargo.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ crate-type = ["cdylib"]

[dependencies]
{% if bindings == "pyo3" -%}
pyo3 = "0.21.1"
pyo3 = "0.22.0"
{% elif bindings == "uniffi" -%}
uniffi = "0.27.0"
uniffi = "0.28.0"

[build-dependencies]
uniffi = { version = "0.27.0", features = ["build"] }
uniffi = { version = "0.28.0", features = ["build"] }
{% endif -%}
198 changes: 39 additions & 159 deletions test-crates/lib_with_disallowed_lib/Cargo.lock

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

2 changes: 1 addition & 1 deletion test-crates/lib_with_disallowed_lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ crate-type = ["cdylib"]

[dependencies]
libz-sys = { version = "1.1.2", default-features = false }
pyo3 = { version = "0.21.0", features = ["extension-module"] }
pyo3 = { version = "0.22.0", features = ["extension-module"] }
2 changes: 1 addition & 1 deletion test-crates/lib_with_path_dep/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ crate-type = ["cdylib"]

[dependencies]
# Don't use the macros feature, which makes compilation much faster
pyo3 = { version = "0.21.0", default-features = false, features = ["extension-module"] }
pyo3 = { version = "0.22.0", default-features = false, features = ["extension-module"] }
some_path_dep = { path = "../some_path_dep" }
Loading

0 comments on commit e758d1e

Please sign in to comment.