本期的每周一库带来的是Rust下的ftp client库:rust-ftp
相关链接
-
rust-ftp docs: https://docs.rs/ftp/3.0.1/ftp/
-
rust-ftp github: https://github.com/mattnenterprise/rust-ftp
rust-ftp的文档页面给出了使用的用例,从代码来看非常简单,下面我们通过实际使用来体验rust-ftp库。
开发环境
-
Windows 10
-
rustc --version
: rustc 1.46.0-nightly (6bb3dbfc6 2020-06-22) -
cargo --version
: cargo 1.46.0-nightly (089cbb80b 2020-06-15) -
rust-ftp version: 3.0.1
通过FileZilla Server来体验rust-ftp的功能
首先我们下载FileZilla Server作为本地的ftp服务器程序
这里简单赘述一下FileZilla Server的配置,启动FileZilla Server之后
配置FileZilla Server的User
在下图右侧窗口添加一个User,用户名设置为admin