feat: add dependency
This commit is contained in:
53
javascript-engine/external/getrandom/Cargo.toml
vendored
Normal file
53
javascript-engine/external/getrandom/Cargo.toml
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
[package]
|
||||
name = "getrandom"
|
||||
version = "0.2.8" # Also update html_root_url in lib.rs when bumping this
|
||||
edition = "2018"
|
||||
authors = ["The Rand Project Developers"]
|
||||
license = "MIT OR Apache-2.0"
|
||||
description = "A small cross-platform library for retrieving random data from system source"
|
||||
documentation = "https://docs.rs/getrandom"
|
||||
repository = "https://github.com/rust-random/getrandom"
|
||||
categories = ["os", "no-std"]
|
||||
exclude = [".*"]
|
||||
|
||||
[dependencies]
|
||||
cfg-if = "1"
|
||||
|
||||
# When built as part of libstd
|
||||
compiler_builtins = { version = "0.1", optional = true }
|
||||
core = { version = "1.0", optional = true, package = "rustc-std-workspace-core" }
|
||||
|
||||
[target.'cfg(unix)'.dependencies]
|
||||
libc = { version = "0.2.139", default-features = false }
|
||||
|
||||
[target.'cfg(target_os = "wasi")'.dependencies]
|
||||
wasi = { version = "0.11", default-features = false }
|
||||
|
||||
[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dependencies]
|
||||
wasm-bindgen = { version = "0.2.62", default-features = false, optional = true }
|
||||
js-sys = { version = "0.3", optional = true }
|
||||
[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dev-dependencies]
|
||||
wasm-bindgen-test = "0.3.18"
|
||||
|
||||
[features]
|
||||
# Implement std-only traits for getrandom::Error
|
||||
std = []
|
||||
# Feature to enable fallback RDRAND-based implementation on x86/x86_64
|
||||
rdrand = []
|
||||
# Feature to enable JavaScript bindings on wasm*-unknown-unknown
|
||||
js = ["wasm-bindgen", "js-sys"]
|
||||
# Feature to enable custom RNG implementations
|
||||
custom = []
|
||||
# Unstable feature to support being a libstd dependency
|
||||
rustc-dep-of-std = [
|
||||
"compiler_builtins",
|
||||
"core",
|
||||
"libc/rustc-dep-of-std",
|
||||
"wasi/rustc-dep-of-std",
|
||||
]
|
||||
# Unstable/test-only feature to run wasm-bindgen tests in a browser
|
||||
test-in-browser = []
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["std", "custom"]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
Reference in New Issue
Block a user