summaryrefslogtreecommitdiff
path: root/build_extra/rust
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-05-30 11:07:58 -0400
committerRyan Dahl <ry@tinyclouds.org>2019-06-25 06:32:28 -0700
commit3a4d88475b40a17f2ce17b775a3f07c78be83d79 (patch)
tree2780e2c7ea86c0a7e039cfc3e478bd82131a467e /build_extra/rust
parent89216c7baaab8ade3daf9103572647addeb404f3 (diff)
Port code from Cargo and use for progress
A lot of its functionality is unused still, but the goal it to slowly migrate logging functionality to it. There is also a useful progress bar which can be ported over later - it depends on this module. https://github.com/rust-lang/cargo/blob/4c1fa54d10f58d69ac9ff55be68e1b1c25ecb816/src/cargo/util/progress.rs
Diffstat (limited to 'build_extra/rust')
-rw-r--r--build_extra/rust/BUILD.gn13
1 files changed, 13 insertions, 0 deletions
diff --git a/build_extra/rust/BUILD.gn b/build_extra/rust/BUILD.gn
index b1a36fedf..8151eb89f 100644
--- a/build_extra/rust/BUILD.gn
+++ b/build_extra/rust/BUILD.gn
@@ -1480,6 +1480,19 @@ rust_rlib("termcolor") {
}
}
+rust_rlib("fwdansi") {
+ edition = "2015"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/fwdansi-1.0.1/src/lib.rs"
+ args = [
+ "--cap-lints",
+ "allow",
+ ]
+ extern_rlib = [
+ "memchr",
+ "termcolor",
+ ]
+}
+
rust_rlib("textwrap") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/textwrap-0.11.0/src/lib.rs"