Skip to content

Releases: openssh-rust/openssh-sftp-client

0.13.4

13 May 16:15
ec57895
Compare
Choose a tag to compare

Improved

  • Fix: change the drop of OwnedHandle to wait for the close request in order to
    avoid invalid response id after closing file
  • Add log for droping OwnedHandle

Other changes

  • Add msrv 1.64 in Cargo.toml
  • Bump edition to 2021 in Cargo.toml

Full Changelog: 0.13.3...0.13.4

0.13.3

07 May 15:39
Compare
Choose a tag to compare

Improved

  • If Sftp is created using Sftp::from_session, then dropping it would
    also drop the openssh::RemoteChild and openssh::Session immediately
    after sftp graceful shutdown is done to prevent any leak.

Full Changelog: 0.13.2...0.13.3

0.13.2

07 May 14:00
Compare
Choose a tag to compare

Added

  • OpensshSession, which is enabled by feature openssh
  • SftpAuxiliaryData::ArcedOpensshSession, which is enabled by feature openssh
  • Sftp::from_session, which is enabled by feature openssh
  • Logging support, enabled by feature tracing

Improved

  • Keep waiting on other tasks on failure in Sftp::close
    to collect as much information about the failure as possible.
  • Add error::RecursiveError3 for returing 3 errs in Sftp::close

Full Changelog: 0.13.1...0.13.2

0.13.1

05 May 10:07
Compare
Choose a tag to compare

What's Changed

  • Add new variant SftpAuxiliaryData::PinnedFuture (#68)

Full Changelog: 0.13.0...0.13.1

0.13.0

05 May 08:14
Compare
Choose a tag to compare

Fixed

  • Fixed #62 fs::ReadDir: Return all entries instead of just a subset.

Added

  • file::File::as_mut_file
  • SftpAuxiliaryData
  • Sftp::new_with_auxiliary

Changed

  • Remove lifetime from file::OpenOptions.
  • Remove lifetime from file::File.
  • Remove lifetime from file::TokioCompatFile.
  • Remove lifetime from fs::Fs.
  • Remove lifetime from fs::Dir.
  • Remove lifetime from fs::ReadDir.
  • Remove lifetime 's from fs::DirBuilder.
  • fs::ReadDir now implements futures_core::{Stream, FusedStream}
    instead of the {iterator, slice}-based interface.
  • Remove file::File::sftp.
  • Remove file::TokioCompatFile::close.
  • file::TokioCompatFile::fill_buf now takes self: Pin<&mut Self>
    instead of &mut self.
  • file::TokioCompatFile::read_into_buffer now takes
    self: Pin<&mut Self> instead of &mut self.

Other changes

  • Clarify file::File::read.
  • Clarify file::File::write.
  • Clarify file::File::write_vectorized.
  • Clarify file::File::write_zero_copy.