mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-12 23:10:02 +00:00
the big refactor
This commit is contained in:
parent
5fd78341c8
commit
a6c70b41e2
3 changed files with 90 additions and 52 deletions
|
@ -14,10 +14,10 @@ pub use drivers::*;
|
|||
pub const TARGET: &'static str = env!("TARGET");
|
||||
|
||||
/// Default package path template (may be overridden in package Cargo.toml)
|
||||
pub const DEFAULT_PKG_URL: &'static str = "{ repo }/releases/download/v{ version }/{ name }-{ target }-v{ version }.{ format }";
|
||||
pub const DEFAULT_PKG_URL: &'static str = "{ repo }/releases/download/v{ version }/{ name }-{ target }-v{ version }.tgz";
|
||||
|
||||
/// Default binary name template (may be overridden in package Cargo.toml)
|
||||
pub const DEFAULT_BIN_PATH: &'static str = "{ name }-{ target }-v{ version }/{ name }{ format }";
|
||||
pub const DEFAULT_BIN_PATH: &'static str = "{ name }-{ target }-v{ version }/{ bin }{ format }";
|
||||
|
||||
|
||||
/// Binary format enumeration
|
||||
|
@ -96,6 +96,7 @@ pub struct Context {
|
|||
pub target: String,
|
||||
pub version: String,
|
||||
pub format: String,
|
||||
pub bin: Option<String>,
|
||||
}
|
||||
|
||||
impl Context {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue