fix: specify home-dep as non-wasm instead of x86-only (#645)

This commit is contained in:
James Prestwich 2021-12-03 12:03:26 -08:00 committed by GitHub
parent 8d07610e4a
commit 437f9de92f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -35,9 +35,11 @@ tracing = "0.1.29"
sha2 = { version = "0.9.8", default-features = false }
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies]
home = "0.5.3"
sha2 = { version = "0.9.8", default-features = false, features = ["asm"] }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
home = "0.5.3"
[target.'cfg(target_arch = "wasm32")'.dependencies]
# NOTE: this enables wasm compatibility for getrandom indirectly
getrandom = { version = "0.2", features = ["js"] }