1[package]
2name = "fastrand"
3# When publishing a new version:
4# - Update CHANGELOG.md
5# - Create "v2.x.y" git tag
6version = "2.0.1"
7authors = ["Stjepan Glavina <stjepang@gmail.com>"]
8edition = "2018"
9rust-version = "1.36"
10description = "A simple and fast random number generator"
11license = "Apache-2.0 OR MIT"
12repository = "https://github.com/smol-rs/fastrand"
13keywords = ["simple", "fast", "rand", "random", "wyrand"]
14categories = ["algorithms"]
15exclude = ["/.*"]
16
17[features]
18default = ["std"]
19alloc = []
20std = ["alloc"]
21js = ["std", "getrandom"]
22
23[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dependencies]
24getrandom = { version = "0.2", features = ["js"], optional = true }
25
26[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dev-dependencies]
27wasm-bindgen-test = "0.3"
28getrandom = { version = "0.2", features = ["js"] }
29
30[dev-dependencies]
31rand = "0.8"
32wyhash = "0.5"
33getrandom = "0.2"
34
35[package.metadata.docs.rs]
36all-features = true
37rustdoc-args = ["--cfg", "docsrs"]
38