[wip] work on tfclient build system (cleanup)
This commit is contained in:
parent
c2f9bebd09
commit
a7a644c80d
|
@ -88,67 +88,22 @@ use flate2::read::GzDecoder;
|
|||
use reqwest::blocking::Response;
|
||||
use reqwest::header::HeaderMap;
|
||||
use tar::Archive;
|
||||
use tempfile::{NamedTempFile, tempfile};
|
||||
|
||||
|
||||
#[derive(serde::Deserialize, Debug)]
|
||||
struct GithubRelease {
|
||||
url: String,
|
||||
html_url: String,
|
||||
assets_url: String,
|
||||
upload_url: String,
|
||||
tarball_url: String,
|
||||
zipball_url: String,
|
||||
id: i64,
|
||||
node_id: String,
|
||||
tag_name: String,
|
||||
target_commitish: String,
|
||||
name: String,
|
||||
body: String,
|
||||
draft: bool,
|
||||
prerelease: bool,
|
||||
created_at: String,
|
||||
published_at: String,
|
||||
author: GithubUser,
|
||||
assets: Vec<GithubReleaseAsset>
|
||||
}
|
||||
|
||||
#[derive(serde::Deserialize, Debug)]
|
||||
struct GithubUser {
|
||||
login: String,
|
||||
id: i64,
|
||||
node_id: String,
|
||||
avatar_url: String,
|
||||
gravatar_id: String,
|
||||
url: String,
|
||||
html_url: String,
|
||||
followers_url: String,
|
||||
following_url: String,
|
||||
gists_url: String,
|
||||
starred_url: String,
|
||||
subscriptions_url: String,
|
||||
organizations_url: String,
|
||||
repos_url: String,
|
||||
events_url: String,
|
||||
received_events_url: String,
|
||||
r#type: String,
|
||||
site_admin: bool
|
||||
}
|
||||
struct GithubUser {}
|
||||
|
||||
#[derive(serde::Deserialize, Debug)]
|
||||
struct GithubReleaseAsset {
|
||||
url: String,
|
||||
browser_download_url: String,
|
||||
id: i64,
|
||||
node_id: String,
|
||||
name: String,
|
||||
label: String,
|
||||
state: String,
|
||||
content_type: String,
|
||||
size: i64,
|
||||
download_count: i64,
|
||||
created_at: String,
|
||||
updated_at: String,
|
||||
uploader: GithubUser
|
||||
size: i64
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
|
Loading…
Reference in New Issue