Constants

The build time in RFC2822, UTC.

The endianness, given by CARGO_CFG_TARGET_ENDIAN.

The toolchain-environment, given by CARGO_CFG_TARGET_ENV.

The OS-family, given by CARGO_CFG_TARGET_FAMILY.

The operating system, given by CARGO_CFG_TARGET_OS.

The pointer width, given by CARGO_CFG_TARGET_POINTER_WIDTH.

The target architecture, given by CARGO_CFG_TARGET_ARCH.

The Continuous Integration platform detected during compilation.

Value of DEBUG for the profile used during compilation.

The features that were enabled during compilation.

The features as a comma-separated string.

The host triple of the rust compiler.

The parallelism that was specified during compilation.

Value of OPT_LEVEL for the profile used during compilation.

A colon-separated list of authors.

The description.

The homepage.

The license.

The name of the package.

The source repository as advertised in Cargo.toml.

The full version.

The major version.

The minor version.

The patch version.

The pre-release version.

release for release builds, debug for other builds.

The compiler that cargo resolved to use.

The output of rustc -V

The documentation generator that cargo resolved to use.

The output of rustdoc -V

The target triple that was being compiled for.

Functions