4 releases

0.2.3 Mar 26, 2024
0.2.2 Mar 16, 2024
0.2.0 Feb 24, 2024
0.1.2 Feb 15, 2024
0.1.0 Jan 27, 2024

#657 in Development tools

Download history 1/week @ 2024-01-23 7/week @ 2024-01-30 118/week @ 2024-02-13 113/week @ 2024-02-20 120/week @ 2024-02-27 138/week @ 2024-03-05 128/week @ 2024-03-12 25/week @ 2024-03-19 142/week @ 2024-03-26 19/week @ 2024-04-02

193 downloads per month
Used in 3 crates (2 directly)

Apache-2.0

150KB
3.5K SLoC

rsbinder-aidl

This is an AIDL compiler for rsbinder.

How to use the AIDL Code Generator

  • Add the build-dependencies to Cargo.toml:
[build-dependencies]
rsbinder-aidl = "0.1.1"
  • Create a build.rs file in the root folder of the crate.
  • Add use std::path::PathBuf; to build.rs.
  • Add the following content:
rsbinder_aidl::Builder::new()
    .source(PathBuf::from("aidl/....")
    .source(PathBuf::from("aidl/....")
    .source(PathBuf::from("aidl/....")
    .output(PathBuf::from("aidl_name.rs")
    .generate().unwrap()

How to create AIDL file

Please read Android AIDL documents.

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

Dependencies

~8–10MB
~181K SLoC