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