NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io · #1927 most downloaded on crates.io
Zero-allocation CSS color parser library. Supports absolute and relative color formats.
Last release 11 days ago
27 Sep 2026
Release timing varies
gaps range from 3 weeks to 2.1 years
Most releases are documented
notes for 13 of 17 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
17 releases · first in 2020
One column per quarter.
Full Changelog : v0.8.2...v0.9.0
Full Changelog: 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: v0.7.1...v0.7.2
avoid an allocation in the Deserialize impl for Color by @m4rch3n1ng in #20
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.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →