Skip to content

Commit

Permalink
suppaftp 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Feb 25, 2023
1 parent b353852 commit 18a60dd
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 10 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
# Changelog

- [Changelog](#changelog)
- [0.1.3](#013)
- [0.1.2](#012)
- [0.1.1](#011)
- [0.1.0](#010)

---

## 0.1.3

Released on 25/02/2023

- bump `suppaftp` to `5.0.0`

## 0.1.2

Released on 10/10/2022
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ license = "MIT"
name = "remotefs-ftp"
readme = "README.md"
repository = "https://github.com/veeso/remotefs-rs-ftp"
version = "0.1.2"
version = "0.1.3"

[dependencies]
log = "^0.4"
remotefs = "^0.2.0"
suppaftp = "^4.5.2"
suppaftp = "^5.0"
webpki-roots = { version = "^0.22", optional = true }

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<p align="center">~ Remotefs FTP client ~</p>

<p align="center">Developed by <a href="https://veeso.github.io/" target="_blank">@veeso</a></p>
<p align="center">Current version: 0.1.2 (10/10/2022)</p>
<p align="center">Current version: 0.1.3 (25/02/2023)</p>

<p align="center">
<a href="https://opensource.org/licenses/MIT"
Expand Down Expand Up @@ -81,7 +81,7 @@ remotefs-ftp is a client implementation for [remotefs](https://github.com/veeso/
First of all, add `remotefs-ftp` to your project dependencies:

```toml
remotefs-ftp = "^0.1.0"
remotefs-ftp = "^0.1.3"
```

these features are supported:
Expand Down
17 changes: 12 additions & 5 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,28 @@
//! ftp client for remotefs

use crate::utils::path as path_utils;

use remotefs::fs::{
FileType, Metadata, ReadStream, RemoteError, RemoteErrorType, RemoteFs, RemoteResult, UnixPex,
UnixPexClass, Welcome, WriteStream,
};
use remotefs::File;

use std::io::{Read, Write};
use std::path::{Path, PathBuf};
#[cfg(feature = "native-tls")]
use suppaftp::native_tls::TlsConnector as NativeTlsConnector;
#[cfg(feature = "rustls")]
use suppaftp::rustls::ClientConfig;
#[cfg(not(any(feature = "native-tls", feature = "rustls")))]
pub use suppaftp::FtpStream;
#[cfg(any(feature = "native-tls", feature = "rustls"))]
use suppaftp::TlsConnector;
#[cfg(feature = "native-tls")]
use suppaftp::NativeTlsConnector as TlsConnector;
#[cfg(feature = "native-tls")]
pub use suppaftp::NativeTlsFtpStream as FtpStream;
#[cfg(feature = "rustls")]
use suppaftp::RustlsConnector as TlsConnector;
#[cfg(feature = "rustls")]
pub use suppaftp::RustlsFtpStream as FtpStream;
use suppaftp::{
list::{File as FtpFile, PosixPexQuery},
types::{FileType as SuppaFtpFileType, Mode, Response},
Expand Down Expand Up @@ -540,9 +547,9 @@ mod test {
assert_eq!(client.mode, Mode::Passive);
#[cfg(any(feature = "native-tls", feature = "rustls"))]
assert_eq!(client.secure, false);
#[cfg(any(feature = "native-tls", feature = "rustls"))]
#[cfg(feature = "native-tls")]
assert_eq!(client.accept_invalid_certs, false);
#[cfg(any(feature = "native-tls", feature = "rustls"))]
#[cfg(feature = "native-tls")]
assert_eq!(client.accept_invalid_hostnames, false);
}

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//!
//! ```toml
//! remotefs = "^0.2.0"
//! remotefs-ftp = "^0.1.0"
//! remotefs-ftp = "^0.1.3"
//! ```
//!
//! these features are supported:
Expand Down

0 comments on commit 18a60dd

Please sign in to comment.