mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-19 20:18:43 +00:00
Move TARGET
in lib.rs
into new mod target.rs
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
6ab55d9dda
commit
69f2a56595
2 changed files with 4 additions and 2 deletions
|
@ -15,8 +15,8 @@ pub use helpers::*;
|
|||
pub mod bins;
|
||||
pub mod fetchers;
|
||||
|
||||
/// Compiled target triple, used as default for binary fetching
|
||||
pub const TARGET: &str = env!("TARGET");
|
||||
mod target;
|
||||
pub use target::TARGET;
|
||||
|
||||
/// Default package path template (may be overridden in package Cargo.toml)
|
||||
pub const DEFAULT_PKG_URL: &str =
|
||||
|
|
2
src/target.rs
Normal file
2
src/target.rs
Normal file
|
@ -0,0 +1,2 @@
|
|||
/// Compiled target triple, used as default for binary fetching
|
||||
pub const TARGET: &str = env!("TARGET");
|
Loading…
Add table
Reference in a new issue