Cherry's Digital Space 🍒

When all else fails ... reboot.

Archives | About

Tag: bindings

  •  • by
    molotovcherry
      • Programming

    Rust JNI Macro

    rustkmagickjnikotlinproc-macrobindings

    So, during the implementation of KMagick, I came up against a problem: With hundreds of functions all needing to be wrapped in JNI calls, how was I ever going to manage creating so much boilerplate code? This led to me working hard to research the Rust AST and syn in order to create a fully working macro which autogenerates JNI FFI calls from Rust code without any effort!
    Read more...


Tags