Skip to content

Unresolved imports libc::c_void, libc::memcmp for WASM #1506

Closed
@k06a

Description

@k06a

I just tried to use it for WASM:

ethereum-bigint = "0.2.9"
   Compiling ethereum-bigint v0.2.9
error[E0432]: unresolved imports `libc::c_void`, `libc::memcmp`
  --> /Users/k06a/.cargo/registry/src/github.com-1ecc6299db9ec823/ethereum-bigint-0.2.9/src/hash/mod.rs:25:36
   |
25 | #[cfg(feature = "std")] use libc::{c_void, memcmp};
   |                                    ^^^^^^  ^^^^^^ no `memcmp` in the root
   |                                    |
   |                                    no `c_void` in the root

error: aborting due to previous error

For more information about this error, try `rustc --explain E0432`.
error: Could not compile `ethereum-bigint`.
warning: build failed, waiting for other jobs to finish...
error: build failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions