bitfriend / ffi-gen

Call rust from any language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ffi-gen

Call rust from any language. Take a look at the example to get you started.

This requires wasm-multi-value-reverse-polyfill to be in your path when targeting js:

cargo install --git https://github.com/vmx/wasm-multi-value-reverse-polyfill --locked

Usage

You need #![feature(vec_into_raw_parts)] enabled on the nightly compilier on your crate, for the API bindings to work.

Supported languages

  • dart
  • js

License

Apache-2.0 OR MIT

About

Call rust from any language.


Languages

Language:Rust 93.4%Language:JavaScript 5.3%Language:Dart 0.7%Language:RenderScript 0.4%Language:HTML 0.1%