32 releases (16 breaking)

new 0.17.3 May 2, 2021
0.17.0 Mar 26, 2021
0.14.1 Dec 12, 2020
0.14.0 Oct 30, 2020
0.5.0 Nov 15, 2019

#35 in Network programming

Download history 52/week @ 2021-01-13 63/week @ 2021-01-20 29/week @ 2021-01-27 64/week @ 2021-02-03 321/week @ 2021-02-10 106/week @ 2021-02-17 26/week @ 2021-02-24 24/week @ 2021-03-03 18/week @ 2021-03-10 52/week @ 2021-03-17 149/week @ 2021-03-24 117/week @ 2021-03-31 76/week @ 2021-04-07 120/week @ 2021-04-14 91/week @ 2021-04-21 79/week @ 2021-04-28

396 downloads per month
Used in less than 9 crates


5.5K SLoC


Crate Version API Docs Build Status Crate License Follow on Telegram

When you need to FTP, but don't want to.


The libunftp library drives unFTP. It's an extensible, async, cloud orientated FTP(S) server implementation in Rust brought to you by the bol.com techlab.

Because of its plug-able authentication (e.g. PAM, JSON File, Generic REST) and storage backends (e.g. local filesystem, Google Cloud Storage) it's more flexible than traditional FTP servers and a perfect match for the cloud.

It runs on top of the Tokio asynchronous run-time and tries to make use of Async IO as much as possible.


You'll need Rust 1.41 or higher to build libunftp.

Getting started

If you've got Rust and cargo installed, create your project with

cargo new myftp

Add the libunftp and tokio crates to your project's dependencies in Cargo.toml. Then also choose a storage back-end implementation to add. Here we choose the file system back-end:

libunftp = "0.17.3"
unftp-sbe-fs = "0.1"
tokio = { version = "1", features = ["full"] }

Now you're ready to develop your server! Add the following to src/main.rs:

use unftp_sbe_fs::ServerExt;

pub async fn main() {
    let ftp_home = std::env::temp_dir();
    let server = libunftp::Server::with_fs(ftp_home)
        .greeting("Welcome to my FTP server")

You can now run your server with cargo run and connect to localhost:2121 with your favourite FTP client e.g.:

lftp -p 2121 localhost

For more help refer to:

Getting help and staying informed

Support is given on a best effort basis. You are welcome to engage us on the discussions page or create a Github issue.

You can also follow news and talk to us on Telegram


Thank you for your interest in contributing to libunftp!

Please feel free to create a Github issue if you encounter any problems.

Want to submit a feature request or develop your own storage or authentication back-end? Then head over to our contribution guide (CONTRIBUTING.md).


You're free to use, modify and distribute this software under the terms of the Apache License v2.0.


~399K SLoC