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

# russh-sftp breaking changes

russh-sftp 4.0.0 (November 21, 2026) is its newest release with breaking changes, 115 of them. The first: Signature changed russh_sftp::client::fs::DirEntry::file_name. Every breaking API change we have recorded in russh-sftp on crates.io: 115 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 `4.0.0`, released November 21, 2026. [Source repository](https://github.com/AspectUnk/russh-sftp)

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

## russh-sftp 4.0.0 breaking changes

russh-sftp 4.0.0, released November 21, 2026: 115 breaking changes.

- **Signature changed** `russh_sftp::client::fs::DirEntry::file_name`  

Was fn file_name(&self) -> String; now fn file_name(&self) -> SftpString. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::fs::DirEntry::path`  

Was fn path(&self) -> String; now fn path(&self) -> SftpString. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::rawsession::RawSftpSession::close`  

Was async fn close\<H: Into\<String>>(&self, handle: H) -> SftpResult\<Status>; now async fn close\<H: Into\<SftpHandle>>(&self, handle: H) -> SftpResult\<Status>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::rawsession::RawSftpSession::expand_path`  

Was async fn expand_path\<P: Into\<String>>(&self, path: P) -> SftpResult\<Name>; now async fn expand_path\<P: Into\<SftpString>>(&self, path: P) -> SftpResult\<Name>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::rawsession::RawSftpSession::fsetstat`  

Was async fn fsetstat\<H: Into\<String>>(&self, handle: H, attrs: FileAttributes) -> SftpResult\<Status>; now async fn fsetstat\<H: Into\<SftpHandle>>(&self, handle: H, attrs: FileAttributes) -> SftpResult\<Status>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::rawsession::RawSftpSession::fstat`  

Was async fn fstat\<H: Into\<String>>(&self, handle: H) -> SftpResult\<Attrs>; now async fn fstat\<H: Into\<SftpHandle>>(&self, handle: H) -> SftpResult\<Attrs>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::rawsession::RawSftpSession::fsync`  

Was async fn fsync\<H: Into\<String>>(&self, handle: H) -> SftpResult\<Status>; now async fn fsync\<H: Into\<SftpHandle>>(&self, handle: H) -> SftpResult\<Status>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::rawsession::RawSftpSession::hardlink`  

Was async fn hardlink\<O, N>(&self, oldpath: O, newpath: N) -> SftpResult\<Status> where O: Into\<String>, N: Into\<String>,; now async fn hardlink\<O, N>(&self, oldpath: O, newpath: N) -> SftpResult\<Status> where O: Into\<SftpString>, N... [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::rawsession::RawSftpSession::lstat`  

Was async fn lstat\<P: Into\<String>>(&self, path: P) -> SftpResult\<Attrs>; now async fn lstat\<P: Into\<SftpString>>(&self, path: P) -> SftpResult\<Attrs>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::rawsession::RawSftpSession::mkdir`  

Was async fn mkdir\<P: Into\<String>>(&self, path: P, attrs: FileAttributes) -> SftpResult\<Status>; now async fn mkdir\<P: Into\<SftpString>>(&self, path: P, attrs: FileAttributes) -> SftpResult\<Status>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::rawsession::RawSftpSession::open`  

Was async fn open\<T: Into\<String>>(&self, filename: T, flags: OpenFlags, attrs: FileAttributes) -> SftpResult\<Handle>; now async fn open\<T: Into\<SftpString>>(&self, filename: T, flags: OpenFlags, attrs: FileAttributes) ->... [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::rawsession::RawSftpSession::opendir`  

Was async fn opendir\<P: Into\<String>>(&self, path: P) -> SftpResult\<Handle>; now async fn opendir\<P: Into\<SftpString>>(&self, path: P) -> SftpResult\<Handle>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::rawsession::RawSftpSession::read`  

Was async fn read\<H: Into\<String>>(&self, handle: H, offset: u64, len: u32) -> SftpResult\<Data>; now async fn read\<H: Into\<SftpHandle>>(&self, handle: H, offset: u64, len: u32) -> SftpResult\<Data>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::rawsession::RawSftpSession::readdir`  

Was async fn readdir\<H: Into\<String>>(&self, handle: H) -> SftpResult\<Name>; now async fn readdir\<H: Into\<SftpHandle>>(&self, handle: H) -> SftpResult\<Name>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::rawsession::RawSftpSession::readlink`  

Was async fn readlink\<P: Into\<String>>(&self, path: P) -> SftpResult\<Name>; now async fn readlink\<P: Into\<SftpString>>(&self, path: P) -> SftpResult\<Name>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::rawsession::RawSftpSession::realpath`  

Was async fn realpath\<P: Into\<String>>(&self, path: P) -> SftpResult\<Name>; now async fn realpath\<P: Into\<SftpString>>(&self, path: P) -> SftpResult\<Name>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::rawsession::RawSftpSession::remove`  

Was async fn remove\<T: Into\<String>>(&self, filename: T) -> SftpResult\<Status>; now async fn remove\<T: Into\<SftpString>>(&self, filename: T) -> SftpResult\<Status>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::rawsession::RawSftpSession::rename`  

Was async fn rename\<O, N>(&self, oldpath: O, newpath: N) -> SftpResult\<Status> where O: Into\<String>, N: Into\<String>,; now async fn rename\<O, N>(&self, oldpath: O, newpath: N) -> SftpResult\<Status> where O: Into\<SftpString>, N... [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::rawsession::RawSftpSession::rmdir`  

Was async fn rmdir\<P: Into\<String>>(&self, path: P) -> SftpResult\<Status>; now async fn rmdir\<P: Into\<SftpString>>(&self, path: P) -> SftpResult\<Status>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::rawsession::RawSftpSession::setstat`  

Was async fn setstat\<P: Into\<String>>(&self, path: P, attrs: FileAttributes) -> SftpResult\<Status>; now async fn setstat\<P: Into\<SftpString>>(&self, path: P, attrs: FileAttributes) -> SftpResult\<Status>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::rawsession::RawSftpSession::stat`  

Was async fn stat\<P: Into\<String>>(&self, path: P) -> SftpResult\<Attrs>; now async fn stat\<P: Into\<SftpString>>(&self, path: P) -> SftpResult\<Attrs>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::rawsession::RawSftpSession::statvfs`  

Was async fn statvfs\<P>(&self, path: P) -> SftpResult\<Statvfs> where P: Into\<String>,; now async fn statvfs\<P>(&self, path: P) -> SftpResult\<Statvfs> where P: Into\<SftpString>,. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::rawsession::RawSftpSession::symlink`  

Was async fn symlink\<P, T>(&self, path: P, target: T) -> SftpResult\<Status> where P: Into\<String>, T: Into\<String>,; now async fn symlink\<P, T>(&self, path: P, target: T) -> SftpResult\<Status> where P: Into\<SftpString>, T... [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::rawsession::RawSftpSession::write`  

Was async fn write\<H: Into\<String>>(&self, handle: H, offset: u64, data: Vec\<u8>) -> SftpResult\<Status>; now async fn write\<H: Into\<SftpHandle>>(&self, handle: H, offset: u64, data: Vec\<u8>) -> SftpResult\<Status>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::RawSftpSession::close`  

Was async fn close\<H: Into\<String>>(&self, handle: H) -> SftpResult\<Status>; now async fn close\<H: Into\<SftpHandle>>(&self, handle: H) -> SftpResult\<Status>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::RawSftpSession::expand_path`  

Was async fn expand_path\<P: Into\<String>>(&self, path: P) -> SftpResult\<Name>; now async fn expand_path\<P: Into\<SftpString>>(&self, path: P) -> SftpResult\<Name>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::RawSftpSession::fsetstat`  

Was async fn fsetstat\<H: Into\<String>>(&self, handle: H, attrs: FileAttributes) -> SftpResult\<Status>; now async fn fsetstat\<H: Into\<SftpHandle>>(&self, handle: H, attrs: FileAttributes) -> SftpResult\<Status>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::RawSftpSession::fstat`  

Was async fn fstat\<H: Into\<String>>(&self, handle: H) -> SftpResult\<Attrs>; now async fn fstat\<H: Into\<SftpHandle>>(&self, handle: H) -> SftpResult\<Attrs>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::RawSftpSession::fsync`  

Was async fn fsync\<H: Into\<String>>(&self, handle: H) -> SftpResult\<Status>; now async fn fsync\<H: Into\<SftpHandle>>(&self, handle: H) -> SftpResult\<Status>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::RawSftpSession::hardlink`  

Was async fn hardlink\<O, N>(&self, oldpath: O, newpath: N) -> SftpResult\<Status> where O: Into\<String>, N: Into\<String>,; now async fn hardlink\<O, N>(&self, oldpath: O, newpath: N) -> SftpResult\<Status> where O: Into\<SftpString>, N... [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::RawSftpSession::lstat`  

Was async fn lstat\<P: Into\<String>>(&self, path: P) -> SftpResult\<Attrs>; now async fn lstat\<P: Into\<SftpString>>(&self, path: P) -> SftpResult\<Attrs>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::RawSftpSession::mkdir`  

Was async fn mkdir\<P: Into\<String>>(&self, path: P, attrs: FileAttributes) -> SftpResult\<Status>; now async fn mkdir\<P: Into\<SftpString>>(&self, path: P, attrs: FileAttributes) -> SftpResult\<Status>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::RawSftpSession::open`  

Was async fn open\<T: Into\<String>>(&self, filename: T, flags: OpenFlags, attrs: FileAttributes) -> SftpResult\<Handle>; now async fn open\<T: Into\<SftpString>>(&self, filename: T, flags: OpenFlags, attrs: FileAttributes) ->... [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::RawSftpSession::opendir`  

Was async fn opendir\<P: Into\<String>>(&self, path: P) -> SftpResult\<Handle>; now async fn opendir\<P: Into\<SftpString>>(&self, path: P) -> SftpResult\<Handle>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::RawSftpSession::read`  

Was async fn read\<H: Into\<String>>(&self, handle: H, offset: u64, len: u32) -> SftpResult\<Data>; now async fn read\<H: Into\<SftpHandle>>(&self, handle: H, offset: u64, len: u32) -> SftpResult\<Data>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::RawSftpSession::readdir`  

Was async fn readdir\<H: Into\<String>>(&self, handle: H) -> SftpResult\<Name>; now async fn readdir\<H: Into\<SftpHandle>>(&self, handle: H) -> SftpResult\<Name>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::RawSftpSession::readlink`  

Was async fn readlink\<P: Into\<String>>(&self, path: P) -> SftpResult\<Name>; now async fn readlink\<P: Into\<SftpString>>(&self, path: P) -> SftpResult\<Name>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::RawSftpSession::realpath`  

Was async fn realpath\<P: Into\<String>>(&self, path: P) -> SftpResult\<Name>; now async fn realpath\<P: Into\<SftpString>>(&self, path: P) -> SftpResult\<Name>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::RawSftpSession::remove`  

Was async fn remove\<T: Into\<String>>(&self, filename: T) -> SftpResult\<Status>; now async fn remove\<T: Into\<SftpString>>(&self, filename: T) -> SftpResult\<Status>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::RawSftpSession::rename`  

Was async fn rename\<O, N>(&self, oldpath: O, newpath: N) -> SftpResult\<Status> where O: Into\<String>, N: Into\<String>,; now async fn rename\<O, N>(&self, oldpath: O, newpath: N) -> SftpResult\<Status> where O: Into\<SftpString>, N... [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::RawSftpSession::rmdir`  

Was async fn rmdir\<P: Into\<String>>(&self, path: P) -> SftpResult\<Status>; now async fn rmdir\<P: Into\<SftpString>>(&self, path: P) -> SftpResult\<Status>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::RawSftpSession::setstat`  

Was async fn setstat\<P: Into\<String>>(&self, path: P, attrs: FileAttributes) -> SftpResult\<Status>; now async fn setstat\<P: Into\<SftpString>>(&self, path: P, attrs: FileAttributes) -> SftpResult\<Status>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::RawSftpSession::stat`  

Was async fn stat\<P: Into\<String>>(&self, path: P) -> SftpResult\<Attrs>; now async fn stat\<P: Into\<SftpString>>(&self, path: P) -> SftpResult\<Attrs>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::RawSftpSession::statvfs`  

Was async fn statvfs\<P>(&self, path: P) -> SftpResult\<Statvfs> where P: Into\<String>,; now async fn statvfs\<P>(&self, path: P) -> SftpResult\<Statvfs> where P: Into\<SftpString>,. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::RawSftpSession::symlink`  

Was async fn symlink\<P, T>(&self, path: P, target: T) -> SftpResult\<Status> where P: Into\<String>, T: Into\<String>,; now async fn symlink\<P, T>(&self, path: P, target: T) -> SftpResult\<Status> where P: Into\<SftpString>, T... [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::RawSftpSession::write`  

Was async fn write\<H: Into\<String>>(&self, handle: H, offset: u64, data: Vec\<u8>) -> SftpResult\<Status>; now async fn write\<H: Into\<SftpHandle>>(&self, handle: H, offset: u64, data: Vec\<u8>) -> SftpResult\<Status>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::run_with_config`  

Was fn run_with_config\<S, H>(stream: S, mut handler: H, cfg: Config) -> mpsc::UnboundedSender\<Bytes> where S: AsyncRead + AsyncWrite + Unpin + Send + 'static, H: Handler + Send + 'static,; now fn run_with_config\<S, H>(stream: S, handler... [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::SftpSession::canonicalize`  

Was async fn canonicalize\<T: Into\<String>>(&self, path: T) -> SftpResult\<String>; now async fn canonicalize\<T: Into\<SftpString>>(&self, path: T) -> SftpResult\<SftpString>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::SftpSession::create`  

Was async fn create\<T: Into\<String>>(&self, filename: T) -> SftpResult\<File>; now async fn create\<T: Into\<SftpString>>(&self, filename: T) -> SftpResult\<File>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)
- **Signature changed** `russh_sftp::client::SftpSession::create_dir`  

Was async fn create_dir\<T: Into\<String>>(&self, path: T) -> SftpResult<()>; now async fn create_dir\<T: Into\<SftpString>>(&self, path: T) -> SftpResult<()>. [crates.io](https://crates.io/crates/russh-sftp/4.0.0)

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

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