#upload #transfer #transfer-sh

yanked transfer-rs

Simple library to upload files to https://transfer.sh/

0.3.0 Oct 1, 2019

#134 in #upload

MIT/Apache

15KB

transfer-rs

Small Rust library to upload files to transfer.sh. Created for practical experience in Rust, you can probably do this in one line using bash.

Usage

extern crate transfer;
use transfer::upload;

fn main() {
    match upload("Cargo.toml") {
        Ok(url) => println!("{}", url),
        Err(err) => panic!("Error: {}", err),
    };
}

A simple application is provided in the bin directory as a working example.

Building

  • Install rustc using RustUp
  • Run cargo build --release

Dependencies

~20MB
~434K SLoC