#android #bindings #binder #ipc #tokio #mechanism #async

binder_tokio

Rust bindings for Android's Binder IPC mechanism

3 unstable releases

0.2.0 Aug 10, 2023
0.1.4 Aug 10, 2023
0.1.3 Aug 10, 2023

#6 in #binder

47 downloads per month

Apache-2.0

230KB
3.5K SLoC

This crate lets you use the Tokio spawn_blocking pool with AIDL in async Rust code.

This crate works by defining a type Tokio, which you can use as the generic parameter in the async version of the trait generated by the AIDL compiler.

use binder_tokio::Tokio;

binder::get_interface::<dyn SomeAsyncInterface<Tokio>>("...").

Dependencies

~3–11MB
~100K SLoC