@@ -35,7 +35,6 @@ serde = { version = "1.0.136", default-features = false, features = ["derive", "
35
35
serde_json = { version = " 1.0.45" , default-features = false , features = [" alloc" ], optional = true }
36
36
unicode-xid = { version = " 0.2.0" , default-features = false , optional = true }
37
37
rust_decimal = { version = " 1.24.0" , default-features = false , features = [" maths" ], optional = true }
38
- getrandom = { version = " 0.2.7" , optional = true }
39
38
rustyline = { version = " 15.0.0" , optional = true }
40
39
document-features = { version = " 0.2.0" , optional = true }
41
40
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",
118
117
# ! ### JavaScript Interface for WASM
119
118
120
119
# # Use [`wasm-bindgen`](https://crates.io/crates/wasm-bindgen) as JavaScript interface.
121
- wasm-bindgen = [" getrandom/js " , " instant/wasm-bindgen" ]
120
+ wasm-bindgen = [" instant/wasm-bindgen" ]
122
121
# # Use [`stdweb`](https://crates.io/crates/stdweb) as JavaScript interface.
123
- stdweb = [" getrandom/js " , " instant/stdweb" ]
122
+ stdweb = [" instant/stdweb" ]
124
123
125
124
# ! ### Features used in testing environments only
126
125
@@ -156,7 +155,9 @@ codegen-units = 1
156
155
# panic = 'abort' # remove stack backtrace for no-std
157
156
158
157
[target .'cfg(target_family = "wasm")' .dependencies ]
159
- instant = { version = " 0.1.10" } # WASM implementation of std::time::Instant
158
+ instant = { version = " 0.1.10" , optional = true } # WASM implementation of std::time::Instant
159
+ getrandom = { version = " 0.2.7" , features = [" js" ] }
160
+
160
161
161
162
[package .metadata .docs .rs ]
162
163
features = [" document-features" , " metadata" , " serde" , " internals" , " decimal" , " debugging" ]
0 commit comments