summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Geisler <mgeisler@google.com>2024-05-02 11:24:46 +0200
committerMartin Geisler <mgeisler@google.com>2024-05-02 11:24:46 +0200
commitd353d97a3b78c2ab02e720119f701dff313e065f (patch)
tree5b9e72c29031b249ecf579a8ac15d610480c9278
parent214d7b9c75394bf33312483f5afdc73d53e8273a (diff)
downloadmls-rs-codec-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: Ia00ed78a416839f3e3087524f557fe5e5ccf4d7c
-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 41c31d8..d32e137 100644
--- a/Android.bp
+++ b/Android.bp
@@ -31,6 +31,7 @@ rust_library {
"preallocate",
"std",
],
+ cfgs: ["mls_build_async"],
rustlibs: ["libthiserror"],
proc_macros: ["libmls_rs_codec_derive"],
apex_available: [
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"]
}