hacash / rust

Rust Hacash Node and SDK
MIT License
3 stars 4 forks source link

Fail to build wasm module #5

Closed yita0101 closed 1 month ago

yita0101 commented 1 month ago

I try to build the sdk by the order "wasm-pack --log-level error build --target no-modules",it not compile and follow the error: image

yita0101 commented 1 month ago

the mio crate seems not support wasm

yita0101 commented 1 month ago

the sdk module also seems not complie all modules,how do I decouple and compile it?

jojoin commented 1 month ago

This version of the Rust code has not yet been adapted to WASM and awaits further work.

yita0101 commented 1 month ago

I tried to decouple some modules,and now it's ready to be build by the order 'wasm-pack build --target web'. But to run the order 'wasm-pack test --headless --chrome' has some problem. I have push it at yita0101/hacash_web_api_template@3dbdbb7c692352e357e75fa5576e27ae773b4dbb image