Skip to content

Support various methods to download the bindgen

Users still need to keep the source code of this repository to use the latest version of the bindgen since the plugin always tries to install the bindgen from crates.io if the path is not specified. Since cargo install can install programs from a git repository, we can provide a function to make InstallBindgenTask to download the bindgen from this repository directly.

This PR introduces several functions that control how to download the bindgen to UniFfiExtension:

  • bindgenFromRegistry: Downloads the bindgen from crates.io. This is the default value.
  • bindgenFromPath: Installs the bindgen from source located in the given path.
  • bindgenFrom{Git, GitBranch, GitTag, GitRevision}: Downloads the bindgen from the given git repository.
Edited by Chanjung Kim

Merge request reports