ndk icon indicating copy to clipboard operation
ndk copied to clipboard

use aidl to generate rust code

Open dvc94ch opened this issue 3 years ago • 1 comments

since google is using rust to write parts of android their aidl generator has a rust backend. seems like a viable option could be to scrape aidl files from aosp and use aidl (from android build tools) to generate bindings for all android apis including the ones currently only accessible through jni.

dvc94ch avatar Jun 12 '22 22:06 dvc94ch

@dvc94ch Just in case I claimed the aidl and ndk-aidl crate names for this purpose. Anything else we might want to preemptively claim for this?

I'd need one of the @rust-windowing/publishers to add the github:rust-windowing:publishers team to the crate though :/

EDIT: Turns out you're in it, I invited you for ownership to handle that :)

MarijnS95 avatar Jun 13 '22 08:06 MarijnS95

don't think this will work out. aidl contains java mixed in, so it doesn't just describe the interface.

dvc94ch avatar Nov 17 '22 16:11 dvc94ch