rsbinder-aidl

Crates.iorsbinder-aidl
lib.rsrsbinder-aidl
version0.5.0
created_at2024-01-27 08:28:29.882535+00
updated_at2025-12-29 14:54:54.354031+00
descriptionThis is a AIDL compiler for rsbinder.
homepagehttps://hiking90.github.io/rsbinder-book/
repositoryhttps://github.com/hiking90/rsbinder
max_upload_size
id1116587
size335,153
Jeff Kim (hiking90)

documentation

README

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

Commit count: 299

cargo fmt