summaryrefslogtreecommitdiff
path: root/build_extra
diff options
context:
space:
mode:
Diffstat (limited to 'build_extra')
-rw-r--r--build_extra/rust/BUILD.gn35
1 files changed, 35 insertions, 0 deletions
diff --git a/build_extra/rust/BUILD.gn b/build_extra/rust/BUILD.gn
index d7c3415fe..b1a36fedf 100644
--- a/build_extra/rust/BUILD.gn
+++ b/build_extra/rust/BUILD.gn
@@ -1468,6 +1468,18 @@ rust_rlib("tempfile") {
}
}
+rust_rlib("termcolor") {
+ edition = "2015"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/termcolor-1.0.4/src/lib.rs"
+ args = [
+ "--cap-lints",
+ "allow",
+ ]
+ if (is_win) {
+ extern_rlib = [ "wincolor" ]
+ }
+}
+
rust_rlib("textwrap") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/textwrap-0.11.0/src/lib.rs"
@@ -2353,6 +2365,29 @@ if (is_win) {
]
}
+ rust_rlib("winapi_util") {
+ 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") {
+ 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") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/ws2_32-sys-0.2.1/src/lib.rs"