rusttype fails to build because of "compile_error!("You need to activate either the `std` or `libm` feature.");"
Error
I'm trying to use rusttype 0.9.2 and hit this error:
Compiling ab_glyph_rasterizer v0.1.2
error: You need to activate either the `std` or `libm` feature.
--> /home/felix/.cargo/registry/src/github.com-1ecc6299db9ec823/ab_glyph_rasterizer-0.1.2/src/lib.rs:30:1
|
30 | compile_error!("You need to activate either the `std` or `libm` feature.");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ab_glyph_rasterizer
is a dependency of rusttype, it seems that it's not configured correctly.
Also, is there a way to turn glyph rasterization OFF? I don't need it, could this please be moved behind a feature flag? Thanks.
rustc version
rustc 1.46.0-nightly (e55d3f9c5 2020-06-18)
binary: rustc
commit-hash: e55d3f9c5213fe1a25366450127bdff67ad1eca2
commit-date: 2020-06-18
host: x86_64-unknown-linux-gnu
release: 1.46.0-nightly
LLVM version: 10.0