android13/external/rust/crates/grpcio-sys
liiir1985 7f62dcda9f initial 2024-06-22 20:45:49 +08:00
..
android initial 2024-06-22 20:45:49 +08:00
bindings initial 2024-06-22 20:45:49 +08:00
grpc initial 2024-06-22 20:45:49 +08:00
patches initial 2024-06-22 20:45:49 +08:00
src initial 2024-06-22 20:45:49 +08:00
.cargo_vcs_info.json initial 2024-06-22 20:45:49 +08:00
Android.bp initial 2024-06-22 20:45:49 +08:00
Cargo.toml initial 2024-06-22 20:45:49 +08:00
Cargo.toml.orig initial 2024-06-22 20:45:49 +08:00
LICENSE initial 2024-06-22 20:45:49 +08:00
METADATA initial 2024-06-22 20:45:49 +08:00
MODULE_LICENSE_APACHE2 initial 2024-06-22 20:45:49 +08:00
OWNERS initial 2024-06-22 20:45:49 +08:00
README.android initial 2024-06-22 20:45:49 +08:00
TEST_MAPPING initial 2024-06-22 20:45:49 +08:00
build.rs initial 2024-06-22 20:45:49 +08:00
cargo2android.json initial 2024-06-22 20:45:49 +08:00
grpc_wrap.cc initial 2024-06-22 20:45:49 +08:00
post_update.sh initial 2024-06-22 20:45:49 +08:00

README.android

This package is imported to Android and uses Android's external/grpc-grpc
header files and compilation flags to generate bindings.

The Android.bp file is manually written due to:
    1. Binding to Android's existing copy of grpc instead of
       the copy that is bundled within the crate.
    2. The crates customized grpc_wrap.cc file that provides
       additional translation logic.
    3. A lot of bindgen customizations in build.rs.

The following line is added to android/bindgen_wrapper.h. It's unclear why this
is necessary, but building the grpcio crate fails without it.
#include <grpc/support/cpu.h>

If features are changed for the grpcio-sys crate, please ensure those
features are changed in the grpcio_bindgen module.