summaryrefslogtreecommitdiff
path: root/build_extra/rust/BUILD.gn
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2019-08-22 13:33:55 -0700
committerBert Belder <bertbelder@gmail.com>2019-08-22 14:22:25 -0700
commit7f9c6decc8982dc9dec762d6f2cc77c6bdd3f817 (patch)
tree019c320a7792ed6e8d7b06fe4f532250dbb56db8 /build_extra/rust/BUILD.gn
parent7a902fed04e23c2be6133024f7ad8fdebb641c60 (diff)
third_party: upgrade rust crates
Diffstat (limited to 'build_extra/rust/BUILD.gn')
-rw-r--r--build_extra/rust/BUILD.gn146
1 files changed, 55 insertions, 91 deletions
diff --git a/build_extra/rust/BUILD.gn b/build_extra/rust/BUILD.gn
index 652b2784c..404bb913c 100644
--- a/build_extra/rust/BUILD.gn
+++ b/build_extra/rust/BUILD.gn
@@ -13,10 +13,9 @@ cargo_home = "//third_party/rust_crates"
rust_rlib("aho_corasick") {
cap_lints = "allow"
edition = "2015"
- source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/aho-corasick-0.7.4/src/lib.rs"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/aho-corasick-0.7.6/src/lib.rs"
features = [
"default",
- "memchr",
"std",
]
extern_rlib = [ "memchr" ]
@@ -101,7 +100,6 @@ rust_rlib("bytes") {
# source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/c2-chacha-0.2.2/src/lib.rs"
# features = [
# "lazy_static",
-# "ppv-lite86",
# "simd",
# "std",
# ]
@@ -168,7 +166,6 @@ rust_rlib("crossbeam_epoch") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/crossbeam-epoch-0.7.2/src/lib.rs"
features = [
- "crossbeam-utils",
"default",
"lazy_static",
"std",
@@ -275,7 +272,6 @@ rust_rlib("futures_cpupool") {
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/futures-cpupool-0.1.8/src/lib.rs"
features = [
"default",
- "futures",
"with-deprecated",
]
extern_rlib = [
@@ -287,7 +283,7 @@ rust_rlib("futures_cpupool") {
## Override: use rand v0.6.5 instead.
# rust_rlib("getrandom") {
# cap_lints = "allow"
-# source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/getrandom-0.1.7/src/lib.rs"
+# source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/getrandom-0.1.10/src/lib.rs"
# features = [ "std" ]
# extern_rlib = [ "cfg_if" ]
# if (is_posix) {
@@ -298,6 +294,11 @@ rust_rlib("futures_cpupool") {
# if (is_mac) {
# libs = [ "Security.framework" ]
# }
+#
+# # Added by custom-build script.
+# if (is_win) {
+# libs = [ "advapi32.lib" ]
+# }
# }
rust_rlib("h2") {
@@ -412,7 +413,6 @@ rust_rlib("hyper_rustls") {
features = [
"ct-logs",
"default",
- "hyper",
"tokio-runtime",
"webpki-roots",
]
@@ -443,7 +443,7 @@ rust_rlib("idna") {
rust_rlib("indexmap") {
cap_lints = "allow"
edition = "2015"
- source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/indexmap-1.0.2/src/lib.rs"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/indexmap-1.1.0/src/lib.rs"
}
rust_rlib("integer_atomics") {
@@ -490,7 +490,7 @@ rust_rlib("lazy_static") {
rust_rlib("libc") {
cap_lints = "allow"
edition = "2015"
- source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/libc-0.2.60/src/lib.rs"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/libc-0.2.62/src/lib.rs"
features = [
"default",
"std",
@@ -498,6 +498,7 @@ rust_rlib("libc") {
# Added by custom-build script.
cfg = [
+ "freebsd11",
"libc_align",
"libc_const_size_of",
"libc_core_cvoid",
@@ -655,8 +656,6 @@ rust_rlib("parking_lot") {
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/parking_lot-0.7.1/src/lib.rs"
features = [
"default",
- "lock_api",
-
## Override: avoid dependency on on 'owning_ref'.
# "owning_ref",
]
@@ -688,7 +687,7 @@ rust_rlib("parking_lot_core") {
rust_rlib("percent_encoding") {
cap_lints = "allow"
edition = "2015"
- source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.0.0/lib.rs"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/percent-encoding-2.1.0/lib.rs"
}
## Override: use rand v0.6.5 instead.
@@ -704,8 +703,7 @@ rust_rlib("percent_encoding") {
rust_rlib("proc_macro2") {
cap_lints = "allow"
- edition = "2015"
- source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.30/src/lib.rs"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.1/src/lib.rs"
features = [
"default",
"proc-macro",
@@ -714,7 +712,6 @@ rust_rlib("proc_macro2") {
# Added by custom-build script.
cfg = [
- "u128",
"use_proc_macro",
"wrap_proc_macro",
]
@@ -722,12 +719,10 @@ rust_rlib("proc_macro2") {
rust_rlib("quote") {
cap_lints = "allow"
- edition = "2015"
- source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/quote-0.6.13/src/lib.rs"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/quote-1.0.2/src/lib.rs"
features = [
"default",
"proc-macro",
- "proc-macro2",
]
extern_rlib = [ "proc_macro2" ]
}
@@ -739,8 +734,6 @@ rust_rlib("rand") {
features = [
"alloc",
"default",
- "rand_core",
- "rand_jitter",
"rand_os",
"std",
]
@@ -760,10 +753,10 @@ rust_rlib("rand") {
crate_version = "0.1.1"
},
{
- label = ":rand_core-0.4.0"
+ label = ":rand_core-0.4.2"
crate_type = "rlib"
crate_name = "rand_core"
- crate_version = "0.4.0"
+ crate_version = "0.4.2"
},
]
@@ -786,7 +779,6 @@ rust_rlib("rand") {
# cap_lints = "allow"
# source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_chacha-0.2.1/src/lib.rs"
# features = [
-# "c2-chacha",
# "default",
# "simd",
# "std",
@@ -815,13 +807,13 @@ rust_rlib("rand_hc") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_hc-0.1.0/src/lib.rs"
- # Override: use rand_core v0.4.0 instead of v0.3.1.
+ # Override: use rand_core v0.4.2 instead of v0.3.1.
extern = [
{
- label = ":rand_core-0.4.0"
+ label = ":rand_core-0.4.2"
crate_type = "rlib"
crate_name = "rand_core"
- crate_version = "0.4.0"
+ crate_version = "0.4.2"
},
# {
# label = ":rand_core-0.3.1"
@@ -837,13 +829,13 @@ rust_rlib("rand_isaac") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_isaac-0.1.1/src/lib.rs"
- # Override: use rand_core v0.4.0 instead of v0.3.1.
+ # Override: use rand_core v0.4.2 instead of v0.3.1.
extern = [
{
- label = ":rand_core-0.4.0"
+ label = ":rand_core-0.4.2"
crate_type = "rlib"
crate_name = "rand_core"
- crate_version = "0.4.0"
+ crate_version = "0.4.2"
},
# {
# label = ":rand_core-0.3.1"
@@ -858,16 +850,13 @@ rust_rlib("rand_jitter") {
cap_lints = "allow"
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_jitter-0.1.4/src/lib.rs"
- features = [
- "rand_core",
- "std",
- ]
+ features = [ "std" ]
extern = [
{
- label = ":rand_core-0.4.0"
+ label = ":rand_core-0.4.2"
crate_type = "rlib"
crate_name = "rand_core"
- crate_version = "0.4.0"
+ crate_version = "0.4.2"
},
]
if (is_mac) {
@@ -884,10 +873,10 @@ rust_rlib("rand_os") {
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_os-0.1.3/src/lib.rs"
extern = [
{
- label = ":rand_core-0.4.0"
+ label = ":rand_core-0.4.2"
crate_type = "rlib"
crate_name = "rand_core"
- crate_version = "0.4.0"
+ crate_version = "0.4.2"
},
]
if (is_posix) {
@@ -909,10 +898,10 @@ rust_rlib("rand_pcg") {
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_pcg-0.1.2/src/lib.rs"
extern = [
{
- label = ":rand_core-0.4.0"
+ label = ":rand_core-0.4.2"
crate_type = "rlib"
crate_name = "rand_core"
- crate_version = "0.4.0"
+ crate_version = "0.4.2"
},
]
@@ -925,13 +914,13 @@ rust_rlib("rand_xorshift") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_xorshift-0.1.1/src/lib.rs"
- # Override: use rand_core v0.4.0 instead of v0.3.1.
+ # Override: use rand_core v0.4.2 instead of v0.3.1.
extern = [
{
- label = ":rand_core-0.4.0"
+ label = ":rand_core-0.4.2"
crate_type = "rlib"
crate_name = "rand_core"
- crate_version = "0.4.0"
+ crate_version = "0.4.2"
},
# {
# label = ":rand_core-0.3.1"
@@ -945,7 +934,7 @@ rust_rlib("rand_xorshift") {
rust_rlib("regex") {
cap_lints = "allow"
edition = "2015"
- source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/regex-1.2.0/src/lib.rs"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/regex-1.2.1/src/lib.rs"
features = [
"default",
"use_std",
@@ -955,15 +944,13 @@ rust_rlib("regex") {
"memchr",
"regex_syntax",
"thread_local",
- "utf8_ranges",
]
}
rust_rlib("regex_syntax") {
cap_lints = "allow"
edition = "2015"
- source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/regex-syntax-0.6.10/src/lib.rs"
- extern_rlib = [ "ucd_util" ]
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/regex-syntax-0.6.11/src/lib.rs"
}
rust_rlib("remove_dir_all") {
@@ -1108,7 +1095,7 @@ rust_rlib("rustls") {
rust_rlib("rustyline") {
cap_lints = "allow"
- source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rustyline-5.0.1/src/lib.rs"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rustyline-5.0.2/src/lib.rs"
features = [
"default",
"dirs",
@@ -1163,7 +1150,7 @@ rust_rlib("sct") {
rust_rlib("serde") {
cap_lints = "allow"
edition = "2015"
- source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/serde-1.0.98/src/lib.rs"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/serde-1.0.99/src/lib.rs"
features = [
"default",
"std",
@@ -1189,7 +1176,7 @@ rust_rlib("serde") {
rust_proc_macro("serde_derive") {
cap_lints = "allow"
edition = "2015"
- source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.98/src/lib.rs"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.99/src/lib.rs"
features = [ "default" ]
extern_rlib = [
"proc_macro2",
@@ -1256,7 +1243,7 @@ rust_rlib("source_map_mappings") {
rust_rlib("spin") {
cap_lints = "allow"
edition = "2015"
- source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/spin-0.5.0/src/lib.rs"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/spin-0.5.1/src/lib.rs"
}
## Override: avoid dependency on on 'owning_ref'.
@@ -1289,17 +1276,14 @@ rust_rlib("strsim") {
rust_rlib("syn") {
cap_lints = "allow"
- edition = "2015"
- source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/syn-0.15.42/src/lib.rs"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/syn-1.0.3/src/lib.rs"
features = [
"clone-impls",
"default",
"derive",
- "extra-traits",
"parsing",
"printing",
"proc-macro",
- "proc-macro2",
"quote",
"visit",
]
@@ -1310,13 +1294,7 @@ rust_rlib("syn") {
]
# Added by custom-build script.
- cfg = [
- "syn_can_call_macro_by_path",
- "syn_can_match_trailing_dollar",
- "syn_can_use_associated_constants",
- "syn_can_use_thread_id",
- "syn_disable_nightly_tests",
- ]
+ cfg = [ "syn_disable_nightly_tests" ]
}
rust_rlib("tempfile") {
@@ -1439,7 +1417,6 @@ rust_rlib("tokio_buf") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/tokio-buf-0.1.1/src/lib.rs"
features = [
- "bytes",
"default",
"either",
"util",
@@ -1642,12 +1619,6 @@ rust_rlib("try_lock") {
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/try-lock-0.2.2/src/lib.rs"
}
-rust_rlib("ucd_util") {
- cap_lints = "allow"
- edition = "2015"
- source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/ucd-util-0.1.5/src/lib.rs"
-}
-
rust_rlib("unicode_bidi") {
cap_lints = "allow"
edition = "2015"
@@ -1672,14 +1643,14 @@ rust_rlib("unicode_segmentation") {
rust_rlib("unicode_width") {
cap_lints = "allow"
edition = "2015"
- source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/unicode-width-0.1.5/src/lib.rs"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/unicode-width-0.1.6/src/lib.rs"
features = [ "default" ]
}
rust_rlib("unicode_xid") {
cap_lints = "allow"
edition = "2015"
- source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/unicode-xid-0.1.0/src/lib.rs"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/unicode-xid-0.2.0/src/lib.rs"
features = [ "default" ]
}
@@ -1692,7 +1663,7 @@ rust_rlib("untrusted") {
rust_rlib("url") {
cap_lints = "allow"
edition = "2015"
- source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/url-2.0.0/src/lib.rs"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/url-2.1.0/src/lib.rs"
extern_rlib = [
"idna",
"matches",
@@ -1700,12 +1671,6 @@ rust_rlib("url") {
]
}
-rust_rlib("utf8_ranges") {
- cap_lints = "allow"
- edition = "2015"
- source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/utf8-ranges-1.0.3/src/lib.rs"
-}
-
rust_rlib("utime") {
cap_lints = "allow"
edition = "2015"
@@ -1822,7 +1787,6 @@ rust_rlib("webpki_roots") {
# "default",
# "getrandom",
# "getrandom_package",
-# "rand_core",
# "std",
# ]
# extern_rlib = [
@@ -1852,13 +1816,13 @@ rust_rlib("rand_chacha-0.1.1") {
# Added by custom-build script.
cfg = [ "rustc_1_26" ]
- # Override: use rand_core v0.4.0 instead of v0.3.1.
+ # Override: use rand_core v0.4.2 instead of v0.3.1.
extern = [
{
- label = ":rand_core-0.4.0"
+ label = ":rand_core-0.4.2"
crate_type = "rlib"
crate_name = "rand_core"
- crate_version = "0.4.0"
+ crate_version = "0.4.2"
},
# {
# label = ":rand_core-0.3.1"
@@ -1869,7 +1833,7 @@ rust_rlib("rand_chacha-0.1.1") {
]
}
-## Override: use rand_core v0.4.0 instead.
+## Override: use rand_core v0.4.2 instead.
# rust_rlib("rand_core-0.3.1") {
# crate_name = "rand_core"
# crate_version = "0.3.1"
@@ -1878,20 +1842,20 @@ rust_rlib("rand_chacha-0.1.1") {
# source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_core-0.3.1/src/lib.rs"
# extern = [
# {
-# label = ":rand_core-0.4.0"
+# label = ":rand_core-0.4.2"
# crate_type = "rlib"
# crate_name = "rand_core"
-# crate_version = "0.4.0"
+# crate_version = "0.4.2"
# },
# ]
# }
-rust_rlib("rand_core-0.4.0") {
+rust_rlib("rand_core-0.4.2") {
crate_name = "rand_core"
- crate_version = "0.4.0"
+ crate_version = "0.4.2"
cap_lints = "allow"
edition = "2015"
- source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_core-0.4.0/src/lib.rs"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_core-0.4.2/src/lib.rs"
features = [
"alloc",
"std",
@@ -1911,7 +1875,7 @@ if (is_posix) {
rust_rlib("arc_swap") {
cap_lints = "allow"
edition = "2015"
- source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/arc-swap-0.3.11/src/lib.rs"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/arc-swap-0.4.2/src/lib.rs"
}
rust_rlib("mio_uds") {
@@ -1950,7 +1914,7 @@ if (is_posix) {
rust_rlib("signal_hook_registry") {
cap_lints = "allow"
edition = "2015"
- source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/signal-hook-registry-1.1.0/src/lib.rs"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/signal-hook-registry-1.1.1/src/lib.rs"
extern_rlib = [
"arc_swap",
"libc",
@@ -2069,7 +2033,7 @@ if (is_win) {
rust_rlib("socket2") {
cap_lints = "allow"
- source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/socket2-0.3.10/src/lib.rs"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/socket2-0.3.11/src/lib.rs"
extern_rlib = [ "winapi" ]
}
@@ -2178,7 +2142,7 @@ if (is_win) {
rust_rlib("wincolor") {
cap_lints = "allow"
edition = "2015"
- source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/wincolor-1.0.1/src/lib.rs"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/wincolor-1.0.2/src/lib.rs"
extern_rlib = [
"winapi",
"winapi_util",