summaryrefslogtreecommitdiff
path: root/build_extra/rust/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'build_extra/rust/BUILD.gn')
-rw-r--r--build_extra/rust/BUILD.gn95
1 files changed, 95 insertions, 0 deletions
diff --git a/build_extra/rust/BUILD.gn b/build_extra/rust/BUILD.gn
index 552c1f553..610fb3cb2 100644
--- a/build_extra/rust/BUILD.gn
+++ b/build_extra/rust/BUILD.gn
@@ -747,6 +747,42 @@ rust_rlib("percent_encoding") {
]
}
+rust_rlib("proc_macro2") {
+ edition = "2015"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.30/src/lib.rs"
+ features = [
+ "default",
+ "proc-macro",
+ ]
+ extern_rlib = [ "unicode_xid" ]
+ args = [
+ "--cap-lints",
+ "allow",
+ ]
+
+ # Added by custom-build script.
+ cfg = [
+ "u128",
+ "use_proc_macro",
+ "wrap_proc_macro",
+ ]
+}
+
+rust_rlib("quote") {
+ edition = "2015"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/quote-0.6.12/src/lib.rs"
+ features = [
+ "default",
+ "proc-macro",
+ "proc-macro2",
+ ]
+ extern_rlib = [ "proc_macro2" ]
+ args = [
+ "--cap-lints",
+ "allow",
+ ]
+}
+
rust_rlib("rand") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand-0.6.5/src/lib.rs"
@@ -1221,6 +1257,21 @@ rust_rlib("serde") {
]
}
+rust_proc_macro("serde_derive") {
+ edition = "2015"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.91/src/lib.rs"
+ features = [ "default" ]
+ extern_rlib = [
+ "proc_macro2",
+ "quote",
+ "syn",
+ ]
+ args = [
+ "--cap-lints",
+ "allow",
+ ]
+}
+
rust_rlib("serde_json") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/serde_json-1.0.39/src/lib.rs"
@@ -1324,6 +1375,40 @@ rust_rlib("strsim") {
]
}
+rust_rlib("syn") {
+ edition = "2015"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/syn-0.15.34/src/lib.rs"
+ features = [
+ "clone-impls",
+ "default",
+ "derive",
+ "extra-traits",
+ "parsing",
+ "printing",
+ "proc-macro",
+ "proc-macro2",
+ "quote",
+ "visit",
+ ]
+ extern_rlib = [
+ "proc_macro2",
+ "quote",
+ "unicode_xid",
+ ]
+ args = [
+ "--cap-lints",
+ "allow",
+ ]
+
+ # Added by custom-build script.
+ cfg = [
+ "syn_can_call_macro_by_path",
+ "syn_can_use_associated_constants",
+ "syn_can_use_thread_id",
+ "syn_disable_nightly_tests",
+ ]
+}
+
rust_rlib("tempfile") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/tempfile-3.0.7/src/lib.rs"
@@ -1745,6 +1830,16 @@ rust_rlib("unicode_width") {
]
}
+rust_rlib("unicode_xid") {
+ edition = "2015"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/unicode-xid-0.1.0/src/lib.rs"
+ features = [ "default" ]
+ args = [
+ "--cap-lints",
+ "allow",
+ ]
+}
+
rust_rlib("untrusted") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/untrusted-0.6.2/src/untrusted.rs"