taffy breaking changes
taffy 0.16.0 (November 23, 2026) is its newest release with breaking changes, 127 of them. The first: Removed Cache. Every breaking API change we have recorded in taffy on crates.io: 127 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 0.16.1, released November 30, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
taffy 0.16.0 breaking changes
- Removed
Cache
Cache no longer implements Serialize with the serde feature. github.com - Removed
strict_provenance
The strict_provenance feature was removed because CompactLength now always uses strict provenance pointer APIs. Stop enabling the feature. github.com - Behavior changed
The MSRV is now Rust 1.85 and the crate uses the 2024 edition, so users must build with a compatible toolchain. github.com - Behavior changed
Parse error messages no longer name the offending token, which may affect code matching on error text. github.com - Behavior changed
Cache.get
CacheTree::cache_get and Cache::get now take &self rather than &mut self; the eviction clock is an AtomicU16. github.com - Behavior changed
ContentSlot.height
ContentSlot::height is now how far down the slot's width stays valid; previously it was always infinite. github.com - Signature changed
BlockContext.apply_content_box_inset
BlockContext::apply_content_box_inset now takes FloatInsets instead of [f32; 2]. github.com - Signature changed
BlockContext.find_bfc_slot
BlockContext::find_bfc_slot now takes FloatInsets instead of [f32; 2] margins. github.com - Signature changed
BlockContext.place_floated_box
BlockContext::place_floated_box now takes an id: u64 argument that is stored on PlacedFloatedBox. github.com - Signature changed
BlockContext.sub_context
BlockContext::sub_context now takes a FloatInsets value in place of the [f32; 2] insets. github.com - Signature changed
calc
The calc and fit_content_calc constructors now take a CalcHandle, created with CalcHandle::from_ptr or CalcHandle::from_bits. github.com - Signature changed
calc_value
calc values are now stored as an opaque CalcHandle; code reading calc_value() must use ptr() or to_bits() on the handle. github.com - Signature changed
find_bfc_slot
find_bfc_slot now takes a min_height and uses the new FloatInsets type instead of [f32; 2] insets and margins. github.com - Signature changed
find_content_slot
find_content_slot now takes the height of the content being placed. github.com - Signature changed
FloatContext.place_floated_box
FloatContext::place_floated_box now takes an id: u64 argument. github.com - Signature changed
Layout.scrollable_overflow_rect
Layout::scrollable_overflow_rect is now a ScrollableOverflow rather than a Rect<f32>; read the rectangle with rect() or the left/right/top/bottom accessors. github.com - Signature changed
LayoutOutput.scrollable_overflow_rect
LayoutOutput::scrollable_overflow_rect is now a ScrollableOverflow rather than a Rect<f32>. github.com - Signature changed
taffy::BlockContext::apply_content_box_inset
Was fn apply_content_box_inset(&mut self, content_box_x_insets: [f32; 2]); now fn apply_content_box_inset(&mut self, content_box_x_insets: FloatInsets). crates.io - Signature changed
taffy::BlockContext::find_bfc_slot
Was fn find_bfc_slot(&self, min_y: f32, margins: [f32; 2], direction: Direction, clear: Clear, after: Option<usize>) -> BfcSlot; now fn find_bfc_slot(&self, min_y: f32, min_height: f32, margins: FloatInsets, direction: Direction, clear... crates.io - Signature changed
taffy::BlockContext::find_content_slot
Was fn find_content_slot(&self, min_y: f32, clear: Clear, after: Option<usize>) -> ContentSlot; now fn find_content_slot(&self, min_y: f32, height: f32, clear: Clear, after: Option<usize>) -> ContentSlot. crates.io - Signature changed
taffy::BlockContext::place_floated_box
Was fn place_floated_box(&mut self, floated_box: Size<f32>, min_y: f32, direction: FloatDirection, clear: Clear, adjoins_unresolved_strut: bool) -> Point<f32>; now fn place_floated_box(&mut self, id: u64, floated_box: Size<f32>, min_y... crates.io - Signature changed
taffy::BlockContext::sub_context
Was fn sub_context(&mut self, additional_y_offset: f32, insets: [f32; 2]) -> BlockContext<'_>; now fn sub_context(&mut self, additional_y_offset: f32, insets: FloatInsets) -> BlockContext<'_>. crates.io - Signature changed
taffy::Cache::get
Was fn get(&mut self, input: &LayoutInput) -> Option<LayoutOutput>; now fn get(&self, input: &LayoutInput) -> Option<LayoutOutput>. crates.io - Signature changed
taffy::CacheTree::cache_get
Was fn cache_get(&mut self, node_id: NodeId, input: &LayoutInput) -> Option<LayoutOutput>; now fn cache_get(&self, node_id: NodeId, input: &LayoutInput) -> Option<LayoutOutput>. crates.io - Signature changed
taffy::CompactLength::calc
Was fn calc(ptr: *const ()) -> Self; now fn calc(handle: CalcHandle) -> Self. crates.io - Signature changed
taffy::CompactLength::calc_value
Was fn calc_value(self) -> *const (); now fn calc_value(self) -> CalcHandle. crates.io - Signature changed
taffy::CompactLength::fit_content_calc
Was fn fit_content_calc(ptr: *const ()) -> Self; now fn fit_content_calc(handle: CalcHandle) -> Self. crates.io - Signature changed
taffy::CompactLength::resolved_percentage_size
Was fn resolved_percentage_size(self, parent_size: f32, calc_resolver: impl Fn(*const (), f32) -> f32) -> Option<f32>; now fn resolved_percentage_size(self, parent_size: f32, calc_resolver: impl Fn(CalcHandle, f32) -> f32) -> Option<f32>. crates.io - Signature changed
taffy::compute_leaf_layout
Was fn compute_leaf_layout<MeasureFunction>(inputs: LayoutInput, style: &impl CoreStyle, resolve_calc_value: impl Fn(*const (), f32) -> f32, measure_function: MeasureFunction) -> LayoutOutput where MeasureFunction... crates.io - Signature changed
taffy::compute::BlockContext::apply_content_box_inset
Was fn apply_content_box_inset(&mut self, content_box_x_insets: [f32; 2]); now fn apply_content_box_inset(&mut self, content_box_x_insets: FloatInsets). crates.io - Signature changed
taffy::compute::BlockContext::find_bfc_slot
Was fn find_bfc_slot(&self, min_y: f32, margins: [f32; 2], direction: Direction, clear: Clear, after: Option<usize>) -> BfcSlot; now fn find_bfc_slot(&self, min_y: f32, min_height: f32, margins: FloatInsets, direction: Direction, clear... crates.io - Signature changed
taffy::compute::BlockContext::find_content_slot
Was fn find_content_slot(&self, min_y: f32, clear: Clear, after: Option<usize>) -> ContentSlot; now fn find_content_slot(&self, min_y: f32, height: f32, clear: Clear, after: Option<usize>) -> ContentSlot. crates.io - Signature changed
taffy::compute::BlockContext::place_floated_box
Was fn place_floated_box(&mut self, floated_box: Size<f32>, min_y: f32, direction: FloatDirection, clear: Clear, adjoins_unresolved_strut: bool) -> Point<f32>; now fn place_floated_box(&mut self, id: u64, floated_box: Size<f32>, min_y... crates.io - Signature changed
taffy::compute::BlockContext::sub_context
Was fn sub_context(&mut self, additional_y_offset: f32, insets: [f32; 2]) -> BlockContext<'_>; now fn sub_context(&mut self, additional_y_offset: f32, insets: FloatInsets) -> BlockContext<'_>. crates.io - Signature changed
taffy::compute::compute_leaf_layout
Was fn compute_leaf_layout<MeasureFunction>(inputs: LayoutInput, style: &impl CoreStyle, resolve_calc_value: impl Fn(*const (), f32) -> f32, measure_function: MeasureFunction) -> LayoutOutput where MeasureFunction... crates.io - Signature changed
taffy::compute::FloatContext::find_bfc_slot
Was fn find_bfc_slot(&self, min_y: f32, containing_block_insets: [f32; 2], margins: [f32; 2], direction: Direction, clear: Clear, after: Option<usize>) -> BfcSlot; now fn find_bfc_slot(&self, min_y: f32, min_height: f32... crates.io - Signature changed
taffy::compute::FloatContext::find_content_slot
Was fn find_content_slot(&self, min_y: f32, containing_block_insets: [f32; 2], clear: Clear, after: Option<usize>) -> ContentSlot; now fn find_content_slot(&self, min_y: f32, height: f32, containing_block_insets: FloatInsets, clear: Clear... crates.io - Signature changed
taffy::compute::FloatContext::place_floated_box
Was fn place_floated_box(&mut self, floated_box: Size<f32>, min_y: f32, containing_block_insets: [f32; 2], direction: FloatDirection, clear: Clear) -> Point<f32>; now fn place_floated_box(&mut self, id: u64, floated_box: Size<f32>, min_y... crates.io - Signature changed
taffy::Dimension::calc
Was fn calc(ptr: *const ()) -> Self; now fn calc(handle: CalcHandle) -> Self. crates.io - Signature changed
taffy::Dimension::calc_value
Was fn calc_value(self) -> *const (); now fn calc_value(self) -> CalcHandle. crates.io - Signature changed
taffy::Dimension::fit_content_calc
Was fn fit_content_calc(ptr: *const ()) -> Self; now fn fit_content_calc(handle: CalcHandle) -> Self. crates.io - Signature changed
taffy::ExpandedDimension::Calc
Was Calc(*const ()); now Calc(CalcHandle). crates.io - Signature changed
taffy::ExpandedDimension::FitContentCalc
Was FitContentCalc(*const ()); now FitContentCalc(CalcHandle). crates.io - Signature changed
taffy::ExpandedLengthPercentage::Calc
Was Calc(*const ()); now Calc(CalcHandle). crates.io - Signature changed
taffy::ExpandedLengthPercentageAuto::Calc
Was Calc(*const ()); now Calc(CalcHandle). crates.io - Signature changed
taffy::ExpandedMaxTrackSizingFunction::Calc
Was Calc(*const ()); now Calc(CalcHandle). crates.io - Signature changed
taffy::ExpandedMaxTrackSizingFunction::FitContentCalc
Was FitContentCalc(*const ()); now FitContentCalc(CalcHandle). crates.io - Signature changed
taffy::ExpandedMinTrackSizingFunction::Calc
Was Calc(*const ()); now Calc(CalcHandle). crates.io - Signature changed
taffy::FloatContext::find_bfc_slot
Was fn find_bfc_slot(&self, min_y: f32, containing_block_insets: [f32; 2], margins: [f32; 2], direction: Direction, clear: Clear, after: Option<usize>) -> BfcSlot; now fn find_bfc_slot(&self, min_y: f32, min_height: f32... crates.io - Signature changed
taffy::FloatContext::find_content_slot
Was fn find_content_slot(&self, min_y: f32, containing_block_insets: [f32; 2], clear: Clear, after: Option<usize>) -> ContentSlot; now fn find_content_slot(&self, min_y: f32, height: f32, containing_block_insets: FloatInsets, clear: Clear... crates.io
And 77 more in this version. Sign up to see every change
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.