mozilla / ffi-support

A crate to help expose Rust functions over the FFI.
Apache License 2.0
40 stars 5 forks source link

Provide default `IntoFfi` impl for `*c_void`. #4

Closed rfk closed 3 years ago

rfk commented 3 years ago

The caller may have had some safety things to worry about when they were obtaining the *c_void, but once they'd obtained one then we can assume it's safe to send over the FFI.

This is in service of https://github.com/mozilla/uniffi-rs/pull/462 which currently hacks around it with a wrapper type.

rfk commented 3 years ago

Thanks both!