{"id":18041633,"url":"https://github.com/katyo/fetch_unroll","last_synced_at":"2025-04-09T19:21:00.287Z","repository":{"id":55146612,"uuid":"232409385","full_name":"katyo/fetch_unroll","owner":"katyo","description":"Simple Rust build.rs utils for fetching and unrolling .tar.gz archives","archived":false,"fork":false,"pushed_at":"2021-01-07T15:01:01.000Z","size":26,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T21:11:24.933Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/katyo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-07T20:17:36.000Z","updated_at":"2024-10-29T03:10:42.000Z","dependencies_parsed_at":"2022-08-14T13:30:39.381Z","dependency_job_id":null,"html_url":"https://github.com/katyo/fetch_unroll","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katyo%2Ffetch_unroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katyo%2Ffetch_unroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katyo%2Ffetch_unroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katyo%2Ffetch_unroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/katyo","download_url":"https://codeload.github.com/katyo/fetch_unroll/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248095100,"owners_count":21046787,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-30T16:11:08.540Z","updated_at":"2025-04-09T19:21:00.253Z","avatar_url":"https://github.com/katyo.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple fetch and unroll .tar.gz archives\n\n[![License: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-brightgreen.svg)](https://opensource.org/licenses/Apache-2.0)\n[![Crates.io Package](https://img.shields.io/crates/v/fetch_unroll.svg?style=popout)](https://crates.io/crates/fetch_unroll)\n[![Docs.rs API Docs](https://docs.rs/fetch_unroll/badge.svg)](https://docs.rs/fetch_unroll)\n[![Travis-CI Status](https://travis-ci.com/katyo/fetch_unroll.svg?branch=master)](https://travis-ci.com/katyo/fetch_unroll)\n\nSimple functions intended to use in __Rust__ `build.rs` scripts for tasks which related to fetching from _HTTP_ and unrolling `.tar.gz` archives with precompiled binaries and etc.\n\n## Usage example\n\n```rust\nuse fetch_unroll::Fetch;\n\nlet pack_url = format!(\n    concat!(\"{base}/{user}/{repo}/releases/download/\",\n            \"{package}-{version}/{package}_{target}_{profile}.tar.gz\"),\n    base = \"https://github.com\",\n    user = \"katyo\",\n    repo = \"aubio-rs\",\n    package = \"libaubio\",\n    version = \"0.5.0-alpha\",\n    target = \"armv7-linux-androideabi\",\n    profile = \"debug\",\n);\n\nlet dest_dir = \"target/test_download\";\n\n// Fetching and unrolling archive\nFetch::from(pack_url)\n    .unroll().strip_components(1).to(dest_dir)\n    .unwrap();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatyo%2Ffetch_unroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkatyo%2Ffetch_unroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatyo%2Ffetch_unroll/lists"}