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

trauma

> 编程语言
开源

Tokio Rust 非同步通用下载管理器

177 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

Tokio Rust 非同步通用下载管理器

Trauma

Tokio Rust Asynchronous Universal download MAnager

Description

Trauma is a library simplifying and prettifying HTTP(s) downloads. The downloads are executed asynchronously and progress bars are drawn on the screen to help monitoring the process.

Features

  • Library only
  • HTTP(S) downloads with rustls
  • Support download via proxies
  • Download files via providing a list of URLs
    • Automatically use the remote file names
    • Ability to rename downloaded files
  • Ability to configure the download manager
    • Download directory
    • Maximum simultaneous requests
    • Number of retries
    • Resume downloads (if supported by the remote server)
    • Custom HTTP Headers
  • Asynchronous w/ Tokio
  • Progress bar w/ indicatif
    • Display the individual progress
    • Display the total progress
  • Ability to customize the progress bars
    • Customize the format
    • Customize the progression style
    • Leave them on the screen or clear them upon completion
    • Hide any or both of them
    • Use pre-configured styles

Usage

Add this to your Cargo.toml:

toml
[dependencies]
trauma = "3"

Features

By default, trauma enables rustls for TLS support.

To explicitly use the legacy default-tls specify this feature instead:

toml
[dependencies]
trauma = { version = "3", default-features = false, features = ["default-tls"] }

Quick start

rust
use trauma::{download::Download, downloader::DownloaderBuilder, Error};

#[tokio::main]
async fn main() -> Result {
    let reqwest_rs = "https://github.com/seanmonstar/reqwest/archive/refs/tags/v0.11.9.zip";
    let downloads = vec![Download::builder().url(reqwest_rs)?.build()];
    let downloader = Downloader::builder().directory("output").build();
    downloader.download(&downloads).await;
    Ok(())
}

More examples can be found in the examples folder. They are well commented and will guide you through the different features of this library.

Why another download manager

Before starting this project, I spent some time searching the internet, trying not to reinvent the wheel. And I did find a bunch of interesting existing projects!

However they are almost all abandoned:

  • DLM:
    • Active, but is just a binary/CLI tool
  • Snatch:
    • Inactive since Sept '17
    • Recommend switching to Zou
  • Zou:
    • Inactive since Oct '17
  • Duma:
    • Inactive since Nov '20
  • Siwi:
    • Inactive since Mar '21
  • Downloader:
    • Dying project
    • No answers to issues/PRs
    • Only automated updates are being merged
    • No release since Feb '21

As a result, I decided to write trauma.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

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

> 标签

Rust

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

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言