Use --copy-out to generate .bp file.

* The original include command now works without
  local patch or post_update.sh.
* Add missing std.diff

Bug: 171659849
Test: make
Test: tools/external_updater/updater.sh update --refresh --keep-date rust/crates/proc-macro-nested
Change-Id: Ifcacf844017ef1332f1abad6e8d47c99dfea873a
diff --git a/Android.bp b/Android.bp
index 27ab02d..b9fd260 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,17 +1,30 @@
-// This file is generated by cargo2android.py --run --device --dependencies --tests.
+// This file is generated by cargo2android.py --run --device --dependencies --tests --copy-out.
+
+genrule {
+    name: "copy_proc-macro-nested_build_out",
+    srcs: ["out/*"],
+    cmd: "cp $(in) $(genDir)",
+    out: ["count.rs"],
+}
 
 rust_library {
     name: "libproc_macro_nested",
     host_supported: true,
     crate_name: "proc_macro_nested",
-    srcs: ["src/lib.rs"],
+    srcs: [
+        "src/lib.rs",
+        ":copy_proc-macro-nested_build_out",
+    ],
     edition: "2015",
 }
 
 rust_defaults {
     name: "proc-macro-nested_defaults",
     crate_name: "proc_macro_nested",
-    srcs: ["src/lib.rs"],
+    srcs: [
+        "src/lib.rs",
+        ":copy_proc-macro-nested_build_out",
+    ],
     test_suites: ["general-tests"],
     auto_gen_config: true,
     edition: "2015",