| Crates.io | transfer-rs |
| lib.rs | transfer-rs |
| version | 0.3.0 |
| created_at | 2019-10-01 16:55:23.250334+00 |
| updated_at | 2019-10-01 16:55:23.250334+00 |
| description | Simple library to upload files to https://transfer.sh/ |
| homepage | |
| repository | https://github.com/msfjarvis/transfer.rs |
| max_upload_size | |
| id | 169133 |
| size | 78,744 |
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.
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.
cargo build --release