@@ -55,7 +55,7 @@ status = "actively-developed"
5555
5656[features ]
5757default = [" std" ]
58- std = []
58+ std = [" wasm-bindgen?/std " , " js-sys?/std " ]
5959macro-diagnostics = [" dep:uuid-macro-internal" ]
6060
6161# NOTE: When adding new features, check the `ci.yml` workflow
@@ -126,21 +126,24 @@ optional = true
126126version = " 1"
127127default-features = false
128128
129+ # NOTE: `getrandom` will throw a compiler error for the following target configuration when `wasm_js` is not enabled:
130+ # all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none"))
131+
129132# Private
130133# (Formally public)
131- [target .'cfg(not(all(target_arch = "wasm32", target_vendor = "unknown", target_os = "unknown" )))' .dependencies .getrandom ]
134+ [target .'cfg(not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none") )))' .dependencies .getrandom ]
132135version = " 0.3"
133136optional = true
134137
135- [target .'cfg(all(target_arch = "wasm32", target_vendor = "unknown", target_os = "unknown" ))' .dependencies .uuid-rng-internal-lib ]
138+ [target .'cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none") ))' .dependencies .uuid-rng-internal-lib ]
136139# Work-around lack of support for both `dep:x` and `x/` in MSRV
137140package = " uuid-rng-internal"
138141version = " 1.16.0"
139142path = " rng"
140143optional = true
141144
142145# Private
143- [target .'cfg(not(all(target_arch = "wasm32", target_vendor = "unknown", target_os = "unknown" )))' .dependencies .rand ]
146+ [target .'cfg(not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none") )))' .dependencies .rand ]
144147version = " 0.9"
145148optional = true
146149
@@ -169,12 +172,15 @@ optional = true
169172version = " 0.6"
170173
171174# Private
172- [target .'cfg(all(target_arch = "wasm32", target_vendor = "unknown", target_os = "unknown"))' .dependencies .wasm-bindgen ]
175+ [target .'cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))' .dependencies .wasm-bindgen ]
176+ default-features = false
177+ features = [" msrv" ]
173178version = " 0.2"
174179optional = true
175180
176181# Private
177- [target .'cfg(all(target_arch = "wasm32", target_vendor = "unknown", target_os = "unknown", target_feature = "atomics"))' .dependencies .js-sys ]
182+ [target .'cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none"), target_feature = "atomics"))' .dependencies .js-sys ]
183+ default-features = false
178184version = " 0.3"
179185optional = true
180186
@@ -190,10 +196,13 @@ version = "1.0"
190196[dev-dependencies .serde_test ]
191197version = " 1.0.56"
192198
193- [target .'cfg(all(target_arch = "wasm32", target_vendor = "unknown", target_os = "unknown"))' .dev-dependencies .wasm-bindgen ]
199+ [target .'cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))' .dev-dependencies .wasm-bindgen ]
200+ default-features = false
201+ features = [" msrv" ]
194202version = " 0.2"
195203
196- [target .'cfg(all(target_arch = "wasm32", target_vendor = "unknown", target_os = "unknown"))' .dev-dependencies .wasm-bindgen-test ]
204+ [target .'cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))' .dev-dependencies .wasm-bindgen-test ]
205+ default-features = false
197206version = " 0.3"
198207
199208[dev-dependencies .trybuild ]
0 commit comments