Closed
Description
Compiling hdf5-sys and hdf5-types for WebAssembly seems to fail.
While cargo build
is successful, running wasm-pack build
ends up in a bunch of similar errors about libc:
error[E0425]: cannot find function `malloc` in module `libc`
--> ~/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/hdf5-types-0.5.1/src/array.rs:71:29
|
71 | let dst = libc::malloc(len * mem::size_of::<T>());
| ^^^^^^ not found in `libc`
Is might be related to rust-lang/libc#858 but that issue seems to be resolved.
It should be possible to reproduce the issue by adding hdf5 dependency to Cargo.toml
[dependencies]
hdf5 = "0.5.1"
followed by running wasm-pack build
.
Metadata
Metadata
Assignees
Labels
No labels