Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d2bd3f2

Browse files
committedSep 27, 2021
try to fix wasm32-unknown-unknown build
1 parent 37e7372 commit d2bd3f2

File tree

2 files changed

+90
-9
lines changed

2 files changed

+90
-9
lines changed
 

‎Cargo.lock

+87-9
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,12 @@ dependencies = [
232232
"toml",
233233
]
234234

235+
[[package]]
236+
name = "bumpalo"
237+
version = "3.7.1"
238+
source = "registry+https://github.com/rust-lang/crates.io-index"
239+
checksum = "d9df67f7bf9ef8498769f994239c45613ef0c5899415fb58e9add412d2c1a538"
240+
235241
[[package]]
236242
name = "byte-tools"
237243
version = "0.3.1"
@@ -1401,18 +1407,20 @@ checksum = "7abc8dd8451921606d809ba32e95b6111925cd2906060d2dcc29c070220503eb"
14011407
dependencies = [
14021408
"cfg-if 0.1.10",
14031409
"libc",
1404-
"wasi",
1410+
"wasi 0.9.0+wasi-snapshot-preview1",
14051411
]
14061412

14071413
[[package]]
14081414
name = "getrandom"
1409-
version = "0.2.0"
1415+
version = "0.2.3"
14101416
source = "registry+https://github.com/rust-lang/crates.io-index"
1411-
checksum = "ee8025cf36f917e6a52cce185b7c7177689b838b7ec138364e50cc2277a56cf4"
1417+
checksum = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753"
14121418
dependencies = [
1413-
"cfg-if 0.1.10",
1419+
"cfg-if 1.0.0",
1420+
"js-sys",
14141421
"libc",
1415-
"wasi",
1422+
"wasi 0.10.2+wasi-snapshot-preview1",
1423+
"wasm-bindgen",
14161424
]
14171425

14181426
[[package]]
@@ -1742,6 +1750,15 @@ dependencies = [
17421750
"libc",
17431751
]
17441752

1753+
[[package]]
1754+
name = "js-sys"
1755+
version = "0.3.49"
1756+
source = "registry+https://github.com/rust-lang/crates.io-index"
1757+
checksum = "dc15e39392125075f60c95ba416f5381ff6c3a948ff02ab12464715adf56c821"
1758+
dependencies = [
1759+
"wasm-bindgen",
1760+
]
1761+
17451762
[[package]]
17461763
name = "json"
17471764
version = "0.12.4"
@@ -2251,7 +2268,7 @@ dependencies = [
22512268
"colored",
22522269
"compiletest_rs",
22532270
"env_logger 0.8.1",
2254-
"getrandom 0.2.0",
2271+
"getrandom 0.2.3",
22552272
"hex 0.4.2",
22562273
"libc",
22572274
"log",
@@ -2897,7 +2914,7 @@ version = "0.6.2"
28972914
source = "registry+https://github.com/rust-lang/crates.io-index"
28982915
checksum = "34cf66eb183df1c5876e2dcf6b13d57340741e8dc255b48e40a26de954d06ae7"
28992916
dependencies = [
2900-
"getrandom 0.2.0",
2917+
"getrandom 0.2.3",
29012918
]
29022919

29032920
[[package]]
@@ -2985,7 +3002,7 @@ version = "0.4.0"
29853002
source = "registry+https://github.com/rust-lang/crates.io-index"
29863003
checksum = "528532f3d801c87aec9def2add9ca802fe569e44a544afe633765267840abe64"
29873004
dependencies = [
2988-
"getrandom 0.2.0",
3005+
"getrandom 0.2.3",
29893006
"redox_syscall",
29903007
]
29913008

@@ -4958,7 +4975,7 @@ dependencies = [
49584975
"rustc-demangle",
49594976
"std_detect",
49604977
"unwind",
4961-
"wasi",
4978+
"wasi 0.9.0+wasi-snapshot-preview1",
49624979
]
49634980

49644981
[[package]]
@@ -5175,6 +5192,7 @@ dependencies = [
51755192
"cfg-if 0.1.10",
51765193
"core",
51775194
"getopts",
5195+
"getrandom 0.2.3",
51785196
"libc",
51795197
"panic_abort",
51805198
"panic_unwind",
@@ -5662,6 +5680,66 @@ dependencies = [
56625680
"rustc-std-workspace-core",
56635681
]
56645682

5683+
[[package]]
5684+
name = "wasi"
5685+
version = "0.10.2+wasi-snapshot-preview1"
5686+
source = "registry+https://github.com/rust-lang/crates.io-index"
5687+
checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6"
5688+
5689+
[[package]]
5690+
name = "wasm-bindgen"
5691+
version = "0.2.72"
5692+
source = "registry+https://github.com/rust-lang/crates.io-index"
5693+
checksum = "8fe8f61dba8e5d645a4d8132dc7a0a66861ed5e1045d2c0ed940fab33bac0fbe"
5694+
dependencies = [
5695+
"cfg-if 1.0.0",
5696+
"wasm-bindgen-macro",
5697+
]
5698+
5699+
[[package]]
5700+
name = "wasm-bindgen-backend"
5701+
version = "0.2.72"
5702+
source = "registry+https://github.com/rust-lang/crates.io-index"
5703+
checksum = "046ceba58ff062da072c7cb4ba5b22a37f00a302483f7e2a6cdc18fedbdc1fd3"
5704+
dependencies = [
5705+
"bumpalo",
5706+
"lazy_static",
5707+
"log",
5708+
"proc-macro2",
5709+
"quote",
5710+
"syn",
5711+
"wasm-bindgen-shared",
5712+
]
5713+
5714+
[[package]]
5715+
name = "wasm-bindgen-macro"
5716+
version = "0.2.72"
5717+
source = "registry+https://github.com/rust-lang/crates.io-index"
5718+
checksum = "0ef9aa01d36cda046f797c57959ff5f3c615c9cc63997a8d545831ec7976819b"
5719+
dependencies = [
5720+
"quote",
5721+
"wasm-bindgen-macro-support",
5722+
]
5723+
5724+
[[package]]
5725+
name = "wasm-bindgen-macro-support"
5726+
version = "0.2.72"
5727+
source = "registry+https://github.com/rust-lang/crates.io-index"
5728+
checksum = "96eb45c1b2ee33545a813a92dbb53856418bf7eb54ab34f7f7ff1448a5b3735d"
5729+
dependencies = [
5730+
"proc-macro2",
5731+
"quote",
5732+
"syn",
5733+
"wasm-bindgen-backend",
5734+
"wasm-bindgen-shared",
5735+
]
5736+
5737+
[[package]]
5738+
name = "wasm-bindgen-shared"
5739+
version = "0.2.72"
5740+
source = "registry+https://github.com/rust-lang/crates.io-index"
5741+
checksum = "b7148f4696fb4960a346eaa60bbfb42a1ac4ebba21f750f75fc1375b098d5ffa"
5742+
56655743
[[package]]
56665744
name = "winapi"
56675745
version = "0.3.9"

‎library/test/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ panic_abort = { path = "../panic_abort" }
1818
# not actually used but needed to always have proc_macro in the sysroot
1919
proc_macro = { path = "../proc_macro" }
2020

21+
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies]
22+
getrandom = { version = "0.2", features = ['js'] }
23+
2124
# Forward features to the `std` crate as necessary
2225
[features]
2326
default = ["std_detect_file_io", "std_detect_dlsym_getauxval", "panic-unwind"]

0 commit comments

Comments
 (0)
Please sign in to comment.