summaryrefslogtreecommitdiff
path: root/build_extra/rust/BUILD.gn
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2019-03-31 17:54:58 -0400
committerBert Belder <bertbelder@gmail.com>2019-03-31 17:55:03 -0400
commitff1c80d6d896a3c1cb45d767a6c667ce99eb000b (patch)
treecda5d7dcd1eb49ff2b836008792ead368ad167c6 /build_extra/rust/BUILD.gn
parent97265895baaf7e90180f10f7ef741e9bbf1dcfd0 (diff)
third_party: add rust crate 'clap'
Diffstat (limited to 'build_extra/rust/BUILD.gn')
-rw-r--r--build_extra/rust/BUILD.gn77
1 files changed, 67 insertions, 10 deletions
diff --git a/build_extra/rust/BUILD.gn b/build_extra/rust/BUILD.gn
index a0dd6e0ef..565a09838 100644
--- a/build_extra/rust/BUILD.gn
+++ b/build_extra/rust/BUILD.gn
@@ -67,6 +67,16 @@ rust_crate("base64") {
]
}
+rust_crate("bitflags") {
+ edition = "2015"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/bitflags-1.0.4/src/lib.rs"
+ features = [ "default" ]
+ args = [
+ "--cap-lints",
+ "allow",
+ ]
+}
+
rust_crate("byteorder") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/byteorder-1.3.1/src/lib.rs"
@@ -105,6 +115,35 @@ rust_crate("cfg_if") {
]
}
+rust_crate("clap") {
+ edition = "2015"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/clap-2.32.0/src/lib.rs"
+ features = [
+ "ansi_term",
+ "atty",
+ "color",
+ "default",
+ "strsim",
+ "suggestions",
+ "vec_map",
+ ]
+ extern = [
+ ":atty",
+ ":bitflags",
+ ":strsim",
+ ":textwrap",
+ ":unicode_width",
+ ":vec_map",
+ ]
+ args = [
+ "--cap-lints",
+ "allow",
+ ]
+ if (is_posix) {
+ extern += [ ":ansi_term" ]
+ }
+}
+
rust_crate("crossbeam_deque") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/crossbeam-deque-0.7.1/src/lib.rs"
@@ -1238,6 +1277,15 @@ rust_crate("string") {
]
}
+rust_crate("strsim") {
+ edition = "2015"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/strsim-0.7.0/src/lib.rs"
+ args = [
+ "--cap-lints",
+ "allow",
+ ]
+}
+
rust_crate("tempfile") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/tempfile-3.0.7/src/lib.rs"
@@ -1258,6 +1306,16 @@ rust_crate("tempfile") {
}
}
+rust_crate("textwrap") {
+ edition = "2015"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/textwrap-0.10.0/src/lib.rs"
+ extern = [ ":unicode_width" ]
+ args = [
+ "--cap-lints",
+ "allow",
+ ]
+}
+
rust_crate("thread_local") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/thread_local-0.3.6/src/lib.rs"
@@ -1661,6 +1719,15 @@ rust_crate("utf8_ranges") {
]
}
+rust_crate("vec_map") {
+ edition = "2015"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/vec_map-0.8.1/src/lib.rs"
+ args = [
+ "--cap-lints",
+ "allow",
+ ]
+}
+
rust_crate("vlq") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/vlq-0.5.1/src/lib.rs"
@@ -1765,16 +1832,6 @@ if (is_posix) {
]
}
- rust_crate("bitflags") {
- edition = "2015"
- source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/bitflags-1.0.4/src/lib.rs"
- features = [ "default" ]
- args = [
- "--cap-lints",
- "allow",
- ]
- }
-
rust_crate("mio_uds") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/mio-uds-0.6.7/src/lib.rs"