From 7a36e08608f8184497fd847970faf3055812bc13 Mon Sep 17 00:00:00 2001 From: Hugo Drumond Jacob Date: Thu, 25 Apr 2024 09:41:02 +0200 Subject: Enable the sync feature The "sync" feature is enabled for tokio and tokio-util. Enable it in tokio-stream for completeness. Bug: 336565738 Test: Treehugger Change-Id: I08869ba80978fbb54f040d7dacdf2edba3cc5663 --- Android.bp | 7 ++++++- cargo_embargo.json | 7 ++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Android.bp b/Android.bp index 8083c73..338e797 100644 --- a/Android.bp +++ b/Android.bp @@ -1,5 +1,7 @@ // This file is generated by cargo_embargo. -// Do not modify this file as changes will be overridden on upgrade. +// Do not modify this file after the first "rust_*" or "genrule" module +// because the changes will be overridden on upgrade. +// Content before the first "rust_*" or "genrule" module is preserved. package { default_applicable_licenses: ["external_rust_crates_tokio-stream_license"], @@ -30,12 +32,15 @@ rust_library { "fs", "io-util", "net", + "sync", "time", + "tokio-util", ], rustlibs: [ "libfutures_core", "libpin_project_lite", "libtokio", + "libtokio_util", ], apex_available: [ "//apex_available:platform", diff --git a/cargo_embargo.json b/cargo_embargo.json index 2fff605..e4512bd 100644 --- a/cargo_embargo.json +++ b/cargo_embargo.json @@ -4,10 +4,11 @@ "com.android.btservices" ], "features": [ - "time", - "net", + "fs", "io-util", - "fs" + "net", + "sync", + "time" ], "min_sdk_version": "29", "run_cargo": false -- cgit v1.2.3