百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

rust-ftp

> 开发工具
开源

用于 Rust 的 FTP 客户端

193 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

用于 Rust 的 FTP 客户端

rust-ftp

FTP client for Rust Documentation


  • rust-ftp
    • Installation
    • Usage
    • License
      • Contribution
    • Development environment

Installation

FTPS support is achieved through rust-native-tls and is disabled by default. To enable it secure should be activated in Cargo.toml.

toml
[dependencies]
ftp = { version = "", features = ["secure"] }

Usage

…

License

Licensed under either of

  • Apache License, Version 2.0, (LICENSE-APACHE or )
  • MIT license (LICENSE-MIT or )

at your option.

Contribution

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.

Development environment

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:

bash
docker build -t ftp-server tests

To start the FTP server that is tested against:

bash
tests/ftp-server.sh

This 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:

bash
cargo test --features secure

The following commands can be useful:

bash
# 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-server

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rustftpftp-clientrustrust-ftp

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具