From a7a644c80d0ac8c96dcb12ee0b93526b92981946 Mon Sep 17 00:00:00 2001 From: c0repwn3r Date: Mon, 20 Mar 2023 11:24:49 -0400 Subject: [PATCH] [wip] work on tfclient build system (cleanup) --- tfclient/build.rs | 51 +++-------------------------------------------- 1 file changed, 3 insertions(+), 48 deletions(-) diff --git a/tfclient/build.rs b/tfclient/build.rs index 27fbdfe..beeb87d 100644 --- a/tfclient/build.rs +++ b/tfclient/build.rs @@ -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 } #[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() {