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
On this page
Latest version 8.0.7, released December 4, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
- From 7.0.0 to 8.0.0: 12 breaking changes in 1 version.
- From 5.0.0 to 8.0.0: 26 breaking changes in 3 versions.
which 8.0.0 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 - 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 - 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 - Signature changed
which::WhichConfig
Was struct WhichConfig<F = Noop>; now struct WhichConfig<TSys: sys::Sys, F = Noop>. crates.io - 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 - 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 - 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 - Signature changed
which::WhichConfig::new
Was fn new() -> Self; now fn new() -> Self. crates.io - 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 - Signature changed
which::WhichConfig::regex
Was fn regex(mut self, regex: Regex) -> Self; now fn regex(mut self, regex: Regex) -> Self. crates.io - 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 - 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
which 7.0.0 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 - 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 - 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 - 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 - Signature changed
which::WhichConfig
Was struct WhichConfig; now struct WhichConfig<F = Noop>. crates.io - 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 - 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 - 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 - 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 - Signature changed
which::WhichConfig::new
Was fn new() -> Self; now fn new() -> Self. crates.io
And 3 more in this version. Sign up to see every change
which 6.0.0 breaking changes
- Behavior changed
The minimum supported Rust version is now 1.70. Users on older Rust toolchains must upgrade to build this release. github.com
which 5.0.0 breaking changes
- Removed
Several error variants were removed from the crate. Code that matches on or constructs those errors must be updated. github.com - Removed
which::Error::BadAbsolutePath
which::Error::BadAbsolutePath was removed in which 5.0.0 crates.io - Removed
which::Error::BadRelativePath
which::Error::BadRelativePath was removed in which 5.0.0 crates.io - Removed
which::Error::CannotGetCurrentDir
which::Error::CannotGetCurrentDir was removed in which 5.0.0 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.