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