Skip to content

Commit f792e48

Browse files
committed
Add simd_support feature
1 parent af1303c commit f792e48

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ appveyor = { repository = "alexcrichton/rand" }
1919

2020
[features]
2121
default = ["std" ] # without "std" rand uses libcore
22-
nightly = ["i128_support"] # enables all features requiring nightly rust
22+
nightly = ["i128_support", "simd_support"] # enables all features requiring nightly rust
2323
std = ["rand_core/std", "alloc", "libc", "winapi", "cloudabi", "fuchsia-zircon"]
2424
alloc = ["rand_core/alloc"] # enables Vec and Box support (without std)
2525
i128_support = [] # enables i128 and u128 support
26+
simd_support = [] # enables SIMD support
2627
serde1 = ["serde", "serde_derive", "rand_core/serde1"] # enables serialization for PRNGs
2728

2829
[workspace]

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@
233233
#![cfg_attr(all(feature="alloc", not(feature="std")), feature(alloc))]
234234
#![cfg_attr(all(feature="i128_support", feature="nightly"), allow(stable_features))] // stable since 2018-03-27
235235
#![cfg_attr(all(feature="i128_support", feature="nightly"), feature(i128_type, i128))]
236+
#![cfg_attr(all(feature="simd_support", feature="nightly"), feature(stdsimd))]
236237
#![cfg_attr(feature = "stdweb", recursion_limit="128")]
237238

238239
#[cfg(feature="std")] extern crate std as core;

0 commit comments

Comments
 (0)