From 408b42f6d2223a9102865b618649afa017566714 Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Thu, 2 May 2024 11:22:37 +0200 Subject: Build with mls_build_async This switches the API to use async Rust throughout. We need async APIs for the Jetpack library. Bug: 337838209 Test: Presubmit Change-Id: Ie521ed22c4baffb2eb434c08a4e25259f57a22d0 --- Android.bp | 1 + cargo_embargo.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Android.bp b/Android.bp index 027c569..183200d 100644 --- a/Android.bp +++ b/Android.bp @@ -28,6 +28,7 @@ rust_proc_macro { cargo_pkg_version: "0.1.1", srcs: ["src/lib.rs"], edition: "2021", + cfgs: ["mls_build_async"], rustlibs: [ "libdarling", "libproc_macro2", diff --git a/cargo_embargo.json b/cargo_embargo.json index cb908d7..d0bed4a 100644 --- a/cargo_embargo.json +++ b/cargo_embargo.json @@ -1,3 +1,4 @@ { - "run_cargo": false + "run_cargo": false, + "extra_cfg": ["mls_build_async"] } -- cgit v1.2.3