Replies: 1 comment
-
After some trial and error I managed to resolve my problem when compiling for WASM. My dependency looks like: And im compiling with: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using the wasmer_vfs for the target wasm32-unknown-unknown.
I am compiling with:
cargo build --target=wasm32-unknown-unknown --release
The error I am getting is from calling:
mem_fs::FileSystem::default()
And the error message it self:
`panicked at 'time not implemented on this platform', library/std/src/sys/wasm/../unsupported/time.rs:31:9
Stack:
getImports/imports.wbg.__wbg_new_abda76e883ba8a5f@http://localhost:1180/pkg/uml.js:163:21
@http://localhost:1180/pkg/uml_bg.wasm:wasm-function[154]:0x28308
@http://localhost:1180/pkg/uml_bg.wasm:wasm-function[570]:0x34f30
@http://localhost:1180/pkg/uml_bg.wasm:wasm-function[259]:0x2f92e
@http://localhost:1180/pkg/uml_bg.wasm:wasm-function[304]:0x3162c
@http://localhost:1180/pkg/uml_bg.wasm:wasm-function[417]:0x34030
@http://localhost:1180/pkg/uml_bg.wasm:wasm-function[421]:0x34122
@http://localhost:1180/pkg/uml_bg.wasm:wasm-function[419]:0x340a1
@http://localhost:1180/pkg/uml_bg.wasm:wasm-function[194]:0x2ba12
@http://localhost:1180/pkg/uml_bg.wasm:wasm-function[87]:0x1fb38
@http://localhost:1180/pkg/uml_bg.wasm:wasm-function[472]:0x34917
greet@http://localhost:1180/pkg/uml.js:101:10
@http://localhost:1180/:11:14
promise callback*@http://localhost:1180/:10:12
uml.js:175:21
__wbg_error_f851667af71bcfc6 http://localhost:1180/pkg/uml.js:175
http://localhost:1180/pkg/uml_bg.wasm:164824
http://localhost:1180/pkg/uml_bg.wasm:216880
http://localhost:1180/pkg/uml_bg.wasm:194862
http://localhost:1180/pkg/uml_bg.wasm:202284
http://localhost:1180/pkg/uml_bg.wasm:213040
http://localhost:1180/pkg/uml_bg.wasm:213282
http://localhost:1180/pkg/uml_bg.wasm:213153
http://localhost:1180/pkg/uml_bg.wasm:178706
http://localhost:1180/pkg/uml_bg.wasm:129848
http://localhost:1180/pkg/uml_bg.wasm:215319
greet http://localhost:1180/pkg/uml.js:101
http://localhost:1180/:11
(Async: promise callback)
http://localhost:1180/:10
`
I am a bit lost regarding solving this. I have tried with two crates:
https://crates.io/crates/instant
https://crates.io/crates/time
Does anyone has have some tips to what I can do/try out?
Beta Was this translation helpful? Give feedback.
All reactions