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

# bstr breaking changes

bstr 1.0.0 (September 7, 2022) is its newest release with breaking changes, 20 of them. The first: Removed bstr::ByteSlice::copy_within_str. Every breaking API change we have recorded in bstr on crates.io: 20 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

Latest version `1.14.0`, released November 18, 2026. [Source repository](https://github.com/BurntSushi/bstr)

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

## bstr 1.0.0 breaking changes

bstr 1.0.0, released September 7, 2022: 20 breaking changes.

- **Removed** `bstr::ByteSlice::copy_within_str`  

bstr::ByteSlice::copy_within_str was removed in bstr 1.0.0 [crates.io](https://crates.io/crates/bstr/1.0.0)
- **Renamed** `bstr::Bytes::as_slice`  

Use bstr::Bytes::as_bytes instead. [crates.io](https://crates.io/crates/bstr/1.0.0)
- **Signature changed** `bstr::ByteSlice::find_iter`  

Was fn find_iter<'a, B: ?Sized + AsRef<\[u8\]>>(&'a self, needle: &'a B) -> Find<'a>; now fn find_iter<'h, 'n, B: ?Sized + AsRef<\[u8\]>>(&'h self, needle: &'n B) -> Find<'h, 'n>. [crates.io](https://crates.io/crates/bstr/1.0.0)
- **Signature changed** `bstr::ByteSlice::rfind_iter`  

Was fn rfind_iter<'a, B: ?Sized + AsRef<\[u8\]>>(&'a self, needle: &'a B) -> FindReverse<'a>; now fn rfind_iter<'h, 'n, B: ?Sized + AsRef<\[u8\]>>(&'h self, needle: &'n B) -> FindReverse<'h, 'n>. [crates.io](https://crates.io/crates/bstr/1.0.0)
- **Signature changed** `bstr::ByteSlice::rsplit_str`  

Was fn rsplit_str<'a, B: ?Sized + AsRef<\[u8\]>>(&'a self, splitter: &'a B) -> SplitReverse<'a>; now fn rsplit_str<'h, 's, B: ?Sized + AsRef<\[u8\]>>(&'h self, splitter: &'s B) -> SplitReverse<'h, 's>. [crates.io](https://crates.io/crates/bstr/1.0.0)
- **Signature changed** `bstr::ByteSlice::rsplitn_str`  

Was fn rsplitn_str<'a, B: ?Sized + AsRef<\[u8\]>>(&'a self, limit: usize, splitter: &'a B) -> SplitNReverse<'a>; now fn rsplitn_str<'h, 's, B: ?Sized + AsRef<\[u8\]>>(&'h self, limit: usize, splitter: &'s B) -> SplitNReverse<'h, 's>. [crates.io](https://crates.io/crates/bstr/1.0.0)
- **Signature changed** `bstr::ByteSlice::split_str`  

Was fn split_str<'a, B: ?Sized + AsRef<\[u8\]>>(&'a self, splitter: &'a B) -> Split<'a>; now fn split_str<'h, 's, B: ?Sized + AsRef<\[u8\]>>(&'h self, splitter: &'s B) -> Split<'h, 's>. [crates.io](https://crates.io/crates/bstr/1.0.0)
- **Signature changed** `bstr::ByteSlice::splitn_str`  

Was fn splitn_str<'a, B: ?Sized + AsRef<\[u8\]>>(&'a self, limit: usize, splitter: &'a B) -> SplitN<'a>; now fn splitn_str<'h, 's, B: ?Sized + AsRef<\[u8\]>>(&'h self, limit: usize, splitter: &'s B) -> SplitN<'h, 's>. [crates.io](https://crates.io/crates/bstr/1.0.0)
- **Signature changed** `bstr::ByteVec::into_os_string`  

Was fn into_os_string(self) -> Result\<OsString, Vec\<u8>> where Self: Sized,; now fn into_os_string(self) -> Result\<OsString, FromUtf8Error> where Self: Sized,. [crates.io](https://crates.io/crates/bstr/1.0.0)
- **Signature changed** `bstr::ByteVec::into_path_buf`  

Was fn into_path_buf(self) -> Result\<PathBuf, Vec\<u8>> where Self: Sized,; now fn into_path_buf(self) -> Result\<PathBuf, FromUtf8Error> where Self: Sized,. [crates.io](https://crates.io/crates/bstr/1.0.0)
- **Signature changed** `bstr::Find`  

Was struct Find<'a>; now struct Find<'h, 'n>. [crates.io](https://crates.io/crates/bstr/1.0.0)
- **Signature changed** `bstr::FindReverse`  

Was struct FindReverse<'a>; now struct FindReverse<'h, 'n>. [crates.io](https://crates.io/crates/bstr/1.0.0)
- **Signature changed** `bstr::io::BufReadExt::for_byte_line`  

Was fn for_byte_line\<F>(self, mut for_each_line: F) -> io::Result<()> where Self: Sized, F: FnMut(&\[u8\]) -> io::Result\<bool>,; now fn for_byte_line\<F>(&mut self, mut for_each_line: F) -> io::Result<()> where Self: Sized, F: FnMut(&\[u8\]) ->... [crates.io](https://crates.io/crates/bstr/1.0.0)
- **Signature changed** `bstr::io::BufReadExt::for_byte_line_with_terminator`  

Was fn for_byte_line_with_terminator\<F>(self, for_each_line: F) -> io::Result<()> where Self: Sized, F: FnMut(&\[u8\]) -> io::Result\<bool>,; now fn for_byte_line_with_terminator\<F>(&mut self, for_each_line: F) -> io::Result<()> where Self... [crates.io](https://crates.io/crates/bstr/1.0.0)
- **Signature changed** `bstr::io::BufReadExt::for_byte_record`  

Was fn for_byte_record\<F>(self, terminator: u8, mut for_each_record: F) -> io::Result<()> where Self: Sized, F: FnMut(&\[u8\]) -> io::Result\<bool>,; now fn for_byte_record\<F>(&mut self, terminator: u8, mut for_each_record: F) ->... [crates.io](https://crates.io/crates/bstr/1.0.0)
- **Signature changed** `bstr::io::BufReadExt::for_byte_record_with_terminator`  

Was fn for_byte_record_with_terminator\<F>(mut self, terminator: u8, mut for_each_record: F) -> io::Result<()> where Self: Sized, F: FnMut(&\[u8\]) -> io::Result\<bool>,; now fn for_byte_record_with_terminator\<F>(&mut self, terminator: u8, mut... [crates.io](https://crates.io/crates/bstr/1.0.0)
- **Signature changed** `bstr::Split`  

Was struct Split<'a>; now struct Split<'h, 's>. [crates.io](https://crates.io/crates/bstr/1.0.0)
- **Signature changed** `bstr::SplitN`  

Was struct SplitN<'a>; now struct SplitN<'h, 's>. [crates.io](https://crates.io/crates/bstr/1.0.0)
- **Signature changed** `bstr::SplitNReverse`  

Was struct SplitNReverse<'a>; now struct SplitNReverse<'h, 's>. [crates.io](https://crates.io/crates/bstr/1.0.0)
- **Signature changed** `bstr::SplitReverse`  

Was struct SplitReverse<'a>; now struct SplitReverse<'h, 's>. [crates.io](https://crates.io/crates/bstr/1.0.0)

## 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.
