Skip to content

Does not build on WASM #40

Description

@ArniDagur

This library fails to build on wasm32-unknown-unknown architecture. See the following:

[arni][master]% cargo build --target=wasm32-unknown-unknown
    Updating crates.io index
  Downloaded approx v0.4.0
  Downloaded libm v0.2.6
  Downloaded bigdecimal v0.3.0
  Downloaded cgmath v0.18.0
  Downloaded num-bigint v0.4.3
  Downloaded float_extras v0.1.6
  Downloaded s2 v0.0.12
  Downloaded 7 crates (459.2 KB) in 0.44s
   Compiling serde_derive v1.0.152
   Compiling libc v0.2.139
   Compiling serde v1.0.152
   Compiling libm v0.2.6
   Compiling cgmath v0.18.0
   Compiling num-traits v0.2.15
   Compiling num-integer v0.1.45
   Compiling num-bigint v0.4.3
   Compiling float_extras v0.1.6
error[E0432]: unresolved imports `libc::c_double`, `libc::c_int`
 --> /Users/arni/.cargo/registry/src/github.com-1ecc6299db9ec823/float_extras-0.1.6/src/lib.rs:5:16
  |
5 |     use libc::{c_double, c_int};
  |                ^^^^^^^^  ^^^^^ no `c_int` in the root
  |                |
  |                no `c_double` in the root

error[E0432]: unresolved import `libc::c_int`
  --> /Users/arni/.cargo/registry/src/github.com-1ecc6299db9ec823/float_extras-0.1.6/src/lib.rs:38:9
   |
38 |     use libc::c_int;
   |         ^^^^^^^^^^^ no `c_int` in the root

For more information about this error, try `rustc --explain E0432`.
error: could not compile `float_extras` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions