borsh breaking changes
borsh 1.0.0 (October 6, 2023) is its newest release with breaking changes, 17 of them. The first: Removed borsh_skip. Every breaking API change we have recorded in borsh on crates.io: 42 breaking changes in 8 versions. Below, its 8 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 1.8.1, released August 26, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
- From 0.11.0 to 1.0.0: 36 breaking changes in 6 versions.
- From 0.10.0 to 1.0.0: 37 breaking changes in 7 versions.
borsh 1.0.0 breaking changes
- Removed
borsh_skip
Replace every #[borsh_skip] attribute with #[borsh(skip)]. github.com - Removed
borsh::maybestd
maybestd is no longer public; it is available only under the new name __maybestd, which is not for direct use. crates.io - Removed
borsh::schema_helpers
borsh::schema_helpers was removed in borsh 1.0.0 crates.io - Removed
borsh::schema::BorshSchema::schema_container
BorshSchema::schema_container is no longer a trait method. Call the free function schema_container_of instead. crates.io - Removed
borsh::schema::Definition::Array
borsh::schema::Definition::Array was removed in borsh 1.0.0 crates.io - Removed
borsh::ser::BorshSerialize::try_to_vec
try_to_vec is deprecated and should be replaced; it is removed in a later release. crates.io - Renamed
borsh_init
The #[borsh_init(...)] attribute syntax changed to #[borsh(init=...)]. github.com - Renamed
borsh_skip
The #[borsh_skip] attribute is replaced by #[borsh(skip)]. github.com - Behavior changed
borsh
Enums with explicit discriminant values must now specify #[borsh(use_discriminant=true)] or #[borsh(use_discriminant=false)]. Older borsh versions ignored explicit discriminants. github.com - Behavior changed
borsh.io.ErrorKind
The ErrorKind returned on some deserialization failures changed from InvalidInput to InvalidData. github.com - Behavior changed
BorshDeserialize
The derived trait bounds changed from field types to type parameters. Fields that need custom bounds may need a bound attribute such as #[borsh(bound(deserialize = ""))]. github.com - Signature changed
borsh::BorshSchema::add_definitions_recursively
Was fn add_definitions_recursively(definitions: &mut HashMap<Declaration, Definition>); now fn add_definitions_recursively(definitions: &mut BTreeMap<Declaration, Definition>). crates.io - Signature changed
borsh::schema::BorshSchema::add_definitions_recursively
Was fn add_definitions_recursively(definitions: &mut HashMap<Declaration, Definition>); now fn add_definitions_recursively(definitions: &mut BTreeMap<Declaration, Definition>). crates.io - Signature changed
borsh::schema::BorshSchemaContainer::declaration
Was declaration: Declaration; now fn declaration(&self) -> &Declaration. crates.io - Signature changed
borsh::schema::BorshSchemaContainer::definitions
Was definitions: HashMap<Declaration, Definition>; now fn definitions(&self) -> impl Iterator<Item = (&'_ Declaration, &'_ Definition)>. crates.io - Signature changed
borsh::schema::Definition::Enum
Was Enum {variants: Vec<(VariantName, Declaration)>}; now Enum {/// Width in bytes of the discriminant tag. /// /// Zero indicates this is an untagged union. In standard borsh /// encoding this is one. Custom encoding formats may use... crates.io - Signature changed
BorshSchema.add_definitions_recursively
The definitions parameter of the BorshSchema trait method changed from HashMap to BTreeMap. Implementations must update their parameter type. github.com
borsh 1.0.0-alpha.5 breaking changes
- Renamed
schema.Declaration
Schema declaration strings for tuples now use Rust syntax, so string comparisons must change. github.com - Behavior changed
borsh.io
I/O types now come from borsh::io, which switches between std::io and a no_std module. github.com - Configuration changed
The schema feature is renamed to unstable__schema and may break in 1.x versions. github.com - Signature changed
borsh::schema::Definition::Sequence
Sequence definitions gained a length_width field, so code constructing or matching them must change. crates.io - Signature changed
BorshSchemaContainer.validate
validate and max_serialized_size are now BorshSchemaContainer methods, and error types were split. github.com - Signature changed
Definition.Enum.variants
Variant tuples now include a DiscriminantValue, so code destructuring them must change. github.com - Signature changed
Definition.Sequence.length_range
Sequence definitions gained a length_range field, so code constructing or matching them must change. github.com
borsh 1.0.0-alpha.4 breaking changes
- Removed
borsh::schema::BorshSchema::add_definition
add_definition is no longer a default trait method and is now a free-standing function. crates.io - Signature changed
Hash collection keys must now implement Ord instead of PartialOrd. github.com
borsh 1.0.0-alpha.3 breaking changes
- Renamed
[borsh_skip]
Use #[borsh(skip)] in place of #[borsh_skip]. github.com
borsh 1.0.0-alpha.2 breaking changes
- Renamed
borsh_init
Use the borsh(init) attribute instead of borsh_init. github.com
borsh 1.0.0-alpha.1 breaking changes
- Removed
BinaryHeap
BinaryHeap can no longer be serialized or deserialized; use another collection type. github.com - Renamed
ErrorKind.InvalidInput
Code matching on ErrorKind::InvalidInput must switch to ErrorKind::InvalidData. github.com - Behavior changed
Schema maps are BTreeMap everywhere, so code expecting HashMap in schema output must change. github.com - Behavior changed
The derives may need bounds patched with borsh(bound(..)) or borsh(schema(params = ...)) attributes. github.com - Behavior changed
Enum discriminant de- and serialization is now controlled by the use_discriminant attribute, which changes behavior. github.com - Behavior changed
BorshSchemaContainer
Fields of BorshSchemaContainer can no longer be accessed directly. github.com - Configuration changed
Derives are only available when the derive feature is enabled. github.com - Configuration changed
hashbrown is now enabled only through the hashbrown feature. github.com
Older versions
2 older versions, each with its first changes. Sign up to see every change
Show 2 older versions
borsh 0.11.0 breaking changes
- Behavior changed
Enum discriminant serialization changed in a breaking way; check enums whose tag values code depends on. github.com
borsh 0.10.0 breaking changes
- Removed
borsh::maybestd::hash_map
borsh::maybestd::hash_map was removed in borsh 0.10.0 crates.io - Removed
borsh::maybestd::HashMap
borsh::maybestd::HashMap was removed in borsh 0.10.0 crates.io
And 3 more in this version.
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.