dfrg / zeno

High performance, low level 2D path rasterization library in pure Rust.
Apache License 2.0
101 stars 9 forks source link

Add a feature for enabling compilation for no_std #5

Closed notgull closed 11 months ago

notgull commented 1 year ago

This commit adds two new features: "std" (which is enabled by default) and "libm". When "std" is enabled, floating point intrinsics are used from libstd. When "libm" is enabled, it brings in the pure Rust libm implementation to handle floating point instrinsics in software mode.

By disabling the "std" feature and enabling "libm", this crate can be effectively used on no_std platforms, like embedded systems.

This is a breaking change, as it adds an "std" default feature that, when disabled without enabling "libm", causes a compile error. Users who are currently using zeno with "default-features = false" without preparation will have their compilation break.

Rel: https://github.com/dfrg/swash/issues/4

notgull commented 1 year ago

@dfrg Any chance that you can review this?

notgull commented 11 months ago

@dfrg Any chance that you can review this?

notgull commented 9 months ago

@dfrg Can you publish this change?

dfrg commented 9 months ago

published 0.3.0