diff options
Diffstat (limited to 'Cargo.toml.orig')
-rw-r--r-- | Cargo.toml.orig | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/Cargo.toml.orig b/Cargo.toml.orig index c5e85ad..8c80502 100644 --- a/Cargo.toml.orig +++ b/Cargo.toml.orig @@ -2,11 +2,11 @@ name = "fastrand" # When publishing a new version: # - Update CHANGELOG.md -# - Create "v2.x.y" git tag -version = "2.0.1" +# - Create "v1.x.y" git tag +version = "1.9.0" authors = ["Stjepan Glavina <stjepang@gmail.com>"] edition = "2018" -rust-version = "1.36" +rust-version = "1.34" description = "A simple and fast random number generator" license = "Apache-2.0 OR MIT" repository = "https://github.com/smol-rs/fastrand" @@ -14,16 +14,11 @@ keywords = ["simple", "fast", "rand", "random", "wyrand"] categories = ["algorithms"] exclude = ["/.*"] -[features] -default = ["std"] -alloc = [] -std = ["alloc"] -js = ["std", "getrandom"] +[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies] +instant = "0.1" -[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dependencies] -getrandom = { version = "0.2", features = ["js"], optional = true } - -[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dev-dependencies] +[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dev-dependencies] +instant = { version = "0.1", features = ["wasm-bindgen"] } wasm-bindgen-test = "0.3" getrandom = { version = "0.2", features = ["js"] } @@ -31,7 +26,3 @@ getrandom = { version = "0.2", features = ["js"] } rand = "0.8" wyhash = "0.5" getrandom = "0.2" - -[package.metadata.docs.rs] -all-features = true -rustdoc-args = ["--cfg", "docsrs"] |