| Crates.io | zip_downloader |
| lib.rs | zip_downloader |
| version | 0.1.2 |
| created_at | 2024-10-24 16:33:21.425268+00 |
| updated_at | 2024-10-28 06:44:13.293992+00 |
| description | A simple crate for one-line download and read of ZIP files. |
| homepage | |
| repository | https://github.com/zartarn15/zip_downloader |
| max_upload_size | |
| id | 1421519 |
| size | 21,888 |
zip_downloaderA simple Rust crate for one-line download and read of ZIP files. Provide downloaded content as a String or as bytes.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Library usage example
use zip_downloader::ZipDownloader;
let url = "https://some.url/file.zip";
// Download and get ZIP file as String
let string = ZipDownloader::get(url).unwrap().text().unwrap();
// Download and get ZIP file as bytes
let bytes = ZipDownloader::get(url).unwrap().bytes();
// Download and get 3rd line from ZIP-packed text
let line = ZipDownloader::get(url).unwrap().line(3).unwrap();
// Download and get 3rd byte from ZIP packed byte file
let byte = ZipDownloader::get(url).unwrap().bytes()[3];