kawamuray / wasmtime-java

Java or JVM-language binding for Wasmtime
Apache License 2.0
127 stars 29 forks source link

Add convenience methods for enumerating externs #27

Closed dsyer closed 2 years ago

dsyer commented 2 years ago

It's useful to be able to list and inspect the externs (exports) in a module. The linker has all the information it needs but it wasn't exposing it to Java clients until this change.

dsyer commented 2 years ago

Thanks for the feedback. This is my first ever code with Rust, so it's probably a copy-pasta disasta. It might be more efficient to close the PR and make the changes you suggest yourself, but I'm happy to slog through them if you have time.