astonbitecode / j4rs

Java for Rust
Apache License 2.0
641 stars 36 forks source link

support primitive arrays in to_rust #97

Closed pickleburger closed 7 months ago

pickleburger commented 7 months ago

This PR adds support for primitive arrays in to_rust. The Java array will be converted to a Vec with the corresponding element type.

The element type on the Rust side needs to match the one on the Java side. We use signed values for integral values except for char, which is also unsigned in Java.

astonbitecode commented 7 months ago

Thanks for the PR.

I will try to review it until the end of this week.

astonbitecode commented 7 months ago

Seems nice. Thank you!