rsbinder-aidl

Crates.iorsbinder-aidl
lib.rsrsbinder-aidl
version0.2.3
sourcesrc
created_at2024-01-27 08:28:29.882535
updated_at2024-03-26 11:09:07.118573
descriptionThis is a AIDL compiler for rsbinder.
homepagehttps://hiking90.github.io/rsbinder-book/
repositoryhttps://github.com/hiking90/rsbinder/rsbinder-aidl
max_upload_size
id1116587
size260,708
Jeff Kim (hiking90)

documentation

README

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

Commit count: 155

cargo fmt