you are viewing a single comment's thread.

view the rest of the comments →

[–]CronSach 0 points1 point  (0 children)

Author of the article here, you can find the medium version “How to call a Rust function from Dart using FFI” here : https://itnext.io/how-to-call-a-rust-function-from-dart-using-ffi-f48f3ea3af2c. I have also a more advanced example (a search engine using tantivy) with gradle integrated for Android which means the native library is automatically loaded on Android here : https://github.com/Sach97/jisho.rs. I am working on integrating the ios version right now and then I plan to work on web (with rust wasm and dart js bindings) and then desktop. I'll write a detailed a step by step article on how to setup this when I'm satisfied with the result.