aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml.orig
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2019-10-25 18:04:10 -0700
committerChih-Hung Hsieh <chh@google.com>2019-10-25 18:04:10 -0700
commiteb69723579ae53e30436252934897305894bf765 (patch)
tree35fa20c193b203cdbf11e7d219bc9772b701c348 /Cargo.toml.orig
parent51eb44de5be937aac160bf183e7c68114f62835a (diff)
downloadproc-macro2-eb69723579ae53e30436252934897305894bf765.tar.gz
Use released proc-macro2-1.0.4 at crates.io
* Auto generated Android.bp from cargo2android.py. * Release package is different from git source repository: * .cargo_vcs_info.json has the snapshot commit sha. * Cleaned up Cargo.toml, with original version saved. Test: build all rust modules Change-Id: I45965bbf9a6a9ec6ee993fbb69f771c23b307896
Diffstat (limited to 'Cargo.toml.orig')
-rw-r--r--Cargo.toml.orig57
1 files changed, 57 insertions, 0 deletions
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 = "." }