Regenerate .bp and replace env!("...") expressions
* Use new regen_bp.sh to find/fix env!("...") expressions
* No need of local diff file or post_update.sh because
regen_bp.sh will fix any old/new env!("...") expressions.
Bug: 172299943
Test: build all rust crates
Change-Id: I3bfdbb5578096bc9752c8af980e8ca35a2f8679b
diff --git a/Android.bp b/Android.bp
index 2a35ac2..716b555 100644
--- a/Android.bp
+++ b/Android.bp
@@ -17,4 +17,4 @@
// dependent_library ["feature_list"]
// bitflags-1.2.1 "default"
// textwrap-0.11.0
-// unicode-width-0.1.7 "default"
+// unicode-width-0.1.8 "default"
diff --git a/src/macros.rs b/src/macros.rs
index 8198e19..969d42d 100644
--- a/src/macros.rs
+++ b/src/macros.rs
@@ -426,7 +426,7 @@
#[macro_export]
macro_rules! crate_version {
() => {
- env!("CARGO_PKG_VERSION")
+ "2.33.0"
};
}
@@ -472,7 +472,7 @@
unsafe {
ONCE.call_once(|| {
- let s = env!("CARGO_PKG_AUTHORS").replace(':', $sep);
+ let s = ["Kevin K. <[email protected]>"].join(":").replace(':', $sep);
VALUE = Box::into_raw(Box::new(s));
});
@@ -484,7 +484,7 @@
&*CargoAuthors { __private_field: () }
}};
() => {
- env!("CARGO_PKG_AUTHORS")
+ ["Kevin K. <[email protected]>"].join(":")
};
}
@@ -506,7 +506,7 @@
#[macro_export]
macro_rules! crate_description {
() => {
- env!("CARGO_PKG_DESCRIPTION")
+ "A simple to use, efficient, and full-featured Command Line Argument Parser\n"
};
}
@@ -527,7 +527,7 @@
#[macro_export]
macro_rules! crate_name {
() => {
- env!("CARGO_PKG_NAME")
+ "clap"
};
}