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
pub fn os() -> &'static str {
get_cfg!(os: "windows", "macos", "ios", "linux", "android", "freebsd", "openbsd", "netbsd");
os()
get_cfg!(target_os: "windows", "macos", "ios", "linux", "android", "freebsd", "openbsd", "netbsd");
target_os()
}
/// The system architecture of the current machine
pub fn arch() -> &'static str {
get_cfg!(arch: "x86", "x86_64", "mips", "powerpc", "powerpc64", "arm", "aarch64");
arch()
get_cfg!(target_arch: "x86", "x86_64", "mips", "powerpc", "powerpc64", "arm", "aarch64");
target_arch()
}