From 7a902fed04e23c2be6133024f7ad8fdebb641c60 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Thu, 22 Aug 2019 13:23:49 -0700 Subject: [PATCH] build: add 'cap_lints' flag for rust crates Using a specialized flag rather than the generic 'args' option makes build_extra/rust/BUILD.gn shorter and more readable. --- build_extra/rust/BUILD.gn | 725 ++++++++------------------------------ build_extra/rust/rust.gni | 7 + 2 files changed, 152 insertions(+), 580 deletions(-) diff --git a/build_extra/rust/BUILD.gn b/build_extra/rust/BUILD.gn index 3496f95e42..652b2784cf 100644 --- a/build_extra/rust/BUILD.gn +++ b/build_extra/rust/BUILD.gn @@ -11,6 +11,7 @@ import("rust.gni") 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" features = [ @@ -19,44 +20,31 @@ rust_rlib("aho_corasick") { "std", ] extern_rlib = [ "memchr" ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("ansi_term") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/ansi_term-0.12.0/src/lib.rs" - args = [ - "--cap-lints", - "allow", - ] if (is_win) { extern_rlib = [ "winapi" ] } } rust_rlib("arrayvec") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.4.11/src/lib.rs" extern_rlib = [ "nodrop" ] - args = [ - "--cap-lints", - "allow", - ] # Added by custom-build script. cfg = [ "has_stable_maybe_uninit" ] } rust_rlib("atty") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/atty-0.2.13/src/lib.rs" - args = [ - "--cap-lints", - "allow", - ] if (is_posix) { extern_rlib = [ "libc" ] } @@ -66,45 +54,37 @@ rust_rlib("atty") { } rust_rlib("base64") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/base64-0.10.1/src/lib.rs" extern_rlib = [ "byteorder" ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("bitflags") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/bitflags-1.1.0/src/lib.rs" features = [ "default" ] - args = [ - "--cap-lints", - "allow", - ] # Added by custom-build script. cfg = [ "bitflags_const_fn" ] } rust_rlib("byteorder") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/byteorder-1.3.2/src/lib.rs" features = [ "default", "std", ] - args = [ - "--cap-lints", - "allow", - ] # Added by custom-build script. cfg = [ "byteorder_i128" ] } rust_rlib("bytes") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/bytes-0.4.12/src/lib.rs" features = [ "either" ] @@ -113,14 +93,11 @@ rust_rlib("bytes") { "either", "iovec", ] - args = [ - "--cap-lints", - "allow", - ] } ## Override: use rand v0.6.5 instead. # rust_rlib("c2_chacha") { +# cap_lints = "allow" # source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/c2-chacha-0.2.2/src/lib.rs" # features = [ # "lazy_static", @@ -132,22 +109,16 @@ rust_rlib("bytes") { # "lazy_static", # "ppv_lite86", # ] -# args = [ -# "--cap-lints", -# "allow", -# ] # } rust_rlib("cfg_if") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.9/src/lib.rs" - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("clap") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/clap-2.33.0/src/lib.rs" features = [ @@ -167,10 +138,6 @@ rust_rlib("clap") { "unicode_width", "vec_map", ] - args = [ - "--cap-lints", - "allow", - ] # Override: use ansi_term v0.12.0 instead of v0.11.0. if (is_posix) { @@ -187,19 +154,17 @@ rust_rlib("clap") { } rust_rlib("crossbeam_deque") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/crossbeam-deque-0.7.1/src/lib.rs" extern_rlib = [ "crossbeam_epoch", "crossbeam_utils", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("crossbeam_epoch") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/crossbeam-epoch-0.7.2/src/lib.rs" features = [ @@ -216,23 +181,17 @@ rust_rlib("crossbeam_epoch") { "memoffset", "scopeguard", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("crossbeam_queue") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/crossbeam-queue-0.1.2/src/lib.rs" extern_rlib = [ "crossbeam_utils" ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("crossbeam_utils") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/crossbeam-utils-0.6.6/src/lib.rs" features = [ @@ -244,42 +203,29 @@ rust_rlib("crossbeam_utils") { "cfg_if", "lazy_static", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("ct_logs") { + cap_lints = "allow" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/ct-logs-0.5.1/src/lib.rs" extern_rlib = [ "sct" ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("dirs") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/dirs-2.0.2/src/lib.rs" extern_rlib = [ "cfg_if", "dirs_sys", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("dirs_sys") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/dirs-sys-0.3.4/src/lib.rs" extern_rlib = [ "cfg_if" ] - args = [ - "--cap-lints", - "allow", - ] if (is_posix) { extern_rlib += [ "libc" ] } @@ -289,39 +235,31 @@ rust_rlib("dirs_sys") { } rust_rlib("either") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/either-1.5.2/src/lib.rs" features = [ "default", "use_std", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("flatbuffers") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/flatbuffers-0.6.0/src/lib.rs" extern_rlib = [ "smallvec" ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("fnv") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/fnv-1.0.6/lib.rs" - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("futures") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/futures-0.1.28/src/lib.rs" features = [ @@ -329,13 +267,10 @@ rust_rlib("futures") { "use_std", "with-deprecated", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("futures_cpupool") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/futures-cpupool-0.1.8/src/lib.rs" features = [ @@ -347,21 +282,14 @@ rust_rlib("futures_cpupool") { "futures", "num_cpus", ] - args = [ - "--cap-lints", - "allow", - ] } ## 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" # features = [ "std" ] # extern_rlib = [ "cfg_if" ] -# args = [ -# "--cap-lints", -# "allow", -# ] # if (is_posix) { # extern_rlib += [ "libc" ] # } @@ -373,6 +301,7 @@ rust_rlib("futures_cpupool") { # } rust_rlib("h2") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/h2-0.1.26/src/lib.rs" extern_rlib = [ @@ -387,13 +316,10 @@ rust_rlib("h2") { "string", "tokio_io", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("http") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/http-0.1.18/src/lib.rs" extern_rlib = [ @@ -401,13 +327,10 @@ rust_rlib("http") { "fnv", "itoa", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("http_body") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/http-body-0.1.0/src/lib.rs" extern_rlib = [ @@ -416,23 +339,16 @@ rust_rlib("http_body") { "http", "tokio_buf", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("httparse") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/httparse-1.3.4/src/lib.rs" features = [ "default", "std", ] - args = [ - "--cap-lints", - "allow", - ] # Added by custom-build script. cfg = [ @@ -442,6 +358,7 @@ rust_rlib("httparse") { } rust_rlib("hyper") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/hyper-0.12.33/src/lib.rs" features = [ @@ -480,10 +397,6 @@ rust_rlib("hyper") { "tokio_timer", "want", ] - args = [ - "--cap-lints", - "allow", - ] # Added by custom-build script. cfg = [ @@ -493,6 +406,7 @@ rust_rlib("hyper") { } rust_rlib("hyper_rustls") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/hyper-rustls-0.16.1/src/lib.rs" features = [ @@ -513,13 +427,10 @@ rust_rlib("hyper_rustls") { "webpki", "webpki_roots", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("idna") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/idna-0.2.0/src/lib.rs" extern_rlib = [ @@ -527,37 +438,24 @@ rust_rlib("idna") { "unicode_bidi", "unicode_normalization", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("indexmap") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/indexmap-1.0.2/src/lib.rs" - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("integer_atomics") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/integer-atomics-1.0.2/src/lib.rs" - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("iovec") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/iovec-0.1.2/src/lib.rs" - args = [ - "--cap-lints", - "allow", - ] if (is_posix) { extern_rlib = [ "libc" ] } @@ -574,38 +472,29 @@ rust_rlib("iovec") { } rust_rlib("itoa") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/itoa-0.4.4/src/lib.rs" features = [ "default", "std", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("lazy_static") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.3.0/src/lib.rs" - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("libc") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/libc-0.2.60/src/lib.rs" features = [ "default", "std", ] - args = [ - "--cap-lints", - "allow", - ] # Added by custom-build script. cfg = [ @@ -619,6 +508,7 @@ rust_rlib("libc") { } rust_rlib("lock_api") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/lock_api-0.1.5/src/lib.rs" extern_rlib = [ @@ -627,10 +517,6 @@ rust_rlib("lock_api") { ## Override: avoid dependency on on 'owning_ref'. # "owning_ref", ] - args = [ - "--cap-lints", - "allow", - ] ## Override: avoid dependency on on 'owning_ref'. # features = [ "owning_ref" ] @@ -647,38 +533,29 @@ rust_rlib("lock_api") { } rust_rlib("log") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/log-0.4.8/src/lib.rs" extern_rlib = [ "cfg_if" ] - args = [ - "--cap-lints", - "allow", - ] # Added by custom-build script. cfg = [ "atomic_cas" ] } rust_rlib("matches") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/matches-0.1.8/lib.rs" - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("memchr") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/memchr-2.2.1/src/lib.rs" features = [ "default", "use_std", ] - args = [ - "--cap-lints", - "allow", - ] # Added by custom-build script. cfg = [ @@ -690,18 +567,16 @@ rust_rlib("memchr") { } rust_rlib("memoffset") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/memoffset-0.5.1/src/lib.rs" - args = [ - "--cap-lints", - "allow", - ] # Added by custom-build script. cfg = [ "memoffset_maybe_uninit" ] } rust_rlib("mio") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/mio-0.6.19/src/lib.rs" features = [ @@ -714,10 +589,6 @@ rust_rlib("mio") { "net2", "slab", ] - args = [ - "--cap-lints", - "allow", - ] if (is_posix) { extern_rlib += [ "libc" ] } @@ -741,6 +612,7 @@ rust_rlib("mio") { } rust_rlib("net2") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/net2-0.2.33/src/lib.rs" features = [ @@ -748,10 +620,6 @@ rust_rlib("net2") { "duration", ] extern_rlib = [ "cfg_if" ] - args = [ - "--cap-lints", - "allow", - ] if (is_posix) { extern_rlib += [ "libc" ] } @@ -761,36 +629,28 @@ rust_rlib("net2") { } rust_rlib("nodrop") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/nodrop-0.1.13/src/lib.rs" - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("num_cpus") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/num_cpus-1.10.1/src/lib.rs" extern_rlib = [ "libc" ] - args = [ - "--cap-lints", - "allow", - ] } ## Override: avoid dependency on on 'owning_ref'. # rust_rlib("owning_ref") { +# cap_lints = "allow" # edition = "2015" # source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/owning_ref-0.4.0/src/lib.rs" # extern_rlib = [ "stable_deref_trait" ] -# args = [ -# "--cap-lints", -# "allow", -# ] # } rust_rlib("parking_lot") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/parking_lot-0.7.1/src/lib.rs" features = [ @@ -804,23 +664,16 @@ rust_rlib("parking_lot") { "lock_api", "parking_lot_core", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("parking_lot_core") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/parking_lot_core-0.4.0/src/lib.rs" extern_rlib = [ "rand", "smallvec", ] - args = [ - "--cap-lints", - "allow", - ] # Added by custom-build script. cfg = [ "has_localkey_try_with" ] @@ -833,29 +686,24 @@ 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" - args = [ - "--cap-lints", - "allow", - ] } ## Override: use rand v0.6.5 instead. # rust_rlib("ppv_lite86") { +# cap_lints = "allow" # source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/ppv-lite86-0.2.5/src/lib.rs" # features = [ # "default", # "simd", # "std", # ] -# args = [ -# "--cap-lints", -# "allow", -# ] # } 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" features = [ @@ -863,10 +711,6 @@ rust_rlib("proc_macro2") { "proc-macro", ] extern_rlib = [ "unicode_xid" ] - args = [ - "--cap-lints", - "allow", - ] # Added by custom-build script. cfg = [ @@ -877,6 +721,7 @@ 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" features = [ @@ -885,13 +730,10 @@ rust_rlib("quote") { "proc-macro2", ] extern_rlib = [ "proc_macro2" ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("rand") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand-0.6.5/src/lib.rs" features = [ @@ -924,10 +766,6 @@ rust_rlib("rand") { crate_version = "0.4.0" }, ] - args = [ - "--cap-lints", - "allow", - ] # Added by custom-build script. cfg = [ @@ -945,6 +783,7 @@ rust_rlib("rand") { ## Override: use rand v0.6.5 instead. # rust_rlib("rand_chacha") { +# cap_lints = "allow" # source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_chacha-0.2.1/src/lib.rs" # features = [ # "c2-chacha", @@ -956,14 +795,11 @@ rust_rlib("rand") { # "c2_chacha", # "rand_core", # ] -# args = [ -# "--cap-lints", -# "allow", -# ] # } ## Override: use rand v0.6.5 instead. # rust_rlib("rand_core") { +# cap_lints = "allow" # edition = "2015" # source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_core-0.5.0/src/lib.rs" # features = [ @@ -972,19 +808,12 @@ rust_rlib("rand") { # "std", # ] # extern_rlib = [ "getrandom" ] -# args = [ -# "--cap-lints", -# "allow", -# ] # } rust_rlib("rand_hc") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_hc-0.1.0/src/lib.rs" - args = [ - "--cap-lints", - "allow", - ] # Override: use rand_core v0.4.0 instead of v0.3.1. extern = [ @@ -1004,12 +833,9 @@ rust_rlib("rand_hc") { } rust_rlib("rand_isaac") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_isaac-0.1.1/src/lib.rs" - args = [ - "--cap-lints", - "allow", - ] # Override: use rand_core v0.4.0 instead of v0.3.1. extern = [ @@ -1029,6 +855,7 @@ rust_rlib("rand_isaac") { } 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 = [ @@ -1043,10 +870,6 @@ rust_rlib("rand_jitter") { crate_version = "0.4.0" }, ] - args = [ - "--cap-lints", - "allow", - ] if (is_mac) { extern_rlib = [ "libc" ] } @@ -1056,6 +879,7 @@ rust_rlib("rand_jitter") { } rust_rlib("rand_os") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_os-0.1.3/src/lib.rs" extern = [ @@ -1066,10 +890,6 @@ rust_rlib("rand_os") { crate_version = "0.4.0" }, ] - args = [ - "--cap-lints", - "allow", - ] if (is_posix) { extern_rlib = [ "libc" ] } @@ -1084,6 +904,7 @@ rust_rlib("rand_os") { } rust_rlib("rand_pcg") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_pcg-0.1.2/src/lib.rs" extern = [ @@ -1094,22 +915,15 @@ rust_rlib("rand_pcg") { crate_version = "0.4.0" }, ] - args = [ - "--cap-lints", - "allow", - ] # Added by custom-build script. cfg = [ "rustc_1_26" ] } rust_rlib("rand_xorshift") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_xorshift-0.1.1/src/lib.rs" - args = [ - "--cap-lints", - "allow", - ] # Override: use rand_core v0.4.0 instead of v0.3.1. extern = [ @@ -1129,6 +943,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" features = [ @@ -1142,35 +957,26 @@ rust_rlib("regex") { "thread_local", "utf8_ranges", ] - args = [ - "--cap-lints", - "allow", - ] } 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" ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("remove_dir_all") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/remove_dir_all-0.5.2/src/lib.rs" - args = [ - "--cap-lints", - "allow", - ] if (is_win) { extern_rlib = [ "winapi" ] } } rust_rlib("ring") { + cap_lints = "allow" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/ring-0.14.6/src/lib.rs" features = [ "default", @@ -1187,10 +993,6 @@ rust_rlib("ring") { "spin", "untrusted", ] - args = [ - "--cap-lints", - "allow", - ] if (is_linux) { extern_rlib += [ "lazy_static" ] } @@ -1287,6 +1089,7 @@ static_library("ring-core") { # } rust_rlib("rustls") { + cap_lints = "allow" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rustls-0.15.2/src/lib.rs" features = [ "default", @@ -1301,13 +1104,10 @@ rust_rlib("rustls") { "untrusted", "webpki", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("rustyline") { + cap_lints = "allow" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rustyline-5.0.1/src/lib.rs" features = [ "default", @@ -1322,10 +1122,6 @@ rust_rlib("rustyline") { "unicode_segmentation", "unicode_width", ] - args = [ - "--cap-lints", - "allow", - ] if (is_posix) { extern_rlib += [ "nix", @@ -1338,12 +1134,9 @@ rust_rlib("rustyline") { } rust_rlib("ryu") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/ryu-1.0.0/src/lib.rs" - args = [ - "--cap-lints", - "allow", - ] # Added by custom-build script. cfg = [ @@ -1353,37 +1146,28 @@ rust_rlib("ryu") { } rust_rlib("scopeguard") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/scopeguard-1.0.0/src/lib.rs" - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("sct") { + cap_lints = "allow" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/sct-0.5.0/src/lib.rs" extern_rlib = [ "ring", "untrusted", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("serde") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/serde-1.0.98/src/lib.rs" features = [ "default", "std", ] - args = [ - "--cap-lints", - "allow", - ] # Added by custom-build script. cfg = [ @@ -1403,6 +1187,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" features = [ "default" ] @@ -1411,13 +1196,10 @@ rust_proc_macro("serde_derive") { "quote", "syn", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("serde_json") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/serde_json-1.0.40/src/lib.rs" features = [ @@ -1431,35 +1213,26 @@ rust_rlib("serde_json") { "ryu", "serde", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("slab") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/slab-0.4.2/src/lib.rs" - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("smallvec") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/smallvec-0.6.10/lib.rs" features = [ "default", "std", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("source_map_mappings") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/source-map-mappings-0.5.0/src/lib.rs" extern_rlib = [ @@ -1468,10 +1241,6 @@ rust_rlib("source_map_mappings") { # Override: use rand v0.6.5 instead of v0.4.6. "rand", ] - args = [ - "--cap-lints", - "allow", - ] ## Override: use rand v0.6.5 instead of v0.4.6. # extern = [ @@ -1485,29 +1254,24 @@ 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" - args = [ - "--cap-lints", - "allow", - ] } ## Override: avoid dependency on on 'owning_ref'. # rust_rlib("stable_deref_trait") { +# cap_lints = "allow" # edition = "2015" # source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/stable_deref_trait-1.1.1/src/lib.rs" # features = [ # "default", # "std", # ] -# args = [ -# "--cap-lints", -# "allow", -# ] # } rust_rlib("string") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/string-0.2.1/src/lib.rs" features = [ @@ -1515,22 +1279,16 @@ rust_rlib("string") { "default", ] extern_rlib = [ "bytes" ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("strsim") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/strsim-0.8.0/src/lib.rs" - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("syn") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/syn-0.15.42/src/lib.rs" features = [ @@ -1550,10 +1308,6 @@ rust_rlib("syn") { "quote", "unicode_xid", ] - args = [ - "--cap-lints", - "allow", - ] # Added by custom-build script. cfg = [ @@ -1566,6 +1320,7 @@ rust_rlib("syn") { } rust_rlib("tempfile") { + cap_lints = "allow" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/tempfile-3.1.0/src/lib.rs" extern_rlib = [ "cfg_if", @@ -1574,10 +1329,6 @@ rust_rlib("tempfile") { # Override: use rand v0.6.5 instead of v0.7.0. "rand", ] - args = [ - "--cap-lints", - "allow", - ] ## Override: use rand v0.6.5 instead of v0.7.0. # extern = [ @@ -1597,51 +1348,40 @@ rust_rlib("tempfile") { } rust_rlib("termcolor") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/termcolor-1.0.5/src/lib.rs" - args = [ - "--cap-lints", - "allow", - ] if (is_win) { extern_rlib = [ "wincolor" ] } } rust_rlib("textwrap") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/textwrap-0.11.0/src/lib.rs" extern_rlib = [ "unicode_width" ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("thread_local") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/thread_local-0.3.6/src/lib.rs" extern_rlib = [ "lazy_static" ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("time") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/time-0.1.42/src/lib.rs" extern_rlib = [ "libc" ] - args = [ - "--cap-lints", - "allow", - ] if (is_win) { extern_rlib += [ "winapi" ] } } rust_rlib("tokio") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/tokio-0.1.22/src/lib.rs" features = [ @@ -1689,16 +1429,13 @@ rust_rlib("tokio") { "tokio_timer", "tokio_udp", ] - args = [ - "--cap-lints", - "allow", - ] if (is_posix) { extern_rlib += [ "tokio_uds" ] } } rust_rlib("tokio_buf") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/tokio-buf-0.1.1/src/lib.rs" features = [ @@ -1712,13 +1449,10 @@ rust_rlib("tokio_buf") { "either", "futures", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("tokio_codec") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/tokio-codec-0.1.1/src/lib.rs" extern_rlib = [ @@ -1726,39 +1460,30 @@ rust_rlib("tokio_codec") { "futures", "tokio_io", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("tokio_current_thread") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.6/src/lib.rs" extern_rlib = [ "futures", "tokio_executor", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("tokio_executor") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/tokio-executor-0.1.8/src/lib.rs" extern_rlib = [ "crossbeam_utils", "futures", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("tokio_fs") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/tokio-fs-0.1.6/src/lib.rs" extern_rlib = [ @@ -1766,13 +1491,10 @@ rust_rlib("tokio_fs") { "tokio_io", "tokio_threadpool", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("tokio_io") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/tokio-io-0.1.12/src/lib.rs" extern_rlib = [ @@ -1780,13 +1502,10 @@ rust_rlib("tokio_io") { "futures", "log", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("tokio_process") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/tokio-process-0.2.4/src/lib.rs" extern_rlib = [ @@ -1794,10 +1513,6 @@ rust_rlib("tokio_process") { "tokio_io", "tokio_reactor", ] - args = [ - "--cap-lints", - "allow", - ] if (is_posix) { extern_rlib += [ "crossbeam_queue", @@ -1817,6 +1532,7 @@ rust_rlib("tokio_process") { } rust_rlib("tokio_reactor") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/tokio-reactor-0.1.9/src/lib.rs" extern_rlib = [ @@ -1832,13 +1548,10 @@ rust_rlib("tokio_reactor") { "tokio_io", "tokio_sync", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("tokio_rustls") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/tokio-rustls-0.9.3/src/lib.rs" features = [ @@ -1853,26 +1566,20 @@ rust_rlib("tokio_rustls") { "tokio_io", "webpki", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("tokio_sync") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/tokio-sync-0.1.6/src/lib.rs" extern_rlib = [ "fnv", "futures", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("tokio_tcp") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/tokio-tcp-0.1.3/src/lib.rs" extern_rlib = [ @@ -1883,13 +1590,10 @@ rust_rlib("tokio_tcp") { "tokio_io", "tokio_reactor", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("tokio_threadpool") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.15/src/lib.rs" extern_rlib = [ @@ -1903,13 +1607,10 @@ rust_rlib("tokio_threadpool") { "slab", "tokio_executor", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("tokio_timer") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/tokio-timer-0.2.11/src/lib.rs" extern_rlib = [ @@ -1918,13 +1619,10 @@ rust_rlib("tokio_timer") { "slab", "tokio_executor", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("tokio_udp") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/tokio-udp-0.1.3/src/lib.rs" extern_rlib = [ @@ -1936,90 +1634,63 @@ rust_rlib("tokio_udp") { "tokio_io", "tokio_reactor", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("try_lock") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/try-lock-0.2.2/src/lib.rs" - args = [ - "--cap-lints", - "allow", - ] } 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" - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("unicode_bidi") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/unicode-bidi-0.3.4/src/lib.rs" features = [ "default" ] extern_rlib = [ "matches" ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("unicode_normalization") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/unicode-normalization-0.1.8/src/lib.rs" extern_rlib = [ "smallvec" ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("unicode_segmentation") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/unicode-segmentation-1.3.0/src/lib.rs" - args = [ - "--cap-lints", - "allow", - ] } 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" features = [ "default" ] - args = [ - "--cap-lints", - "allow", - ] } 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" features = [ "default" ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("untrusted") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/untrusted-0.6.2/src/untrusted.rs" - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("url") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/url-2.0.0/src/lib.rs" extern_rlib = [ @@ -2027,29 +1698,19 @@ rust_rlib("url") { "matches", "percent_encoding", ] - args = [ - "--cap-lints", - "allow", - ] } 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" - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("utime") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/utime-0.2.1/src/lib.rs" extern_rlib = [ "libc" ] - args = [ - "--cap-lints", - "allow", - ] if (is_win) { extern_rlib += [ "kernel32" ] extern = [ @@ -2079,24 +1740,19 @@ rust_rlib("utime") { } rust_rlib("vec_map") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/vec_map-0.8.1/src/lib.rs" - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("vlq") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/vlq-0.5.1/src/lib.rs" - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("want") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/want-0.2.0/src/lib.rs" extern_rlib = [ @@ -2104,13 +1760,10 @@ rust_rlib("want") { "log", "try_lock", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("webpki") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/webpki-0.19.1/src/webpki.rs" features = [ @@ -2122,28 +1775,22 @@ rust_rlib("webpki") { "ring", "untrusted", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("webpki_roots") { + cap_lints = "allow" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/webpki-roots-0.16.0/src/lib.rs" extern_rlib = [ "untrusted", "webpki", ] - args = [ - "--cap-lints", - "allow", - ] } ## Override: use rand v0.6.5 instead. # rust_rlib("rand-0.4.6") { # crate_name = "rand" # crate_version = "0.4.6" +# cap_lints = "allow" # edition = "2015" # source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand-0.4.6/src/lib.rs" # features = [ @@ -2151,10 +1798,6 @@ rust_rlib("webpki_roots") { # "libc", # "std", # ] -# args = [ -# "--cap-lints", -# "allow", -# ] # if (is_posix) { # extern_rlib = [ "libc" ] # } @@ -2172,6 +1815,7 @@ rust_rlib("webpki_roots") { # rust_rlib("rand-0.7.0") { # crate_name = "rand" # crate_version = "0.7.0" +# cap_lints = "allow" # source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand-0.7.0/src/lib.rs" # features = [ # "alloc", @@ -2193,10 +1837,6 @@ rust_rlib("webpki_roots") { # crate_alias = "getrandom_package" # }, # ] -# args = [ -# "--cap-lints", -# "allow", -# ] # if (is_posix) { # extern_rlib += [ "libc" ] # } @@ -2205,12 +1845,9 @@ rust_rlib("webpki_roots") { rust_rlib("rand_chacha-0.1.1") { crate_name = "rand_chacha" crate_version = "0.1.1" + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_chacha-0.1.1/src/lib.rs" - args = [ - "--cap-lints", - "allow", - ] # Added by custom-build script. cfg = [ "rustc_1_26" ] @@ -2236,6 +1873,7 @@ rust_rlib("rand_chacha-0.1.1") { # rust_rlib("rand_core-0.3.1") { # crate_name = "rand_core" # crate_version = "0.3.1" +# cap_lints = "allow" # edition = "2015" # source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_core-0.3.1/src/lib.rs" # extern = [ @@ -2246,50 +1884,38 @@ rust_rlib("rand_chacha-0.1.1") { # crate_version = "0.4.0" # }, # ] -# args = [ -# "--cap-lints", -# "allow", -# ] # } rust_rlib("rand_core-0.4.0") { crate_name = "rand_core" crate_version = "0.4.0" + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_core-0.4.0/src/lib.rs" features = [ "alloc", "std", ] - args = [ - "--cap-lints", - "allow", - ] } ## Override: use scopeguard v1.0.0 instead. # rust_rlib("scopeguard-0.3.3") { # crate_name = "scopeguard" # crate_version = "0.3.3" +# cap_lints = "allow" # edition = "2015" # source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/scopeguard-0.3.3/src/lib.rs" -# args = [ -# "--cap-lints", -# "allow", -# ] # } 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" - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("mio_uds") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/mio-uds-0.6.7/src/lib.rs" extern_rlib = [ @@ -2297,13 +1923,10 @@ if (is_posix) { "libc", "mio", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("nix") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/nix-0.14.1/src/lib.rs" extern_rlib = [ @@ -2312,39 +1935,30 @@ if (is_posix) { "libc", "void", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("signal_hook") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/signal-hook-0.1.10/src/lib.rs" extern_rlib = [ "libc", "signal_hook_registry", ] - args = [ - "--cap-lints", - "allow", - ] } 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" extern_rlib = [ "arc_swap", "libc", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("tokio_signal") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/tokio-signal-0.2.7/src/lib.rs" extern_rlib = [ @@ -2357,13 +1971,10 @@ if (is_posix) { "tokio_io", "tokio_reactor", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("tokio_uds") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/tokio-uds-0.2.5/src/lib.rs" extern_rlib = [ @@ -2378,62 +1989,47 @@ if (is_posix) { "tokio_io", "tokio_reactor", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("utf8parse") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/utf8parse-0.1.1/src/lib.rs" - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("void") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/void-1.0.2/src/lib.rs" features = [ "default", "std", ] - args = [ - "--cap-lints", - "allow", - ] } ## Override: use ansi_term v0.12.0 instead. # rust_rlib("ansi_term-0.11.0") { # crate_name = "ansi_term" # crate_version = "0.11.0" + # cap_lints = "allow" # edition = "2015" # source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/ansi_term-0.11.0/src/lib.rs" - # args = [ - # "--cap-lints", - # "allow", - # ] # } } if (is_win) { rust_rlib("fwdansi") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/fwdansi-1.0.1/src/lib.rs" extern_rlib = [ "memchr", "termcolor", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("kernel32") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/kernel32-sys-0.2.2/src/lib.rs" extern = [ @@ -2444,16 +2040,13 @@ if (is_win) { crate_version = "0.2.8" }, ] - args = [ - "--cap-lints", - "allow", - ] # Added by custom-build script. libs = [ "kernel32.lib" ] } rust_rlib("mio_named_pipes") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/mio-named-pipes-0.1.6/src/lib.rs" extern_rlib = [ @@ -2462,35 +2055,26 @@ if (is_win) { "miow", "winapi", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("miow") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/miow-0.3.3/src/lib.rs" extern_rlib = [ "socket2", "winapi", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("socket2") { + cap_lints = "allow" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/socket2-0.3.10/src/lib.rs" extern_rlib = [ "winapi" ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("winapi") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/winapi-0.3.7/src/lib.rs" features = [ @@ -2562,10 +2146,6 @@ if (is_win) { "winreg", "wtypes", ] - args = [ - "--cap-lints", - "allow", - ] # Added by custom-build script. libs = [ @@ -2589,29 +2169,24 @@ if (is_win) { } rust_rlib("winapi_util") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/winapi-util-0.1.2/src/lib.rs" extern_rlib = [ "winapi" ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("wincolor") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/wincolor-1.0.1/src/lib.rs" extern_rlib = [ "winapi", "winapi_util", ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("ws2_32") { + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/ws2_32-sys-0.2.1/src/lib.rs" extern = [ @@ -2622,10 +2197,6 @@ if (is_win) { crate_version = "0.2.8" }, ] - args = [ - "--cap-lints", - "allow", - ] # Added by custom-build script. libs = [ "ws2_32.lib" ] @@ -2634,6 +2205,7 @@ if (is_win) { rust_rlib("miow-0.2.1") { crate_name = "miow" crate_version = "0.2.1" + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/miow-0.2.1/src/lib.rs" extern_rlib = [ @@ -2649,20 +2221,13 @@ if (is_win) { crate_version = "0.2.8" }, ] - args = [ - "--cap-lints", - "allow", - ] } rust_rlib("winapi-0.2.8") { crate_name = "winapi" crate_version = "0.2.8" + cap_lints = "allow" edition = "2015" source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/winapi-0.2.8/src/lib.rs" - args = [ - "--cap-lints", - "allow", - ] } } diff --git a/build_extra/rust/rust.gni b/build_extra/rust/rust.gni index 7f67d2068f..2af3b2b127 100644 --- a/build_extra/rust/rust.gni +++ b/build_extra/rust/rust.gni @@ -56,6 +56,7 @@ template("_rust_crate") { forward_variables_from(invoker, [ + "cap_lints", "cfg", "crate_name", "crate_type", @@ -280,6 +281,12 @@ template("_rust_crate") { if (rust_treat_warnings_as_errors) { args += [ "-Dwarnings" ] } + if (defined(cap_lints)) { + args += [ + "--cap-lints", + cap_lints, + ] + } if (defined(invoker.args)) { args += invoker.args }