You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
110: No std support r=Ogeon a=mb64
Adds support for using palette without the standard library, as discussed in issue #108.
Fixes#108.
One tiny question: because this would be in a future release (not 0.4.0), what version should be in the README example Cargo.toml for `#![no_std]`? I put 0.4, but was unsure about if it should be something different.
Co-authored-by: Mark Barbone <mark.l.barbone@gmail.com>
Palette supports `#![no_std]` environments by disabling the `"std"` feature. However, there are some things that are unavailable without the standard library:
130
+
131
+
* Gradients are unavailable, because they depend heavily on Vectors
132
+
* The `"named_from_str"` feature requires the standard library as well
133
+
* Serialization using `serde` is unavailable
134
+
135
+
It uses [`libm`] to provide the floating-point operations that are typically in `std`.
All sorts of contributions are welcome, no matter how huge or tiny, so take a look at [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines, if you are interested.
0 commit comments