aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2020-11-05 03:10:20 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-11-05 03:10:20 +0000
commitbb57469a557668431a15a94aa8ac58463f2ab147 (patch)
treed374ff9d52ada71c361996185d7c87d85d218f8f
parentd4b94f2db88f0e83eef06efd22285110d8de87b2 (diff)
parent29da4258ca4d24020fac090035c5ca029c4bda5a (diff)
downloadgrpcio-bb57469a557668431a15a94aa8ac58463f2ab147.tar.gz
Regenerate .bp and replace env!("...") expressions am: 8beb80ba90 am: 29da4258ca
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/grpcio/+/1485536 Change-Id: I0d537487e5a8a868c6c02ca272f4792814e27ba2
-rw-r--r--Android.bp46
-rw-r--r--patches/env.diff16
-rw-r--r--src/channel.rs3
3 files changed, 23 insertions, 42 deletions
diff --git a/Android.bp b/Android.bp
index fe1f4e4..6c7c996 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,4 @@
-// This file is generated by cargo2android.py --run --device --dependencies.
+// This file is generated by cargo2android.py --run --device --dependencies --features=protobuf,protobuf-codec.
rust_library {
name: "libgrpcio",
@@ -21,55 +21,55 @@ rust_library {
}
// dependent_library ["feature_list"]
-// aho-corasick-0.7.13 "default,std"
+// aho-corasick-0.7.14 "default,std"
// bindgen-0.51.1
// bitflags-1.2.1 "default"
-// cc-1.0.60
+// cc-1.0.61
// cexpr-0.3.6
// cfg-if-0.1.10
// clang-sys-0.28.1 "clang_6_0,gte_clang_3_6,gte_clang_3_7,gte_clang_3_8,gte_clang_3_9,gte_clang_4_0,gte_clang_5_0,gte_clang_6_0,libloading,runtime"
// cmake-0.1.44
-// futures-0.3.5 "alloc,async-await,default,executor,futures-executor,std"
-// futures-channel-0.3.5 "alloc,futures-sink,sink,std"
-// futures-core-0.3.5 "alloc,std"
-// futures-executor-0.3.5 "std"
-// futures-io-0.3.5 "std"
-// futures-macro-0.3.5
-// futures-sink-0.3.5 "alloc,std"
-// futures-task-0.3.5 "alloc,once_cell,std"
-// futures-util-0.3.5 "alloc,async-await,async-await-macro,channel,futures-channel,futures-io,futures-macro,futures-sink,io,memchr,proc-macro-hack,proc-macro-nested,sink,slab,std"
+// futures-0.3.7 "alloc,async-await,default,executor,futures-executor,std"
+// futures-channel-0.3.7 "alloc,futures-sink,sink,std"
+// futures-core-0.3.7 "alloc,std"
+// futures-executor-0.3.7 "std"
+// futures-io-0.3.7 "std"
+// futures-macro-0.3.7
+// futures-sink-0.3.7 "alloc,std"
+// futures-task-0.3.7 "alloc,once_cell,std"
+// futures-util-0.3.7 "alloc,async-await,async-await-macro,channel,futures-channel,futures-io,futures-macro,futures-sink,io,memchr,proc-macro-hack,proc-macro-nested,sink,slab,std"
// glob-0.3.0
// grpcio-sys-0.6.0 "default"
// lazy_static-1.4.0
-// libc-0.2.77 "default,std"
+// libc-0.2.80 "default,std"
// libloading-0.5.2
// libz-sys-1.1.2 "default,libc,static,stock-zlib"
// lock_api-0.3.4
// log-0.4.11
-// memchr-2.3.3 "default,std,use_std"
+// memchr-2.3.4 "default,std,use_std"
// nom-4.2.3 "alloc,default,std,verbose-errors"
// once_cell-1.4.1 "std"
// parking_lot-0.10.2 "default"
// parking_lot_core-0.7.2
// peeking_take_while-0.1.2
-// pin-project-0.4.23
-// pin-project-internal-0.4.23
+// pin-project-1.0.1
+// pin-project-internal-1.0.1
// pin-utils-0.1.0
-// pkg-config-0.3.18
-// proc-macro-hack-0.5.18
+// pkg-config-0.3.19
+// proc-macro-hack-0.5.19
// proc-macro-nested-0.1.6
-// proc-macro2-1.0.21 "default,proc-macro"
-// protobuf-2.17.0
+// proc-macro2-1.0.24 "default,proc-macro"
+// protobuf-2.18.0
// quote-1.0.7 "default,proc-macro"
-// regex-1.3.9 "aho-corasick,default,memchr,perf,perf-cache,perf-dfa,perf-inline,perf-literal,std,thread_local,unicode,unicode-age,unicode-bool,unicode-case,unicode-gencat,unicode-perl,unicode-script,unicode-segment"
-// regex-syntax-0.6.18 "default,unicode,unicode-age,unicode-bool,unicode-case,unicode-gencat,unicode-perl,unicode-script,unicode-segment"
+// regex-1.4.2 "aho-corasick,default,memchr,perf,perf-cache,perf-dfa,perf-inline,perf-literal,std,thread_local,unicode,unicode-age,unicode-bool,unicode-case,unicode-gencat,unicode-perl,unicode-script,unicode-segment"
+// regex-syntax-0.6.21 "default,unicode,unicode-age,unicode-bool,unicode-case,unicode-gencat,unicode-perl,unicode-script,unicode-segment"
// rustc-hash-1.1.0 "default,std"
// same-file-1.0.6
// scopeguard-1.1.0
// shlex-0.1.1
// slab-0.4.2
// smallvec-1.4.2
-// syn-1.0.41 "clone-impls,default,derive,full,parsing,printing,proc-macro,quote,visit-mut"
+// syn-1.0.48 "clone-impls,default,derive,full,parsing,printing,proc-macro,quote,visit-mut"
// thread_local-1.0.1
// unicode-xid-0.2.1 "default"
// version_check-0.1.5
diff --git a/patches/env.diff b/patches/env.diff
deleted file mode 100644
index 61c4abb..0000000
--- a/patches/env.diff
+++ /dev/null
@@ -1,16 +0,0 @@
-diff --git a/src/channel.rs b/src/channel.rs
-index 7301fcb..13f2a1a 100644
---- a/src/channel.rs
-+++ b/src/channel.rs
-@@ -28,7 +28,10 @@ pub use crate::grpc_sys::{
-
- /// Ref: http://www.grpc.io/docs/guides/wire.html#user-agents
- fn format_user_agent_string(agent: &str) -> CString {
-- let version = env!("CARGO_PKG_VERSION");
-+ //let version = env!("CARGO_PKG_VERSION");
-+ // ANDROID's build system doesn't support environment variables
-+ // so we hardcode the package version here.
-+ let version = "0.6.0";
- let trimed_agent = agent.trim();
- let val = if trimed_agent.is_empty() {
- format!("grpc-rust/{}", version)
diff --git a/src/channel.rs b/src/channel.rs
index 13f2a1a..8fb7fc8 100644
--- a/src/channel.rs
+++ b/src/channel.rs
@@ -28,9 +28,6 @@ pub use crate::grpc_sys::{
/// Ref: http://www.grpc.io/docs/guides/wire.html#user-agents
fn format_user_agent_string(agent: &str) -> CString {
- //let version = env!("CARGO_PKG_VERSION");
- // ANDROID's build system doesn't support environment variables
- // so we hardcode the package version here.
let version = "0.6.0";
let trimed_agent = agent.trim();
let val = if trimed_agent.is_empty() {