A (very dirty) configuration example of Project Panama.
Shell 47.9%
Batchfile 16.4%
Kotlin 13.9%
Nix 11.1%
Rust 10.3%
Other 0.5%
3 1 0

Clone this repository

https://tangled.org/bpavuk.neocities.org/rust-project-panama-example https://tangled.org/did:plc:ab5inzxnpw4j2zvzlxupr5ut/rust-project-panama-example
git@tangled.org:bpavuk.neocities.org/rust-project-panama-example git@tangled.org:did:plc:ab5inzxnpw4j2zvzlxupr5ut/rust-project-panama-example

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz
README.md

panama-exploration#

This is an example configuration of Project Panama:

  • rust-src cdylib crate connected as a library
  • Dynamically generated bindings in interop-panama
  • app Kotlin consumer module
  • A Nix flake that includes everything you need to reproduce the results everywhere Nix is available

I strongly advise you to use what Nix flake provides through nix develop or direnv allow. It’ll set up Cargo, glibc, and Azul Zulu Community JDK. That's all you need.

To run, simply execute ./gradlew run. If you want to learn more about how it works, dive into src-rust crate and interop-panama Gradle module, especially buildscript files.