2022-07-19 11:54:45 +00:00
|
|
|
use crate::cnf::PKG_NAME;
|
|
|
|
use crate::cnf::PKG_VERS;
|
2022-02-16 23:45:23 +00:00
|
|
|
use crate::err::Error;
|
2020-06-29 15:36:01 +00:00
|
|
|
|
|
|
|
pub fn init(_: &clap::ArgMatches) -> Result<(), Error> {
|
|
|
|
get_cfg!(target_os: "windows", "macos", "ios", "linux", "android", "freebsd", "openbsd", "netbsd");
|
|
|
|
get_cfg!(target_arch: "x86", "x86_64", "mips", "powerpc", "powerpc64", "arm", "aarch64");
|
2022-09-28 19:13:40 +00:00
|
|
|
println!("{} {} for {} on {}", PKG_NAME, *PKG_VERS, target_os(), target_arch());
|
2020-06-29 15:36:01 +00:00
|
|
|
Ok(())
|
|
|
|
}
|