diff --git a/Cargo.toml b/Cargo.toml index c8e0e588d..815382fea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,7 +35,6 @@ serde = { version = "1.0.136", default-features = false, features = ["derive", " serde_json = { version = "1.0.45", default-features = false, features = ["alloc"], optional = true } unicode-xid = { version = "0.2.0", default-features = false, optional = true } rust_decimal = { version = "1.24.0", default-features = false, features = ["maths"], optional = true } -getrandom = { version = "0.2.7", optional = true } rustyline = { version = "15.0.0", optional = true } document-features = { version = "0.2.0", optional = true } arbitrary = { version = "1.3.2", optional = true, features = ["derive"] } @@ -118,9 +117,9 @@ no_std = ["no-std-compat", "num-traits/libm", "core-error", "libm", "hashbrown", #! ### JavaScript Interface for WASM ## Use [`wasm-bindgen`](https://crates.io/crates/wasm-bindgen) as JavaScript interface. -wasm-bindgen = ["getrandom/js", "instant/wasm-bindgen"] +wasm-bindgen = ["instant/wasm-bindgen"] ## Use [`stdweb`](https://crates.io/crates/stdweb) as JavaScript interface. -stdweb = ["getrandom/js", "instant/stdweb"] +stdweb = ["instant/stdweb"] #! ### Features used in testing environments only @@ -156,7 +155,8 @@ codegen-units = 1 #panic = 'abort' # remove stack backtrace for no-std [target.'cfg(target_family = "wasm")'.dependencies] -instant = { version = "0.1.10" } # WASM implementation of std::time::Instant +instant = { version = "0.1.10", optional = true } # WASM implementation of std::time::Instant +getrandom = { version = "0.2.7", features = ["js"] } [package.metadata.docs.rs] features = ["document-features", "metadata", "serde", "internals", "decimal", "debugging"]