-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#[cfg(all(target_os = "linux", target_arch = "x86_64"))] | ||
pub const FILE_EXT: &str = "linux-amd64.tar.gz"; | ||
#[cfg(all(target_os = "linux", target_arch = "x86"))] | ||
pub const FILE_EXT: &str = "linux-386.tar.gz"; | ||
#[cfg(all(target_os = "linux", target_arch = "aarch64"))] | ||
pub const FILE_EXT: &str = "linux-arm64.tar.gz"; | ||
#[cfg(all(target_os = "linux", target_arch = "arm"))] | ||
pub const FILE_EXT: &str = "linux-armv6l.tar.gz"; | ||
#[cfg(all(target_os = "linux", target_arch = "powerpc64"))] | ||
pub const FILE_EXT: &str = "linux-ppc64le.tar.gz"; | ||
#[cfg(all(target_os = "linux", target_arch = "s390x"))] | ||
pub const FILE_EXT: &str = "linux-s390x.tar.gz"; | ||
#[cfg(all(target_os = "windows", target_arch = "x86_64"))] | ||
pub const FILE_EXT: &str = "windows-amd64.msi"; | ||
#[cfg(all(target_os = "windows", target_arch = "x86"))] | ||
pub const FILE_EXT: &str = "windows-386.msi"; | ||
#[cfg(all(target_os = "macos", target_arch = "x86_64"))] | ||
pub const FILE_EXT: &str = "darwin-amd64.pkg"; | ||
#[cfg(all(target_os = "freebsd", target_arch = "x86_64"))] | ||
pub const FILE_EXT: &str = "freebsd-amd64.tar.gz"; | ||
#[cfg(all(target_os = "freebsd", target_arch = "x86"))] | ||
pub const FILE_EXT: &str = "freebsd-386.tar.gz"; | ||
|
||
pub const DL_URL: &str = "https://golang.org/dl"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Debug, Deserialize, Serialize)] | ||
pub struct Tag { | ||
pub name: String, | ||
zipball_url: String, | ||
tarball_url: String, | ||
commit: Commit, | ||
node_id: String, | ||
} | ||
|
||
#[derive(Debug, Deserialize, Serialize)] | ||
pub struct Commit { | ||
sha: String, | ||
url: String, | ||
} |