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

# which breaking changes

which 8.0.0 (June 5, 2025) is its newest release with breaking changes, 12 of them. The first: Behavior changed NonFatalHandler. Every breaking API change we have recorded in which on crates.io: 30 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `8.0.7`, released December 4, 2026. [Source repository](https://github.com/harryfei/which-rs)

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

- From [7.0.0](#v-7-0-0) to [8.0.0](#v-8-0-0): 12 breaking changes in 1 version.
- From [5.0.0](#v-5-0-0) to [8.0.0](#v-8-0-0): 26 breaking changes in 3 versions.

## which 8.0.0 breaking changes

which 8.0.0, released June 5, 2025: 12 breaking changes.

- **Behavior changed** `NonFatalHandler`  

The NonFatalHandler is now invoked in more places to report I/O errors that were silently ignored before. Code that relies on the handler being called only in the old cases may see extra calls. [github.com](https://github.com/harryfei/which-rs/releases/tag/8.0.0)
- **Signature changed** `which::which_re`  

Was fn which_re(regex: impl Borrow\<Regex>) -> Result\<impl Iterator\<Item = path::PathBuf>>; now fn which_re(regex: impl std::borrow::Borrow\<Regex>) -> Result\<impl Iterator\<Item = path::PathBuf>>. [crates.io](https://crates.io/crates/which/8.0.0)
- **Signature changed** `which::which_re_in`  

Was fn which_re_in\<T>(regex: impl Borrow\<Regex>, paths: Option\<T>) -> Result\<impl Iterator\<Item = path::PathBuf>> where T: AsRef\<OsStr>,; now fn which_re_in\<T>(regex: impl std::borrow::Borrow\<Regex>, paths: Option\<T>) -> Result\<impl... [crates.io](https://crates.io/crates/which/8.0.0)
- **Signature changed** `which::WhichConfig`  

Was struct WhichConfig\<F = Noop>; now struct WhichConfig\<TSys: sys::Sys, F = Noop>. [crates.io](https://crates.io/crates/which/8.0.0)
- **Signature changed** `which::WhichConfig::binary_name`  

Was fn binary_name(mut self, name: OsString) -> Self; now fn binary_name(mut self, name: OsString) -> Self. [crates.io](https://crates.io/crates/which/8.0.0)
- **Signature changed** `which::WhichConfig::custom_cwd`  

Was fn custom_cwd(mut self, cwd: path::PathBuf) -> Self; now fn custom_cwd(mut self, cwd: path::PathBuf) -> Self. [crates.io](https://crates.io/crates/which/8.0.0)
- **Signature changed** `which::WhichConfig::custom_path_list`  

Was fn custom_path_list(mut self, custom_path_list: OsString) -> Self; now fn custom_path_list(mut self, custom_path_list: OsString) -> Self. [crates.io](https://crates.io/crates/which/8.0.0)
- **Signature changed** `which::WhichConfig::new`  

Was fn new() -> Self; now fn new() -> Self. [crates.io](https://crates.io/crates/which/8.0.0)
- **Signature changed** `which::WhichConfig::nonfatal_error_handler`  

Was fn nonfatal_error_handler\<NewF>(self, handler: NewF) -> WhichConfig\<NewF>; now fn nonfatal_error_handler\<NewF>(self, handler: NewF) -> WhichConfig\<TSys, NewF>. [crates.io](https://crates.io/crates/which/8.0.0)
- **Signature changed** `which::WhichConfig::regex`  

Was fn regex(mut self, regex: Regex) -> Self; now fn regex(mut self, regex: Regex) -> Self. [crates.io](https://crates.io/crates/which/8.0.0)
- **Signature changed** `which::WhichConfig::system_cwd`  

Was fn system_cwd(mut self, use_cwd: bool) -> Self; now fn system_cwd(mut self, use_cwd: bool) -> Self. [crates.io](https://crates.io/crates/which/8.0.0)
- **Signature changed** `which::WhichConfig::system_path_list`  

Was fn system_path_list(mut self) -> Self; now fn system_path_list(mut self) -> Self. [crates.io](https://crates.io/crates/which/8.0.0)

## which 7.0.0 breaking changes

which 7.0.0, released November 1, 2024: 13 breaking changes.

- **Signature changed**  

Adding generics and lifetimes for the new callback technically breaks a few APIs. Most code will compile without changes, but code that names these types may need updating. [github.com](https://github.com/harryfei/which-rs/releases/tag/7.0.0)
- **Signature changed** `which::CanonicalPath::all_in`  

Was fn all_in\<T, U, V>(binary_name: T, paths: Option\<U>, cwd: V) -> Result\<impl Iterator\<Item = Result\<CanonicalPath>>> where T: AsRef\<OsStr>, U: AsRef\<OsStr>, V: AsRef\<path::Path>,; now fn all_in<'a, T, U, V>(binary_name: T, paths... [crates.io](https://crates.io/crates/which/7.0.0)
- **Signature changed** `which::Path::all_in`  

Was fn all_in\<T, U, V>(binary_name: T, paths: Option\<U>, cwd: V) -> Result\<impl Iterator\<Item = Path>> where T: AsRef\<OsStr>, U: AsRef\<OsStr>, V: AsRef\<path::Path>,; now fn all_in<'a, T, U, V>(binary_name: T, paths: Option\<U>, cwd: V) ->... [crates.io](https://crates.io/crates/which/7.0.0)
- **Signature changed** `which::which_in_all`  

Was fn which_in_all\<T, U, V>(binary_name: T, paths: Option\<U>, cwd: V) -> Result\<impl Iterator\<Item = path::PathBuf>> where T: AsRef\<OsStr>, U: AsRef\<OsStr>, V: AsRef\<path::Path>,; now fn which_in_all<'a, T, U, V>(binary_name: T, paths... [crates.io](https://crates.io/crates/which/7.0.0)
- **Signature changed** `which::WhichConfig`  

Was struct WhichConfig; now struct WhichConfig\<F = Noop>. [crates.io](https://crates.io/crates/which/7.0.0)
- **Signature changed** `which::WhichConfig::all_results`  

Was fn all_results(self) -> Result\<impl Iterator\<Item = path::PathBuf>>; now fn all_results(self) -> Result\<impl Iterator\<Item = path::PathBuf> + 'a>. [crates.io](https://crates.io/crates/which/7.0.0)
- **Signature changed** `which::WhichConfig::binary_name`  

Was fn binary_name(mut self, name: OsString) -> Self; now fn binary_name(mut self, name: OsString) -> Self. [crates.io](https://crates.io/crates/which/7.0.0)
- **Signature changed** `which::WhichConfig::custom_cwd`  

Was fn custom_cwd(mut self, cwd: path::PathBuf) -> Self; now fn custom_cwd(mut self, cwd: path::PathBuf) -> Self. [crates.io](https://crates.io/crates/which/7.0.0)
- **Signature changed** `which::WhichConfig::custom_path_list`  

Was fn custom_path_list(mut self, custom_path_list: OsString) -> Self; now fn custom_path_list(mut self, custom_path_list: OsString) -> Self. [crates.io](https://crates.io/crates/which/7.0.0)
- **Signature changed** `which::WhichConfig::new`  

Was fn new() -> Self; now fn new() -> Self. [crates.io](https://crates.io/crates/which/7.0.0)

And 3 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## which 6.0.0 breaking changes

which 6.0.0, released January 18, 2024: 1 breaking change.

- **Behavior changed**  

The minimum supported Rust version is now 1.70. Users on older Rust toolchains must upgrade to build this release. [github.com](https://github.com/harryfei/which-rs/releases/tag/6.0.0)

## which 5.0.0 breaking changes

which 5.0.0, released October 18, 2023: 4 breaking changes.

- **Removed**  

Several error variants were removed from the crate. Code that matches on or constructs those errors must be updated. [github.com](https://github.com/harryfei/which-rs/releases/tag/5.0.0)
- **Removed** `which::Error::BadAbsolutePath`  

which::Error::BadAbsolutePath was removed in which 5.0.0 [crates.io](https://crates.io/crates/which/5.0.0)
- **Removed** `which::Error::BadRelativePath`  

which::Error::BadRelativePath was removed in which 5.0.0 [crates.io](https://crates.io/crates/which/5.0.0)
- **Removed** `which::Error::CannotGetCurrentDir`  

which::Error::CannotGetCurrentDir was removed in which 5.0.0 [crates.io](https://crates.io/crates/which/5.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.
