---
title: "bitflags 2.0.0 Breaking Changes on crates.io | Since.dev"
description: "What each bitflags release removed, renamed or changed: 5 breaking changes in 2 versions on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/bitflags
last_updated: 2026-12-04
---

# bitflags breaking changes

bitflags 2.0.0 (March 13, 2023) is its newest release with breaking changes, 4 of them. The first: Removed PartialEq, Eq, PartialOrd, Ord, Hash, Debug, Clone, Copy. Every breaking API change we have recorded in bitflags on crates.io: 5 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

Latest version `2.13.2`, released September 10, 2026. [Source repository](https://github.com/bitflags/bitflags)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

- From [2.0.0-rc.2](#v-2-0-0-rc-2) to [2.0.0](#v-2-0-0): 4 breaking changes in 1 version.

## bitflags 2.0.0 breaking changes

bitflags 2.0.0, released March 13, 2023: 4 breaking changes.

- **Removed** `PartialEq, Eq, PartialOrd, Ord, Hash, Debug, Clone, Copy`  

Generated flags types derive fewer traits. Derive PartialEq, Eq, PartialOrd, Ord, Hash, Debug, Clone and Copy yourself to keep compatibility. [github.com](https://github.com/bitflags/bitflags/releases/tag/2.0.0)
- **Renamed** `from_bits_unchecked`  

The unsafe from_bits_unchecked method is now a safe from_bits_retain method. Switch callers to from_bits_retain. [github.com](https://github.com/bitflags/bitflags/releases/tag/2.0.0)
- **Behavior changed**  

Human-readable formats now use a formatted string and compact formats use the underlying bits type. To keep the old format, use the bitflags-serde-legacy library. [github.com](https://github.com/bitflags/bitflags/releases/tag/2.0.0)
- **Behavior changed** `bits`  

The representation changed from a struct with a single bits field to a newtype. Use the bits() method instead of the bits field. [github.com](https://github.com/bitflags/bitflags/releases/tag/2.0.0)

## bitflags 2.0.0-rc.2 breaking changes

bitflags 2.0.0-rc.2, released March 13, 2023: 1 breaking change.

- **Behavior changed**  

Types that derive Serialize and Deserialize now use a formatted string in human-readable formats and the underlying bits type in compact formats. Keep the old format or migrate stored data if needed. [github.com](https://github.com/bitflags/bitflags/releases/tag/2.0.0-rc.2)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
