aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-11-05 12:39:02 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-11-05 12:39:02 +0000
commit0f12553e2c6ef5296e15658dd838667a174bd95e (patch)
tree34af63ea025161a9504f9e4a30a4ad4b359d3aff
parent235d5d58507d18d4e2f250d3651dedd7c94dc87c (diff)
parent2941fe73a83182a8718a168f349d097997508ff0 (diff)
downloadproc-macro2-android10-mainline-networking-release.tar.gz
Snap for 5988121 from 2941fe73a83182a8718a168f349d097997508ff0 to qt-aml-networking-releaseandroid-mainline-10.0.0_r6android10-mainline-networking-release
Change-Id: I20d85c8fe9f8f353fc3bb574cbd94382a909a113
-rw-r--r--.cargo_vcs_info.json5
-rw-r--r--Android.bp56
-rw-r--r--Cargo.toml72
-rw-r--r--Cargo.toml.orig57
4 files changed, 146 insertions, 44 deletions
diff --git a/.cargo_vcs_info.json b/.cargo_vcs_info.json
new file mode 100644
index 0000000..19bdf08
--- /dev/null
+++ b/.cargo_vcs_info.json
@@ -0,0 +1,5 @@
+{
+ "git": {
+ "sha1": "bdac3732544a3cfb73afe4548f550c369e906856"
+ }
+}
diff --git a/Android.bp b/Android.bp
index 7c4f5d0..13c7d88 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,16 +1,70 @@
+// This file is generated by cargo2android.py.
+
rust_library_rlib {
name: "libproc_macro2",
host_supported: true,
crate_name: "proc_macro2",
srcs: ["src/lib.rs"],
- rlibs: ["libunicode_xid"],
+ edition: "2018",
+ features: [
+ "default",
+ "proc-macro",
+ ],
flags: [
+ "--cfg proc_macro_span",
"--cfg use_proc_macro",
"--cfg wrap_proc_macro",
],
+ rlibs: [
+ "libunicode_xid",
+ ],
+}
+
+rust_test {
+ name: "proc-macro2_test_src_lib",
+ host_supported: true,
+ crate_name: "proc_macro2",
+ srcs: ["src/lib.rs"],
+ relative_install_path: "rust/proc-macro2",
+ edition: "2018",
features: [
"default",
"proc-macro",
],
+ flags: [
+ "--cfg proc_macro_span",
+ "--cfg use_proc_macro",
+ "--cfg wrap_proc_macro",
+ ],
+ rlibs: [
+ "libquote",
+ "libunicode_xid",
+ ],
+}
+
+rust_test {
+ name: "proc-macro2_tests_test",
+ host_supported: true,
+ crate_name: "proc_macro2",
+ srcs: [
+ "tests/features.rs",
+ "tests/marker.rs",
+ "tests/test.rs",
+ ],
+ relative_install_path: "rust/proc-macro2",
edition: "2018",
+ features: [
+ "default",
+ "proc-macro",
+ ],
+ flags: [
+ "--cfg proc_macro_span",
+ "--cfg use_proc_macro",
+ "--cfg wrap_proc_macro",
+ ],
+ rlibs: [
+ "libproc_macro2",
+ "libquote",
+ "libunicode_xid",
+ ],
}
diff --git a/Cargo.toml b/Cargo.toml
index fd5ee70..a6fea91 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,57 +1,43 @@
+# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
+#
+# When uploading crates to the registry Cargo will automatically
+# "normalize" Cargo.toml files for maximal compatibility
+# with all versions of Cargo and also rewrite `path` dependencies
+# to registry (e.g., crates.io) dependencies
+#
+# If you believe there's an error in this file please file an
+# issue against the rust-lang/cargo repository. If you're
+# editing this file be aware that the upstream Cargo.toml
+# will likely look very different (and much more reasonable)
+
[package]
+edition = "2018"
name = "proc-macro2"
-version = "1.0.4" # remember to update html_root_url
+version = "1.0.4"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
-license = "MIT OR Apache-2.0"
+description = "A stable implementation of the upcoming new `proc_macro` API. Comes with an\noption, off by default, to also reimplement itself in terms of the upstream\nunstable API.\n"
+homepage = "https://github.com/alexcrichton/proc-macro2"
+documentation = "https://docs.rs/proc-macro2"
readme = "README.md"
keywords = ["macros"]
+license = "MIT OR Apache-2.0"
repository = "https://github.com/alexcrichton/proc-macro2"
-homepage = "https://github.com/alexcrichton/proc-macro2"
-documentation = "https://docs.rs/proc-macro2"
-edition = "2018"
-description = """
-A stable implementation of the upcoming new `proc_macro` API. Comes with an
-option, off by default, to also reimplement itself in terms of the upstream
-unstable API.
-"""
-
-[lib]
-name = "proc_macro2"
-
[package.metadata.docs.rs]
rustc-args = ["--cfg", "procmacro2_semver_exempt"]
rustdoc-args = ["--cfg", "procmacro2_semver_exempt"]
-[dependencies]
-unicode-xid = "0.2"
-
-[dev-dependencies]
-quote = { version = "1.0", default_features = false }
+[lib]
+name = "proc_macro2"
+[dependencies.unicode-xid]
+version = "0.2"
+[dev-dependencies.quote]
+version = "1.0"
+default_features = false
[features]
-proc-macro = []
default = ["proc-macro"]
-
-# Expose methods Span::start and Span::end which give the line/column location
-# of a token.
-span-locations = []
-
-# This feature no longer means anything.
nightly = []
-
-[badges]
-travis-ci = { repository = "alexcrichton/proc-macro2" }
-
-[patch.crates-io]
-# Our doc tests depend on quote which depends on proc-macro2. Without this line,
-# the proc-macro2 dependency of quote would be the released version of
-# proc-macro2. Quote would implement its traits for types from that proc-macro2,
-# meaning impls would be missing when tested against types from the local
-# proc-macro2.
-#
-# Travis builds that are in progress at the time that you publish may spuriously
-# fail. This is because they'll be building a local proc-macro2 which carries
-# the second-most-recent version number, pulling in quote which resolves to a
-# dependency on the just-published most recent version number. Thus the patch
-# will fail to apply because the version numbers are different.
-proc-macro2 = { path = "." }
+proc-macro = []
+span-locations = []
+[badges.travis-ci]
+repository = "alexcrichton/proc-macro2"
diff --git a/Cargo.toml.orig b/Cargo.toml.orig
new file mode 100644
index 0000000..fd5ee70
--- /dev/null
+++ b/Cargo.toml.orig
@@ -0,0 +1,57 @@
+[package]
+name = "proc-macro2"
+version = "1.0.4" # remember to update html_root_url
+authors = ["Alex Crichton <alex@alexcrichton.com>"]
+license = "MIT OR Apache-2.0"
+readme = "README.md"
+keywords = ["macros"]
+repository = "https://github.com/alexcrichton/proc-macro2"
+homepage = "https://github.com/alexcrichton/proc-macro2"
+documentation = "https://docs.rs/proc-macro2"
+edition = "2018"
+description = """
+A stable implementation of the upcoming new `proc_macro` API. Comes with an
+option, off by default, to also reimplement itself in terms of the upstream
+unstable API.
+"""
+
+[lib]
+name = "proc_macro2"
+
+[package.metadata.docs.rs]
+rustc-args = ["--cfg", "procmacro2_semver_exempt"]
+rustdoc-args = ["--cfg", "procmacro2_semver_exempt"]
+
+[dependencies]
+unicode-xid = "0.2"
+
+[dev-dependencies]
+quote = { version = "1.0", default_features = false }
+
+[features]
+proc-macro = []
+default = ["proc-macro"]
+
+# Expose methods Span::start and Span::end which give the line/column location
+# of a token.
+span-locations = []
+
+# This feature no longer means anything.
+nightly = []
+
+[badges]
+travis-ci = { repository = "alexcrichton/proc-macro2" }
+
+[patch.crates-io]
+# Our doc tests depend on quote which depends on proc-macro2. Without this line,
+# the proc-macro2 dependency of quote would be the released version of
+# proc-macro2. Quote would implement its traits for types from that proc-macro2,
+# meaning impls would be missing when tested against types from the local
+# proc-macro2.
+#
+# Travis builds that are in progress at the time that you publish may spuriously
+# fail. This is because they'll be building a local proc-macro2 which carries
+# the second-most-recent version number, pulling in quote which resolves to a
+# dependency on the just-published most recent version number. Thus the patch
+# will fail to apply because the version numbers are different.
+proc-macro2 = { path = "." }