fluffyemily / cross-platform-rust

Example project showing a rust library running on iOS
280 stars 35 forks source link

Auto-generate FFI bindings #15

Open fluffyemily opened 7 years ago

fluffyemily commented 7 years ago

Figure out how to autogenerate bindings for JNI, Swift & JS flavours automatically. Should utilise existing tools where possible (e.g. cbindgen)

VMatrix1900 commented 5 years ago

Is there any tool available to autogenerate JNI bindings?

fluffyemily commented 5 years ago

There are a some small projects trying to address this such as Rust Swig but no one has completely solved this yet.

VMatrix1900 commented 5 years ago

Rust swig lacks support for many types.

On Mon, Feb 25, 2019 at 10:50 PM Emily Toop notifications@github.com wrote:

There are a some small projects trying to address this such as Rust Swig https://github.com/Dushistov/rust_swig but no one has completely solved this yet.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fluffyemily/cross-platform-rust/issues/15#issuecomment-467039382, or mute the thread https://github.com/notifications/unsubscribe-auth/ADyAE9K6V7857H6bPWRoXXNRNbgI1iGzks5vQ_hCgaJpZM4QOS9g .

-- Best regards Hang