aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTaylor Yu <catalyst@torproject.org>2018-06-15 15:19:16 -0500
committerTaylor Yu <catalyst@torproject.org>2018-06-15 15:19:16 -0500
commit9dd45456fea88a7526a4e43dc7eef1fd0f8224da (patch)
tree2c9cb467fc6880d9a48517c90abdb1c0af4f8574 /src
parent945d871da54e6038fdabaf3b78a7a55b290ab6aa (diff)
downloadtor-9dd45456fea88a7526a4e43dc7eef1fd0f8224da.tar.gz
tor-9dd45456fea88a7526a4e43dc7eef1fd0f8224da.zip
Set default-features = false for rand_core
Apparently rand and rand_core need to be built with the "std" feature set consistently, or there will be a compile error in rngs/jitter.rs.
Diffstat (limited to 'src')
-rw-r--r--src/rust/crypto/Cargo.toml3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rust/crypto/Cargo.toml b/src/rust/crypto/Cargo.toml
index 3d343344ae..c0c5e7bf93 100644
--- a/src/rust/crypto/Cargo.toml
+++ b/src/rust/crypto/Cargo.toml
@@ -13,7 +13,7 @@ crate_type = ["rlib", "staticlib"]
[dependencies]
libc = "=0.2.39"
digest = "=0.7.2"
-rand_core = "=0.2.0-pre.0"
+rand_core = { version = "=0.2.0-pre.0", default-features = false }
external = { path = "../external" }
smartlist = { path = "../smartlist" }
@@ -22,6 +22,7 @@ tor_log = { path = "../tor_log" }
[dev-dependencies]
rand = { version = "=0.5.0-pre.2", default-features = false }
+rand_core = { version = "=0.2.0-pre.0", default-features = false }
[features]
testing = ["tor_log/testing"]