| 1 | # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| 2 | # |
| 3 | # When uploading crates to the registry Cargo will automatically |
| 4 | # "normalize" Cargo.toml files for maximal compatibility |
| 5 | # with all versions of Cargo and also rewrite `path` dependencies |
| 6 | # to registry (e.g., crates.io) dependencies. |
| 7 | # |
| 8 | # If you are reading this file be aware that the original Cargo.toml |
| 9 | # will likely look very different (and much more reasonable). |
| 10 | # See Cargo.toml.orig for the original contents. |
| 11 | |
| 12 | [package] |
| 13 | edition = "2018" |
| 14 | rust-version = "1.63" |
| 15 | name = "fastrand" |
| 16 | version = "2.5.0" |
| 17 | authors = ["Stjepan Glavina <stjepang@gmail.com>"] |
| 18 | build = false |
| 19 | exclude = ["/.*"] |
| 20 | autolib = false |
| 21 | autobins = false |
| 22 | autoexamples = false |
| 23 | autotests = false |
| 24 | autobenches = false |
| 25 | description = "A simple and fast random number generator" |
| 26 | readme = "README.md" |
| 27 | keywords = [ |
| 28 | "simple", |
| 29 | "fast", |
| 30 | "rand", |
| 31 | "random", |
| 32 | "wyrand", |
| 33 | ] |
| 34 | categories = ["algorithms"] |
| 35 | license = "Apache-2.0 OR MIT" |
| 36 | repository = "https://github.com/smol-rs/fastrand" |
| 37 | |
| 38 | [package.metadata.docs.rs] |
| 39 | all-features = true |
| 40 | rustdoc-args = [ |
| 41 | "--cfg", |
| 42 | "docsrs", |
| 43 | ] |
| 44 | |
| 45 | [features] |
| 46 | alloc = [] |
| 47 | default = ["std"] |
| 48 | js = [ |
| 49 | "std", |
| 50 | "getrandom", |
| 51 | ] |
| 52 | std = ["alloc"] |
| 53 | |
| 54 | [lib] |
| 55 | name = "fastrand" |
| 56 | path = "src/lib.rs" |
| 57 | |
| 58 | [[test]] |
| 59 | name = "char" |
| 60 | path = "tests/char.rs" |
| 61 | |
| 62 | [[test]] |
| 63 | name = "smoke" |
| 64 | path = "tests/smoke.rs" |
| 65 | |
| 66 | [[bench]] |
| 67 | name = "bench" |
| 68 | path = "benches/bench.rs" |
| 69 | |
| 70 | [dev-dependencies.getrandom] |
| 71 | version = "0.4" |
| 72 | |
| 73 | [dev-dependencies.rand] |
| 74 | version = "0.10" |
| 75 | |
| 76 | [dev-dependencies.wyhash] |
| 77 | version = "0.6" |
| 78 | |
| 79 | # Vendored patch (see docs-wt-core/vendor/README.md): dropped the forced |
| 80 | # "wasm_js" feature so that a `--cfg getrandom_backend="..."` override (used |
| 81 | # by docs-core to avoid a wasm-bindgen/JS import dependency) doesn't hit |
| 82 | # getrandom's `Error::WEB_CRYPTO` cfg mismatch (that item only exists when |
| 83 | # the "wasm_js" backend module itself is compiled, which a cfg override to |
| 84 | # a different backend skips, but `error.rs`'s Display impl references it |
| 85 | # whenever the "wasm_js" *feature* is enabled, regardless of which backend |
| 86 | # is actually selected). |
| 87 | [target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dependencies.getrandom] |
| 88 | version = "0.4" |
| 89 | optional = true |
| 90 | |
| 91 | [target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dev-dependencies.getrandom] |
| 92 | version = "0.4" |
| 93 | features = ["wasm_js"] |
| 94 | |
| 95 | [target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dev-dependencies.wasm-bindgen-test] |
| 96 | version = "0.3" |
| 97 | |