#tus #server #actix-web

app rustus

TUS protocol implementation written in Rust

13 releases

Uses new Rust 2021

new 0.5.6 Jul 7, 2022
0.5.5 Jun 24, 2022
0.4.13 Apr 10, 2022
0.4.10 Mar 28, 2022

#26 in HTTP server

Download history 5/week @ 2022-03-13 22/week @ 2022-03-20 55/week @ 2022-03-27 23/week @ 2022-04-03 30/week @ 2022-04-10 3/week @ 2022-04-17 20/week @ 2022-04-24 36/week @ 2022-05-01 36/week @ 2022-05-08 103/week @ 2022-05-15 25/week @ 2022-05-22 32/week @ 2022-05-29 31/week @ 2022-06-05 66/week @ 2022-06-12 71/week @ 2022-06-19 24/week @ 2022-06-26

198 downloads per month

Custom license

265KB
4K SLoC

logo

Docker Image Size (latest by date) Docker Image Version (latest semver) GitHub

TUS protocol implementation written in Rust.

Features

This implementation has several features to make usage as simple as possible.

  • Rustus is robust, since it uses asynchronous Rust;
  • It can store information about uploads in databases;
  • You can specify directory structure to organize your uploads;
  • It has a lot of hooks options, and hooks can be combined.
  • Highly configurable;

Please check out Documentation for more information about configuration and deploy.

Installation

You can install rustus by 4 different ways.

From source

To build it from source rust must be installed. Preferred version is 1.59.0.

git clone https://github.com/s3rius/rustus.git
cd rustus
cargo install --path . --features=all,metrics

Also you can speedup build by disabling some features.

Available features:

  • amqp_notifier - adds amqp protocol support for notifying about upload status;
  • db_info_storage - adds support for storing information about upload in different databases (Postgres, MySQL, SQLite);
  • http_notifier - adds support for notifying about upload status via http protocol;
  • redis_info_storage - adds support for storing information about upload in redis database;
  • hashers - adds support for checksum verification;
  • metrics - adds rustus specific metrics to prometheus endpoint;
  • all - enables all rustus features except metrics.

All precompiled binaries have all features enabled.

With cargo

If you have cargo installed maybe it would be easier to install it directly from crates.io.

cargo install rustus --features=all

Binaries

All precompiled binaries available on github releases page. You can download binaries from here, unpack it and run.

./rustus

Make sure that you download version for your cpu and os.

Using docker

One of the most simple ways to run rustus is docker.

Rustus has two containers for each version.

  1. debian based image
  2. alpine based image

Alpine based images are more lightweight than debian

To run rustus you just need to run this command

docker run --rm -p "1081:1081" -d s3rius/rustus --log-level "DEBUG"

Dependencies

~21–33MB
~728K SLoC