14 unstable releases (3 breaking)

new 0.5.0 Dec 29, 2025
0.4.3 Oct 5, 2025
0.4.2 Sep 13, 2025
0.4.1 Jul 15, 2025
0.2.3 Mar 26, 2024

#699 in Development tools

Download history 581/week @ 2025-09-01 365/week @ 2025-09-08 756/week @ 2025-09-15 784/week @ 2025-09-22 624/week @ 2025-09-29 898/week @ 2025-10-06 663/week @ 2025-10-13 411/week @ 2025-10-20 701/week @ 2025-10-27 799/week @ 2025-11-03 799/week @ 2025-11-10 767/week @ 2025-11-17 429/week @ 2025-11-24 1461/week @ 2025-12-01 1401/week @ 2025-12-08 349/week @ 2025-12-15

3,641 downloads per month
Used in 3 crates (2 directly)

Apache-2.0

170KB
4.5K SLoC

rsbinder-aidl

This is an AIDL compiler for rsbinder.

How to use the AIDL Code Generator

Add dependencies to Cargo.toml:

[dependencies]
rsbinder = "0.5"

[build-dependencies]
rsbinder-aidl = { version = "0.5", features = ["async"] }

Create a build.rs file:

use std::path::PathBuf;

fn main() {
    rsbinder_aidl::Builder::new()
        .source(PathBuf::from("aidl/IMyService.aidl"))
        .output(PathBuf::from("my_service.rs"))
        .generate()
        .unwrap();
}

Sync-only Setup

For environments without async runtime:

[dependencies]
rsbinder = { version = "0.5", default-features = false }

[build-dependencies]
rsbinder-aidl = "0.5"

How to create AIDL file

Please read Android AIDL documents.

https://source.android.com/docs/core/architecture/aidl

Dependencies

~7–11MB
~203K SLoC