transfer-rs

Crates.iotransfer-rs
lib.rstransfer-rs
version0.3.0
sourcesrc
created_at2019-10-01 16:55:23.250334
updated_at2019-10-01 16:55:23.250334
descriptionSimple library to upload files to https://transfer.sh/
homepage
repositoryhttps://github.com/msfjarvis/transfer.rs
max_upload_size
id169133
size78,744
Harsh Shandilya (msfjarvis)

documentation

README

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
Commit count: 0

cargo fmt