Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open to contributions? Added 2 features: 1. Java Binder <=> Rust SpIBinder, 2. UnstructuredParcelables (custom parcelables) #6

Open
PLeVasseur opened this issue Feb 20, 2024 · 0 comments

Comments

@PLeVasseur
Copy link

PLeVasseur commented Feb 20, 2024

Hi there 👋

I'm using this crate as a part of our uProtocol development work. Your crate is an awesome way to avoid having to build out of the Android Open Source Project when interacting with Binder through Rust. From what I've seen it allows us to avoid having to fall into compiling a lot of our project out the AOSP, since it tends to be all-consuming. (I spent a couple of weeks trying to get just a few dependency crates compiling haha)

You can find my fork here.

Would you folks be open to contributions into upstream & then publishing a new version with the updates to crates.io?

I have extended it with two new functionalities for our use case:

  1. We can now use custom parcelables in Rust. This feature was added to the Android Open Source Project (AOSP) about a month ago.
    • In support of our usage of Protobuf for serialization and deserialization -- we needed that same ability in Rust
  2. We can now interoperate with Java by receiving / sending Binder objects through the JNI and transforming them to the appropriate Rust Binder objects.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant