Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rand dependency to 0.6 #1425

Merged
merged 1 commit into from
Jan 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions futures-select-macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ pub fn select(input: TokenStream) -> TokenStream {
#( #poll_functions )*

let mut __select_arr = [#( #variant_names ),*];
#rand_crate::Rng::shuffle(
&mut #rand_crate::thread_rng(),
<[_] as #rand_crate::prelude::SliceRandom>::shuffle(
&mut __select_arr,
&mut #rand_crate::thread_rng(),
);
for poller in &mut __select_arr {
let poller: &mut &mut dyn FnMut(
Expand Down
5 changes: 3 additions & 2 deletions futures-util/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Common utilities and extension traits for the futures-rs library.
name = "futures_util"

[features]
std = ["futures-core-preview/std", "futures-io-preview/std", "futures-sink-preview/std", "futures-select-macro-preview/std", "either/use_std", "rand", "slab"]
std = ["futures-core-preview/std", "futures-io-preview/std", "futures-sink-preview/std", "futures-select-macro-preview/std", "either/use_std", "rand", "rand_core", "slab"]
default = ["std", "futures-core-preview/either", "futures-sink-preview/either"]
compat = ["std", "futures_01"]
io-compat = ["compat", "tokio-io"]
Expand All @@ -32,7 +32,8 @@ futures-select-macro-preview = { path = "../futures-select-macro", version = "=0
either = { version = "1.4", default-features = false }
proc-macro-hack = "0.5"
proc-macro-nested = "0.1.2"
rand = { version = "0.5.5", optional = true }
rand = { version = "0.6.4", optional = true }
rand_core = { version = ">=0.2.2, <0.4", optional = true } # See https://github.com/rust-random/rand/issues/645
slab = { version = "0.4", optional = true }
futures_01 = { version = "0.1.25", optional = true, package = "futures" }
tokio-executor = { version = "0.1.2", optional = true }
Expand Down