summaryrefslogtreecommitdiff
path: root/build_extra/rust/BUILD.gn
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-07-24 01:45:23 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-07-29 00:22:39 -0400
commit1f093c12f84d269cb68370262d68ff6d515aef2e (patch)
tree922b0e9008b0ded8aa4528349f74ee41f82b0028 /build_extra/rust/BUILD.gn
parentc06f2789f879c2274b7a082403d12326a3fdf796 (diff)
Add sha1 and tempfile crates.
Diffstat (limited to 'build_extra/rust/BUILD.gn')
-rw-r--r--build_extra/rust/BUILD.gn38
1 files changed, 38 insertions, 0 deletions
diff --git a/build_extra/rust/BUILD.gn b/build_extra/rust/BUILD.gn
index b94cfe372..f5f0b9bb6 100644
--- a/build_extra/rust/BUILD.gn
+++ b/build_extra/rust/BUILD.gn
@@ -69,3 +69,41 @@ rust_component("cfg_if") {
source_root =
"$crates/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.4/src/lib.rs"
}
+
+rust_component("sha1") {
+ source_root =
+ "$crates/registry/src/github.com-1ecc6299db9ec823/sha1-0.6.0/src/lib.rs"
+}
+
+rust_component("tempfile") {
+ source_root = "$crates/registry/src/github.com-1ecc6299db9ec823/tempfile-3.0.3/src/lib.rs"
+ extern = [
+ ":libc",
+ ":rand",
+ ":remove_dir_all",
+ ]
+}
+
+rust_component("rand") {
+ source_root =
+ "$crates/registry/src/github.com-1ecc6299db9ec823/rand-0.5.4/src/lib.rs"
+ extern = [
+ ":libc",
+ ":rand_core",
+ ]
+ cfg = [
+ "feature=\"std\"",
+ "feature=\"alloc\"",
+ ]
+ if (is_mac) {
+ libs = [ "Security.framework" ]
+ }
+}
+
+rust_component("rand_core") {
+ source_root = "$crates/registry/src/github.com-1ecc6299db9ec823/rand_core-0.2.1/src/lib.rs"
+}
+
+rust_component("remove_dir_all") {
+ source_root = "$crates/registry/src/github.com-1ecc6299db9ec823/remove_dir_all-0.5.1/src/lib.rs"
+}