| Crates.io | filepush-rs |
| lib.rs | filepush-rs |
| version | 0.1.3 |
| created_at | 2019-10-16 05:34:19.011652+00 |
| updated_at | 2019-10-19 19:44:37.877976+00 |
| description | Simple library to upload and download files to/from https://filepush.co/ |
| homepage | |
| repository | https://github.com/marianopw/filepush-rs |
| max_upload_size | |
| id | 172903 |
| size | 78,403 |
Small Rust library to upload and download files from/to filepush.co.
I forked the transfer-rs library and added download capabilities.
extern crate filepush;
use filepush::{upload, download};
fn main() {
match upload("Cargo.toml") {
Ok(url) => println!("{}", url),
Err(err) => panic!("Error: {}", err),
};
match download("https://filepush.co/9LY9/test1") {
Ok(url) => println!("{}", url),
Err(err) => panic!("Error: {}", err),
};
}
A simple CLI application is provided in the examples directory.
cargo build --releasegit clone https://github.com/marianopw/filepush-rscd filepush-rscargo run --example cli_client -- -u yourfilecargo run --example cli_client -- -d yourlinkTransfer-rs lib author is Harsh Shandilya