A (very dirty) configuration example of Project Panama.
at main 14 lines 666 B view raw view rendered
1# panama-exploration 2 3This is an example configuration of Project Panama: 4 5- `rust-src` cdylib crate connected as a library 6- Dynamically generated bindings in `interop-panama` 7- `app` Kotlin consumer module 8- A Nix flake that includes everything you need to reproduce the results everywhere Nix is available 9 10I **strongly advise** you to use what Nix flake provides through `nix develop` or `direnv allow`. 11It’ll set up Cargo, glibc, and Azul Zulu Community JDK. That's all you need. 12 13To run, simply execute `./gradlew run`. If you want to learn more about how it works, dive into `src-rust` crate 14and `interop-panama` Gradle module, especially buildscript files.