We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uniffi supports using types from dependent crates, https://mozilla.github.io/uniffi-rs/proc_macro/index.html#types-from-dependent-crates. Consider a crate a which depends on b. This results in two python files being generated, a.py and b.py.
a
b
a.py
b.py
The types exposed by crate a are exported in a.py, and b in b.py. In order to correctly use the library both python files needs to be imported.
The sample repository https://github.com/Hinton/maturin-repro produces the following wheel:
a.whl a/ __init__.py a.py liba.dylib a-0.1.0.dist-info/
As noted, b.py is missing which is referenced by a.py.
maturin --version
1.4.0
python -V
3.9.6
pip -V
21.2.4
uniffi
cargo build
/
maturin build
target/wheels/a-0.1.0-py3-none-macosx_11_0_arm64.whl
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Bug Description
Uniffi supports using types from dependent crates, https://mozilla.github.io/uniffi-rs/proc_macro/index.html#types-from-dependent-crates. Consider a crate
a
which depends onb
. This results in two python files being generated,a.py
andb.py
.The types exposed by crate
a
are exported ina.py
, andb
inb.py
. In order to correctly use the library both python files needs to be imported.The sample repository https://github.com/Hinton/maturin-repro produces the following wheel:
As noted,
b.py
is missing which is referenced bya.py
.Your maturin version (
maturin --version
)1.4.0
Your Python version (
python -V
)3.9.6
Your pip version (
pip -V
)21.2.4
What bindings you're using
uniffi
Does
cargo build
work?If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash
/
)?Steps to Reproduce
maturin build
target/wheels/a-0.1.0-py3-none-macosx_11_0_arm64.whl
b.py
.b
missing since it's imported froma.py
.The text was updated successfully, but these errors were encountered: