diff options
author | Daniel Prilik <prilik@google.com> | 2019-01-14 14:19:04 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-01-17 20:20:50 -0800 |
commit | 2200604d9c101888df658f9483290a13952c6b1c (patch) | |
tree | 8b3982baeeb7f61824f95bd8a91a972f3104b729 /Cargo.toml | |
parent | a4d5bd4bc271c505097f18ea0506926dbdf8d682 (diff) | |
download | crosvm-2200604d9c101888df658f9483290a13952c6b1c.tar crosvm-2200604d9c101888df658f9483290a13952c6b1c.tar.gz crosvm-2200604d9c101888df658f9483290a13952c6b1c.tar.bz2 crosvm-2200604d9c101888df658f9483290a13952c6b1c.tar.lz crosvm-2200604d9c101888df658f9483290a13952c6b1c.tar.xz crosvm-2200604d9c101888df658f9483290a13952c6b1c.tar.zst crosvm-2200604d9c101888df658f9483290a13952c6b1c.zip |
remove rand crate
the few uses of rand::thread_rng() have been replaced with either prngs or reads from /dev/urandom. the implementations are under the `rand_ish` minicrate. `protoc-rust` depends on `tempdir`, which relies on rand, so `tempdir` has been patched with a rewritten version that does not have rand as a dependency. BUG=chromium:921795 TEST=cargo test --features plugin Change-Id: I6f1c7d7a1aeef4dd55ac71e58294d16c291b8871 Reviewed-on: https://chromium-review.googlesource.com/1409705 Commit-Ready: Daniel Prilik <prilik@google.com> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Zach Reizner <zachr@chromium.org>
Diffstat (limited to 'Cargo.toml')
-rw-r--r-- | Cargo.toml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml index 7ab3b16..1521d4f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,8 @@ exclude = [ "sync", "sys_util", "syscall_defines", + "tempdir", + "rand_ish", ] [features] @@ -51,8 +53,8 @@ crosvm_plugin = { path = "crosvm_plugin", optional = true } protobuf = { version = "=1.4.3", optional = true } resources = { path = "resources" } p9 = { path = "p9" } -rand = "=0.3.20" sync = { path = "sync" } +rand_ish = { path = "rand_ish" } [target.'cfg(target_arch = "x86_64")'.dependencies] x86_64 = { path = "x86_64" } @@ -70,3 +72,4 @@ poll_token_derive = { path = "sys_util/poll_token_derive" } sync = { path = "sync" } sys_util = { path = "sys_util" } syscall_defines = { path = "syscall_defines" } +tempdir = { path = "tempdir" } |