Move TARGET in lib.rs into new mod target.rs

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-06-06 22:00:01 +10:00
parent 6ab55d9dda
commit 69f2a56595
No known key found for this signature in database
GPG key ID: 591C0B03040416D6
2 changed files with 4 additions and 2 deletions

View file

@ -15,8 +15,8 @@ pub use helpers::*;
pub mod bins; pub mod bins;
pub mod fetchers; pub mod fetchers;
/// Compiled target triple, used as default for binary fetching mod target;
pub const TARGET: &str = env!("TARGET"); pub use target::TARGET;
/// Default package path template (may be overridden in package Cargo.toml) /// Default package path template (may be overridden in package Cargo.toml)
pub const DEFAULT_PKG_URL: &str = pub const DEFAULT_PKG_URL: &str =

2
src/target.rs Normal file
View file

@ -0,0 +1,2 @@
/// Compiled target triple, used as default for binary fetching
pub const TARGET: &str = env!("TARGET");