Fix version string (#1585)

This commit is contained in:
Rushmore Mushambi 2023-01-07 15:57:20 +02:00 committed by GitHub
parent 5fb324d9af
commit 513f213a4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

8
lib/src/env/mod.rs vendored
View file

@ -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()
} }