5 releases

0.2.4 Sep 30, 2024
0.2.3 Mar 26, 2024
0.2.0 Feb 24, 2024
0.1.2 Feb 15, 2024
0.1.0 Jan 27, 2024

#526 in Development tools

Download history 35/week @ 2024-11-29 48/week @ 2024-12-06 47/week @ 2024-12-13 8/week @ 2024-12-20 5/week @ 2025-01-03 31/week @ 2025-01-10 28/week @ 2025-01-17 23/week @ 2025-01-24 5/week @ 2025-01-31 17/week @ 2025-02-07 90/week @ 2025-02-14 143/week @ 2025-02-21 94/week @ 2025-02-28 180/week @ 2025-03-07 189/week @ 2025-03-14

635 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

~7–16MB
~207K SLoC