mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-12 23:10:02 +00:00
playing with version matching
Can't use semver because crates.io hides alpha versions? not sure how this works in cargo
This commit is contained in:
parent
8777c355c5
commit
223c6ef43a
3 changed files with 61 additions and 82 deletions
|
@ -35,6 +35,11 @@ pub enum PkgFmt {
|
|||
Bin,
|
||||
}
|
||||
|
||||
impl Default for PkgFmt {
|
||||
fn default() -> Self {
|
||||
Self::Tgz
|
||||
}
|
||||
}
|
||||
|
||||
/// Metadata for binary installation use.
|
||||
///
|
||||
|
@ -49,6 +54,7 @@ pub struct Meta {
|
|||
pub pkg_name: Option<String>,
|
||||
|
||||
/// Format override for package downloads
|
||||
#[serde(default)]
|
||||
pub pkg_fmt: Option<PkgFmt>,
|
||||
|
||||
#[serde(default)]
|
||||
|
@ -56,7 +62,7 @@ pub struct Meta {
|
|||
pub pkg_bins: Vec<String>,
|
||||
|
||||
/// Public key for package verification (base64 encoded)
|
||||
pub pkg_pub_key: Option<String>,
|
||||
pub pub_key: Option<String>,
|
||||
}
|
||||
|
||||
/// Template for constructing download paths
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue