setuptools-rust icon indicating copy to clipboard operation
setuptools-rust copied to clipboard

support UniFFI bindings

Open tomtau opened this issue 3 years ago • 1 comments
trafficstars

https://github.com/mozilla/uniffi-rs Python bindings can be generated via: uniffi-bindgen generate [...path to the UDL file...] --config uniffi.toml --language python --out-dir [...output path...]

sample toml config: https://github.com/mozilla/uniffi-rs/blob/e7ff0dafda31d413ba94065c2f7039166ae03e94/examples/custom-types/uniffi.toml#L26

tomtau avatar Jul 18 '22 08:07 tomtau

Thanks for the suggestion! I don't have the capacity to implement this myself right now, would accept a PR from anyone who wants this 👍

davidhewitt avatar Jul 20 '22 05:07 davidhewitt

FYI, I've added UniFFI bindings support in maturin v0.14: https://github.com/PyO3/maturin/pull/1275.

For setuptools-rust you can already wrap UniFFI bindings via NoBinding, for example https://github.com/bitcoindevkit/bdk-ffi/blob/3edda27ef25a254b9bce977ea79500e57dfcecf0/bdk-python/setup.py#L54-L58

messense avatar Nov 23 '22 16:11 messense

I think as maturin has this, and also there is a workaround via NoBinding, I'm going to close this as unnecessary.

davidhewitt avatar Aug 11 '23 19:08 davidhewitt