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
On this page
Latest version 1.14.0, released November 18, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
bstr 1.0.0 breaking changes
- Removed
bstr::ByteSlice::copy_within_str
bstr::ByteSlice::copy_within_str was removed in bstr 1.0.0 crates.io - Renamed
bstr::Bytes::as_slice
Use bstr::Bytes::as_bytes instead. crates.io - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - Signature changed
bstr::Find
Was struct Find<'a>; now struct Find<'h, 'n>. crates.io - Signature changed
bstr::FindReverse
Was struct FindReverse<'a>; now struct FindReverse<'h, 'n>. crates.io - 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 - 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 - 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 - 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 - Signature changed
bstr::Split
Was struct Split<'a>; now struct Split<'h, 's>. crates.io - Signature changed
bstr::SplitN
Was struct SplitN<'a>; now struct SplitN<'h, 's>. crates.io - Signature changed
bstr::SplitNReverse
Was struct SplitNReverse<'a>; now struct SplitNReverse<'h, 's>. crates.io - Signature changed
bstr::SplitReverse
Was struct SplitReverse<'a>; now struct SplitReverse<'h, 's>. crates.io
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.