Make helwasm compilable for wasm32-unknown-unknown target.

This commit is contained in:
Oleksandr Kozachuk
2023-01-01 19:46:14 +01:00
parent 7563645518
commit 69f65a5be0
3 changed files with 79 additions and 4 deletions
+5 -1
View File
@@ -23,9 +23,13 @@ shlex = "1.1.0"
shellexpand = "3.0.0"
scopeguard = "1.1.0"
[target.'cfg(not(wasm))'.dependencies]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
chrono = "0.4.23"
rand = "0.8.5"
home = "0.5.4"
rustyline = "10.0.0"
rpassword = "7.2.0"
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2.83"
chrono = { version = "0.4.23", features = ["wasmbind"] }