summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Geisler <mgeisler@google.com>2024-05-02 11:22:37 +0200
committerMartin Geisler <mgeisler@google.com>2024-05-02 11:23:25 +0200
commit408b42f6d2223a9102865b618649afa017566714 (patch)
treee6b11818939dc0eb3180ac74c279709b7e8206dc
parent6a87c1e8567cc1ec38c8ace39f9680903102e7a5 (diff)
downloadmls-rs-codec-derive-main.tar.gz
Build with mls_build_asyncmain
This switches the API to use async Rust throughout. We need async APIs for the Jetpack library. Bug: 337838209 Test: Presubmit Change-Id: Ie521ed22c4baffb2eb434c08a4e25259f57a22d0
-rw-r--r--Android.bp1
-rw-r--r--cargo_embargo.json3
2 files changed, 3 insertions, 1 deletions
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"]
}