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

# 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

Latest version `1.8.1`, released August 26, 2026. [Source repository](https://github.com/near/borsh-rs)

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

- From [0.11.0](#v-0-11-0) to [1.0.0](#v-1-0-0): 36 breaking changes in 6 versions.
- From [0.10.0](#v-0-10-0) to [1.0.0](#v-1-0-0): 37 breaking changes in 7 versions.

## borsh 1.0.0 breaking changes

borsh 1.0.0, released October 6, 2023: 17 breaking changes.

- **Removed** `borsh_skip`  

Replace every #\[borsh_skip\] attribute with #\[borsh(skip)\]. [github.com](https://github.com/near/borsh-rs/blob/borsh-v1.0.0/docs/migration%5Fguides/v0.9%5Fto%5Fv1.0.0%5Fnear%5Fsdk%5Frs.md)
- **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](https://crates.io/crates/borsh/1.0.0)
- **Removed** `borsh::schema_helpers`  

borsh::schema_helpers was removed in borsh 1.0.0 [crates.io](https://crates.io/crates/borsh/1.0.0)
- **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](https://crates.io/crates/borsh/1.0.0)
- **Removed** `borsh::schema::Definition::Array`  

borsh::schema::Definition::Array was removed in borsh 1.0.0 [crates.io](https://crates.io/crates/borsh/1.0.0)
- **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](https://crates.io/crates/borsh/1.0.0)
- **Renamed** `borsh_init`  

The #\[borsh_init(...)\] attribute syntax changed to #\[borsh(init=...)\]. [github.com](https://github.com/near/borsh-rs/blob/borsh-v1.0.0/docs/migration%5Fguides/v0.10.2%5Fto%5Fv1.0.0%5Fnearcore.md)
- **Renamed** `borsh_skip`  

The #\[borsh_skip\] attribute is replaced by #\[borsh(skip)\]. [github.com](https://github.com/near/borsh-rs/blob/borsh-v1.0.0/docs/migration%5Fguides/v0.10.2%5Fto%5Fv1.0.0%5Fnearcore.md)
- **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](https://github.com/near/borsh-rs/blob/borsh-v1.0.0/docs/migration%5Fguides/v0.9%5Fto%5Fv1.0.0%5Fnear%5Fsdk%5Frs.md)
- **Behavior changed** `borsh.io.ErrorKind`  

The ErrorKind returned on some deserialization failures changed from InvalidInput to InvalidData. [github.com](https://github.com/near/borsh-rs/blob/borsh-v1.0.0/docs/migration%5Fguides/v0.10.2%5Fto%5Fv1.0.0%5Fnearcore.md)
- **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](https://github.com/near/borsh-rs/blob/borsh-v1.0.0/docs/migration%5Fguides/v0.9%5Fto%5Fv1.0.0%5Fnear%5Fsdk%5Frs.md)
- **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](https://crates.io/crates/borsh/1.0.0)
- **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](https://crates.io/crates/borsh/1.0.0)
- **Signature changed** `borsh::schema::BorshSchemaContainer::declaration`  

Was declaration: Declaration; now fn declaration(&self) -> &Declaration. [crates.io](https://crates.io/crates/borsh/1.0.0)
- **Signature changed** `borsh::schema::BorshSchemaContainer::definitions`  

Was definitions: HashMap\<Declaration, Definition>; now fn definitions(&self) -> impl Iterator\<Item = (&'\_ Declaration, &'\_ Definition)>. [crates.io](https://crates.io/crates/borsh/1.0.0)
- **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](https://crates.io/crates/borsh/1.0.0)
- **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](https://github.com/near/borsh-rs/blob/borsh-v1.0.0/docs/migration%5Fguides/v0.9%5Fto%5Fv1.0.0%5Fnear%5Fsdk%5Frs.md)

## borsh 1.0.0-alpha.5 breaking changes

borsh 1.0.0-alpha.5, released October 6, 2023: 7 breaking changes.

- **Renamed** `schema.Declaration`  

Schema declaration strings for tuples now use Rust syntax, so string comparisons must change. [github.com](https://github.com/near/borsh-rs/releases/tag/borsh-v1.0.0-alpha.5)
- **Behavior changed** `borsh.io`  

I/O types now come from borsh::io, which switches between std::io and a no_std module. [github.com](https://github.com/near/borsh-rs/releases/tag/borsh-v1.0.0-alpha.5)
- **Configuration changed**  

The schema feature is renamed to unstable\_\_schema and may break in 1.x versions. [github.com](https://github.com/near/borsh-rs/releases/tag/borsh-v1.0.0-alpha.5)
- **Signature changed** `borsh::schema::Definition::Sequence`  

Sequence definitions gained a length_width field, so code constructing or matching them must change. [crates.io](https://crates.io/crates/borsh/1.0.0)
- **Signature changed** `BorshSchemaContainer.validate`  

validate and max_serialized_size are now BorshSchemaContainer methods, and error types were split. [github.com](https://github.com/near/borsh-rs/releases/tag/borsh-v1.0.0-alpha.5)
- **Signature changed** `Definition.Enum.variants`  

Variant tuples now include a DiscriminantValue, so code destructuring them must change. [github.com](https://github.com/near/borsh-rs/releases/tag/borsh-v1.0.0-alpha.5)
- **Signature changed** `Definition.Sequence.length_range`  

Sequence definitions gained a length_range field, so code constructing or matching them must change. [github.com](https://github.com/near/borsh-rs/releases/tag/borsh-v1.0.0-alpha.5)

## borsh 1.0.0-alpha.4 breaking changes

borsh 1.0.0-alpha.4, released October 6, 2023: 2 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](https://crates.io/crates/borsh/1.0.0)
- **Signature changed**  

Hash collection keys must now implement Ord instead of PartialOrd. [github.com](https://github.com/near/borsh-rs/releases/tag/borsh-v1.0.0-alpha.4)

## borsh 1.0.0-alpha.3 breaking changes

borsh 1.0.0-alpha.3, released October 6, 2023: 1 breaking change.

- **Renamed** `[borsh_skip]`  

Use #\[borsh(skip)\] in place of #\[borsh_skip\]. [github.com](https://github.com/near/borsh-rs/releases/tag/borsh-v1.0.0-alpha.3)

## borsh 1.0.0-alpha.2 breaking changes

borsh 1.0.0-alpha.2, released October 6, 2023: 1 breaking change.

- **Renamed** `borsh_init`  

Use the borsh(init) attribute instead of borsh_init. [github.com](https://github.com/near/borsh-rs/releases/tag/borsh-v1.0.0-alpha.2)

## borsh 1.0.0-alpha.1 breaking changes

borsh 1.0.0-alpha.1, released October 6, 2023: 8 breaking changes.

- **Removed** `BinaryHeap`  

BinaryHeap can no longer be serialized or deserialized; use another collection type. [github.com](https://github.com/near/borsh-rs/releases/tag/borsh-v1.0.0-alpha.1)
- **Renamed** `ErrorKind.InvalidInput`  

Code matching on ErrorKind::InvalidInput must switch to ErrorKind::InvalidData. [github.com](https://github.com/near/borsh-rs/releases/tag/borsh-v1.0.0-alpha.1)
- **Behavior changed**  

Schema maps are BTreeMap everywhere, so code expecting HashMap in schema output must change. [github.com](https://github.com/near/borsh-rs/releases/tag/borsh-v1.0.0-alpha.1)
- **Behavior changed**  

The derives may need bounds patched with borsh(bound(..)) or borsh(schema(params = ...)) attributes. [github.com](https://github.com/near/borsh-rs/releases/tag/borsh-v1.0.0-alpha.1)
- **Behavior changed**  

Enum discriminant de- and serialization is now controlled by the use_discriminant attribute, which changes behavior. [github.com](https://github.com/near/borsh-rs/releases/tag/borsh-v1.0.0-alpha.1)
- **Behavior changed** `BorshSchemaContainer`  

Fields of BorshSchemaContainer can no longer be accessed directly. [github.com](https://github.com/near/borsh-rs/releases/tag/borsh-v1.0.0-alpha.1)
- **Configuration changed**  

Derives are only available when the derive feature is enabled. [github.com](https://github.com/near/borsh-rs/releases/tag/borsh-v1.0.0-alpha.1)
- **Configuration changed**  

hashbrown is now enabled only through the hashbrown feature. [github.com](https://github.com/near/borsh-rs/releases/tag/borsh-v1.0.0-alpha.1)

## Older versions

2 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### borsh 0.11.0 breaking changes

borsh 0.11.0, released October 6, 2023: 1 breaking change.

- **Behavior changed**  

Enum discriminant serialization changed in a breaking way; check enums whose tag values code depends on. [github.com](https://github.com/near/borsh-rs/releases/tag/borsh-v0.11.0)

### borsh 0.10.0 breaking changes

borsh 0.10.0, released January 19, 2023: 5 breaking changes.

- **Removed** `borsh::maybestd::hash_map`  

borsh::maybestd::hash_map was removed in borsh 0.10.0 [crates.io](https://crates.io/crates/borsh/0.10.0)
- **Removed** `borsh::maybestd::HashMap`  

borsh::maybestd::HashMap was removed in borsh 0.10.0 [crates.io](https://crates.io/crates/borsh/0.10.0)

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](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.
