std::env::consts - Rust (original) (raw)

Module consts

1.0.0 ยท Source

Expand description

Constants associated with the current target

ARCH

A string describing the architecture of the CPU that is currently in use. An example value may be: "x86", "arm" or "riscv64".

DLL_EXTENSION

Specifies the file extension, if any, used for shared libraries on this platform that goes after the dot. An example value may be: "so", "elf", or "dll".

DLL_PREFIX

Specifies the filename prefix, if any, used for shared libraries on this platform. This is either "lib" or an empty string. ("").

DLL_SUFFIX

Specifies the filename suffix, if any, used for shared libraries on this platform. An example value may be: ".so", ".elf", or ".dll".

EXE_EXTENSION

Specifies the file extension, if any, used for executable binaries on this platform. An example value may be: "exe", or an empty string ("").

EXE_SUFFIX

Specifies the filename suffix, if any, used for executable binaries on this platform. An example value may be: ".exe", or ".efi".

FAMILY

A string describing the family of the operating system. An example value may be: "unix", or "windows".

OS

A string describing the specific operating system in use. An example value may be: "linux", or "freebsd".