RazrFalcon / rustybuzz

A complete harfbuzz's shaping algorithm port to Rust
MIT License
544 stars 34 forks source link

Fix `no_std` support by using `libm` for rounding #49

Closed CryZe closed 2 years ago

CryZe commented 2 years ago

Turns out that no_std wasn't properly supported as f32::round isn't available on targets that don't have std. As with other crates, there's now two mutually exclusive features std and libm that you have to choose.

Additionally this applies a bunch of clippy fixes.

RazrFalcon commented 2 years ago

Thanks! But could you please remove clippy fixes? Or move them into a separate patch.

CryZe commented 2 years ago

Alright I removed the clippy fixes.

CryZe commented 2 years ago

Thank you so much :D