colorsys breaking changes
colorsys 1.0.0 (December 4, 2026) is its newest release with breaking changes, 57 of them. The first: Deprecated get_* getters removed in colorsys 1.0.0. Every breaking API change we have recorded in colorsys on crates.io: 65 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 1.1.1, released December 4, 2026. Source repository
Its 0.8.0 release requires Rust 1.88 or later. Rust end of life dates.
colorsys 1.0.0 breaking changes
- Removed
Use the plain getters such as red(), hue() and alpha() instead. github.com - Removed
Add
Use transformation methods or set_* instead of the + operator. github.com - Removed
AddAssign
Use transformation methods or set_* instead of the += operator. github.com - Removed
AsRef
Use to_array() to get the channel values. github.com - Removed
colorsys::Ansi256::as_rgb
Use Rgb::from to convert an Ansi256 color. crates.io - Removed
colorsys::Ansi256::code
colorsys::Ansi256::code was removed in colorsys 1.0.0 crates.io - Removed
colorsys::Ansi256::new
colorsys::Ansi256::new was removed in colorsys 1.0.0 crates.io - Removed
colorsys::Ansi256::set_code
colorsys::Ansi256::set_code was removed in colorsys 1.0.0 crates.io - Removed
colorsys::ApproxEq
Use approx_eq() and approx_eq_eps(), converting colors to the same model first. crates.io - Removed
colorsys::Cmyk::as_ratio
colorsys::Cmyk::as_ratio was removed in colorsys 1.0.0 crates.io - Removed
colorsys::Cmyk::as_rgb
Use Rgb::from to convert a Cmyk color. crates.io - Removed
colorsys::CmykRatio
Use the from_ratio and to_ratio family of methods instead. crates.io - Removed
colorsys::ColorAlpha
Alpha methods are now called directly on the color types. crates.io - Removed
colorsys::ColorTransform
Transformations are now methods on the color types that return a new color. crates.io - Removed
colorsys::ColorTuple
Colors no longer convert into or from tuples; use to_u8() or to_array() instead. crates.io - Removed
colorsys::ColorTupleA
Colors no longer convert into or from tuples; use to_u8_alpha() or to_array_alpha() instead. crates.io - Removed
colorsys::ColorUnitsIter
Use to_array() to get the channel values. crates.io - Removed
colorsys::DEFAULT_APPROX_EQ_PRECISION
Use approx_eq() and approx_eq_eps() instead. crates.io - Removed
colorsys::GrayScaleMethod::AverageProminent
Use GrayScaleMethod::HslLightness, including in serde data. crates.io - Removed
colorsys::GrayScaleMethod::Luminance
Use GrayScaleMethod::Rec601, including in serde data. crates.io - Removed
colorsys::Hsl::as_ratio
colorsys::Hsl::as_ratio was removed in colorsys 1.0.0 crates.io - Removed
colorsys::Hsl::get_hue
Use hue instead. crates.io - Removed
colorsys::Hsl::get_lightness
Use lightness instead. crates.io - Removed
colorsys::Hsl::get_saturation
Use saturation instead. crates.io - Removed
colorsys::Hsl::iter
colorsys::Hsl::iter was removed in colorsys 1.0.0 crates.io - Removed
colorsys::HslRatio
Use the from_ratio and to_ratio family of methods instead. crates.io - Removed
colorsys::ParseError::message
colorsys::ParseError::message was removed in colorsys 1.0.0 crates.io - Removed
colorsys::prelude
No import is needed now that transformations are methods. crates.io - Removed
colorsys::ratio_converters
Use the from_ratio and to_ratio family of methods instead. crates.io - Removed
colorsys::Rgb::as_ratio
colorsys::Rgb::as_ratio was removed in colorsys 1.0.0 crates.io - Removed
colorsys::Rgb::from_hex_str
Parse hex and CSS color strings with parse::<Rgb>() instead. crates.io - Removed
colorsys::Rgb::get_blue
Use blue instead. crates.io - Removed
colorsys::Rgb::get_green
Use green instead. crates.io - Removed
colorsys::Rgb::get_red
Use red instead. crates.io - Removed
colorsys::Rgb::iter
colorsys::Rgb::iter was removed in colorsys 1.0.0 crates.io - Removed
colorsys::RgbRatio
Use the from_ratio and to_ratio family of methods instead. crates.io - Removed
colorsys::SaturationInSpace
HSV saturation is gone; saturation is now HSL based. crates.io - Removed
IntoIterator
Use to_array() to get the channel values. github.com - Removed
iter
Use to_array() to get the channel values. github.com - Removed
Sub
Use transformation methods or set_* instead of the - operator. github.com - Removed
SubAssign
Use transformation methods or set_* instead of the -= operator. github.com - Renamed
adjust_hue
Call rotate_hue instead of adjust_hue. github.com - Renamed
approx_eq_clarify
Call approx_eq_eps instead of approx_eq_clarify. github.com - Renamed
grayscale_simple
Call grayscale() instead of grayscale_simple(). github.com - Behavior changed
Serialized colors now use named r, g, b and a fields; data saved in the old format must be migrated. github.com - Behavior changed
Ansi256.from
Gray colors may map to different ANSI codes than before, for example [128,128,128] now gives 244. github.com - Behavior changed
Debug
Debug formatting of colors prints named fields, so code parsing Debug output will change. github.com - Behavior changed
hsl
Strings with bad spacing or stray % now error, and out-of-range numbers are clamped instead of erroring. github.com - Behavior changed
rgb
Strings with bad spacing or stray % now error, and out-of-range numbers are clamped instead of erroring. github.com - Behavior changed
to_u8
Channel values are rounded to the nearest integer, so 12.7 becomes 13. github.com
And 7 more in this version. Sign up to see every change
colorsys 0.8.0 breaking changes
- Behavior changed
NaN color units and infinite hue values are now converted to 0.0 instead of being kept as they were. github.com - Behavior changed
Hex string parsing now rejects a # anywhere except the first character, so inputs such as f#f#f are errors. github.com - Behavior changed
FromStr
FromStr now rejects rgba strings whose alpha is greater than 1, so such inputs return an error. github.com - Behavior changed
Hsl.invert
Hsl::invert also sets lightness to 100 minus the old value, so it now matches Rgb::invert and returns different colors than before. github.com - Behavior changed
Rgb.grayscale
With Luminance, Rec709 and Rec2100, grayscale now sets all channels to the weighted luma instead of scaling each channel separately, so output colors change. github.com - Behavior changed
set_alpha
Alpha is now clamped to the range 0.0 to 1.0 in set_alpha, Rgb::new, Hsl::new and parsing. Code that relied on out-of-range alpha values must be updated. github.com - Behavior changed
set_hue
Hue values now wrap around, so set_hue(-10.0) gives 350.0 rather than a clamped value. Code relying on clamping must be updated. github.com - Configuration changed
The package now requires Rust 1.88 or later, as set by rust-version in Cargo.toml. Older toolchains will not build it. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.