FTP client for Rust
FTP client for Rust Documentation
FTPS support is achieved through rust-native-tls and is disabled by default. To enable it secure should be activated in Cargo.toml.
[dependencies]
ftp = { version = "", features = ["secure"] }…Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
All you need to develop rust-ftp and run the tests is Rust and Docker.
The tests folder contains a Dockerfile that installs and configures
the vsftpd server.
To create the Docker image:
docker build -t ftp-server testsTo start the FTP server that is tested against:
tests/ftp-server.shThis script runs the ftp-server image in detached mode and starts the vsftpd daemon. It binds ports 21 (FTP) as well as the range 65000-65010 for passive connections.
Once you have an instance running, to run tests type:
cargo test --features secureThe following commands can be useful:
# List running containers of ftp-server image
# (to include stopped containers use -a option)
docker ps --filter ancestor=ftp-server
# To stop and remove a container
docker stop container_name
docker rm container_name
# To remove the image
docker rmi ftp-serverNo open issues yet, or sync has not completed.