You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The uniffi_bindgen_generate.sh script calls the uniffi-bindgen cli tool installed on the user's local machine, but if the tool is out of sync with the rest of the uniffi libraries used in Cargo.toml the bindings produced will often not work.
The long-term solution used by Mozilla and which we adopted in the bdk-ffi repo is to create and maintain within the repo a small cli tool which we call ourselves to generate the bindings file, in effect controlling which version of uniffi_bindgen is used to generate the glue file.
The short-term solution is to just add a note to the readme that specifies which version of the uniffi-bindgen tool developers should have on the local setup before running the uniffi_bindgen_generate.sh script. At the moment this is version 0.21.0, which can be downloaded using
cargo install uniffi_bindgen --version 0.21.0
The text was updated successfully, but these errors were encountered:
thunderbiscuit
changed the title
An out-of-sync uniffibindgen tool can be out of sync and create bugs
An out-of-sync uniffibindgen tool can create bugs
Jan 11, 2023
thunderbiscuit
changed the title
An out-of-sync uniffibindgen tool can create bugs
An out-of-sync uniffi-bindgen tool can create bugs
Jan 11, 2023
The
uniffi_bindgen_generate.sh
script calls theuniffi-bindgen
cli tool installed on the user's local machine, but if the tool is out of sync with the rest of the uniffi libraries used inCargo.toml
the bindings produced will often not work.The long-term solution used by Mozilla and which we adopted in the bdk-ffi repo is to create and maintain within the repo a small cli tool which we call ourselves to generate the bindings file, in effect controlling which version of uniffi_bindgen is used to generate the glue file.
The short-term solution is to just add a note to the readme that specifies which version of the uniffi-bindgen tool developers should have on the local setup before running the
uniffi_bindgen_generate.sh
script. At the moment this is version0.21.0
, which can be downloaded usingThe text was updated successfully, but these errors were encountered: