Fix version string (#1585)
This commit is contained in:
parent
5fb324d9af
commit
513f213a4a
1 changed files with 4 additions and 4 deletions
8
lib/src/env/mod.rs
vendored
8
lib/src/env/mod.rs
vendored
|
@ -3,11 +3,11 @@ pub const VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||||
|
|
||||||
/// The operating system of the current machine
|
/// The operating system of the current machine
|
||||||
pub fn os() -> &'static str {
|
pub fn os() -> &'static str {
|
||||||
get_cfg!(os: "windows", "macos", "ios", "linux", "android", "freebsd", "openbsd", "netbsd");
|
get_cfg!(target_os: "windows", "macos", "ios", "linux", "android", "freebsd", "openbsd", "netbsd");
|
||||||
os()
|
target_os()
|
||||||
}
|
}
|
||||||
/// The system architecture of the current machine
|
/// The system architecture of the current machine
|
||||||
pub fn arch() -> &'static str {
|
pub fn arch() -> &'static str {
|
||||||
get_cfg!(arch: "x86", "x86_64", "mips", "powerpc", "powerpc64", "arm", "aarch64");
|
get_cfg!(target_arch: "x86", "x86_64", "mips", "powerpc", "powerpc64", "arm", "aarch64");
|
||||||
arch()
|
target_arch()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue