NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #1794 most downloaded on crates.io
Zero-allocation CSS color parser library. Supports absolute and relative color formats.
Latest stable
0.9.1
Last release 12 days ago
10 Nov 2026
Ships unpredictably
gaps range from 3 weeks to 2.1 years
Most releases are documented
notes for 15 of 18 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
18 releases · first in 2020
Drag across the ruler to compare, or tap a release to open it.
@herniqeu made their first contribution in https://github.com/mazznoer/csscolorparser-rs/pull/46
CHANGELOG.mdFull Changelog: https://github.com/mazznoer/csscolorparser-rs/compare/v0.9.0...v0.9.1
color(a98-rgb ...)color(display-p3 ...)color(display-p3-linear ...)color(prophoto-rgb ...)color(rec2020 ...)color(from ... a98-rgb ...)color(from ... display-p3 ...)color(from ... display-p3-linear ...)color(from ... prophoto-rgb ...)color(from ... rec2020 ...)calc() interpreter.1e2) in calc() expressions.Full Changelog: https://github.com/mazznoer/csscolorparser-rs/compare/v0.8.2...v0.9.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Full Changelog: https://github.com/mazznoer/csscolorparser-rs/compare/v0.8.2...v0.9.0
parse_colors() for parsing string containing multiple colors separated by comma.color(srgb ...)color(srgb-linear ...)color(xyz ...)color(xyz-d50 ...)color(xyz-d65 ...)color(from ... srgb ...)color(from ... srgb-linear ...)color(from ... xyz ...)color(from ... xyz-d50 ...)color(from ... xyz-d65 ...)Color::from_xyz_d50()Color::from_xyz_d65()Color.to_xyz_d50()Color.to_xyz_d65()Color.to_css_color_srgb()Color is now CopyColor.to_css_*() return impl fmt::Display + fmt::DebugColor.clamp(): converts NaN to zero.Color.to_linear_rgba_u8()lab(), lch(), hsl(), hwb() parsing.Reject invalid hex format with plus sign.
Set Rust version in Cargo.toml to 1.85.
Parse none value in absolute color format.
none value in absolute color format.impl Display for Color to hex color format.improvements of calc() parser for relative color format.
calc() parser for relative color format.phf only if needed.Support no_std. Thanks to @orhun
no_std. Thanks to @orhunlab() format is always enabled now. Remove the lab cargo feature.phf::OrderedMap and uncased::UncasedStr to store named colors.no_std.lab cargo feature.phf::OrderedMap and uncased to store named colors.Deprecate Color::to_hex_string() and Color::to_rgb_string().
Color::to_oklcha()Color::to_css_hex()Color::to_css_rgb()Color::to_css_hsl()Color::to_css_hwb()Color::to_css_lab()Color::to_css_lch()Color::to_css_oklab()Color::to_css_oklch()Color::to_hex_string() and Color::to_rgb_string().Full Changelog: https://github.com/mazznoer/csscolorparser-rs/compare/v0.7.1...v0.7.2
Color::to_oklcha()Color::to_css_hex()Color::to_css_rgb()Color::to_css_hsl()Color::to_css_hwb()Color::to_css_lab()Color::to_css_lch()Color::to_css_oklab()Color::to_css_oklch()Color::to_hex_string() and Color::to_rgb_string().Full Changelog: v0.7.1...v0.7.2
avoid an allocation in the Deserialize impl for Color by @m4rch3n1ng in https://github.com/mazznoer/csscolorparser-rs/pull/20
Deserialize impl for Color by @m4rch3n1ng in https://github.com/mazznoer/csscolorparser-rs/pull/20Full Changelog: https://github.com/mazznoer/csscolorparser-rs/compare/v0.7.0...v0.7.1
Deserialize impl for Color by @m4rch3n1ng in #20Full Changelog: v0.7.0...v0.7.1
Deprecate Color::{from,to}_{lab,lch}(), use Color::{from,to}_{laba,lcha}() instead.
Color::from_oklcha()oklab() and oklch() color format.Color::{from,to}_{laba,lcha}()f64 -> f32Color::to_{hsva,hsla,hwba,lab,lch,oklaba,linear_rgba}() changed from tuple to array.Color::{from,to}_{lab,lch}(), use Color::{from,to}_{laba,lcha}() instead.NAMED_COLORS is now publicColor::from_oklcha()oklab() and oklch() color format.Color::{from,to}_{laba,lcha}()f64 -> f32Color::to_{hsva,hsla,hwba,lab,lch,oklaba,linear_rgba}() changed from tuple to array.Color::{from,to}_{lab,lch}(), use Color::{from,to}_{laba,lcha}() instead.NAMED_COLORS is now publiclab() and lch() color format.oklab formula.* Update dependencies. * Some improvements.
Deprecate some Color's methods.
Color's methods: new, to_array, to_rgba8, to_rgba16, clamp, from_rgba8, from_linear_rgba8, name.Color's methods.Color's methods: from_lrgb, from_lrgba, from_lrgb_u8, from_lrgba_u8, red, green, blue, alpha, to_lrgba, to_lrgba_u8, interpolate_lrgb.rgb(255,100%,50%) is now invalid.Added support for parsing lab and lch color format.
lab and lch color format.Color: Deprecate red(), green(), blue() and alpha().
Color: r, g, b, a fields are now public.Color: Deprecate red(), green(), blue() and alpha().Color: Rename some method functions to more descriptive names:
from_lrgba() -> from_linear_rgba()interpolate_lrgb() -> interpolate_linear_rgb()phf are now optional dependency.ParseError -> ParseColorError.serde, cint, rgb.Add support for conversion from / to Linear RGB and Oklab color-space.
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.