-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
53 lines (45 loc) · 1.37 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[package]
name = "smolcrush"
authors = ["satvrn"]
description = "A smol RNG library for Rust."
documentation = "https://docs.rs/smolcrush"
homepage = "https://github.com/notsatvrn/smolcrush"
repository = "https://github.com/notsatvrn/smolcrush"
readme = "README.md"
keywords = ["rng", "random", "rand"]
categories = ["no-std", "wasm"]
version = "0.3.0"
rust-version = "1.60.0"
edition = "2021"
license = "MIT"
[dependencies]
rand_core = "0.6"
getrandom = { version = "0.2", optional = true }
zeroize = { version = "1.7", features = ["derive"], optional = true }
[target.'cfg(target_family = "wasm")'.dependencies]
getrandom = { version = "0.2", features = ["js"], optional = true }
[features]
default = ["wyrand", "xorwow"]
system-rng = ["dep:getrandom", "rand_core/getrandom"]
32bit = ["kiss", "splitmix32", "swb32", "xorshift32", "xorshift128", "xorwow"]
64bit = ["splitmix64", "swb64", "xorshift64", "xorshift64star", "xorshift128plus", "xorshift1024plus", "xorshift1024star"]
all = ["32bit", "64bit", "system-rng"]
# splitmix
splitmix32 = []
splitmix64 = []
# wyrand
wyrand = []
# xorshift
xorshift32 = []
xorshift64 = []
xorshift64star = []
xorshift128 = ["splitmix32"]
xorshift128plus = ["splitmix64"]
xorshift1024plus = ["splitmix64"]
xorshift1024star = ["splitmix64"]
# other George Marsaglia PRNGs
kiss = []
swb32 = ["splitmix32"]
swb64 = ["splitmix64"]
# xorwow
xorwow = ["splitmix32"]